libretro: build cores on darwin

This commit is contained in:
Matthew Bauer 2018-05-21 17:11:44 -05:00
parent 04bc0bd2b7
commit f22a63d533
2 changed files with 6 additions and 6 deletions

View File

@ -22,9 +22,9 @@ let
COREDIR="$out/lib/retroarch/cores"
mkdir -p $out/bin
mkdir -p $COREDIR
mv ${d2u core}_libretro.so $COREDIR/.
mv ${d2u core}_libretro${stdenv.hostPlatform.extensions.sharedLibrary} $COREDIR/.
makeWrapper ${retroarch}/bin/retroarch $out/bin/retroarch-${core} \
--add-flags "-L $COREDIR/${d2u core}_libretro.so $@"
--add-flags "-L $COREDIR/${d2u core}_libretro${stdenv.hostPlatform.extensions.sharedLibrary} $@"
'';
enableParallelBuilding = true;
@ -39,7 +39,7 @@ let
homepage = https://www.libretro.com/;
inherit license;
maintainers = with maintainers; [ edwtjo hrdinka MP2E ];
platforms = platforms.linux;
platforms = platforms.unix;
};
} // a);
@ -178,7 +178,7 @@ in with stdenv.lib.licenses;
buildPhase = ''
cd svn-current/trunk \
&& make -f makefile.libretro \
&& mv fbalpha2012_libretro.so fba_libretro.so
&& mv fbalpha2012_libretro${stdenv.hostPlatform.extensions.sharedLibrary} fba_libretro${stdenv.hostPlatform.extensions.sharedLibrary}
'';
};
@ -412,7 +412,7 @@ in with stdenv.lib.licenses;
}).override {
buildPhase = ''
make -f Makefile.libretro
mv snes9x2010_libretro.so snes9x_next_libretro.so
mv snes9x2010_libretro${stdenv.hostPlatform.extensions.sharedLibrary} snes9x_next_libretro${stdenv.hostPlatform.extensions.sharedLibrary}
'';
};

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation {
mkdir -p $out/lib
$(for coreDir in $cores
do
$(ln -s $coreDir/*.so $out/lib/.)
$(ln -s $coreDir/* $out/lib/.)
done)
ln -s -t $out ${retroarch}/share