diff options
author | nia <nia@pkgsrc.org> | 2020-05-30 15:12:46 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-05-30 15:12:46 +0000 |
commit | 37b23b3dcbe29ebac9df7e9fdca42016f06661dc (patch) | |
tree | 3c019e30ea2786e461e64b1c0640bbbb4e0d4764 /emulators | |
parent | 3d06b47b8300b0e964536d17feea87936c037885 (diff) | |
download | pkgsrc-37b23b3dcbe29ebac9df7e9fdca42016f06661dc.tar.gz |
libretro-*: core.mk'ify upstream cores
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/libretro-nestopia/Makefile | 19 | ||||
-rw-r--r-- | emulators/libretro-sameboy/Makefile | 16 | ||||
-rw-r--r-- | emulators/libretro-stella/Makefile | 19 |
3 files changed, 9 insertions, 45 deletions
diff --git a/emulators/libretro-nestopia/Makefile b/emulators/libretro-nestopia/Makefile index 311c449ca3f..f69644fcac3 100644 --- a/emulators/libretro-nestopia/Makefile +++ b/emulators/libretro-nestopia/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2020/05/26 09:45:15 nia Exp $ +# $NetBSD: Makefile,v 1.8 2020/05/30 15:12:46 nia Exp $ .include "../../emulators/nestopia/Makefile.common" @@ -10,22 +10,9 @@ COMMENT= Libretro core based on the Nestopia UE emulator BUILD_DIRS= libretro -USE_TOOLS+= gmake - -OPSYSVARS+= SOEXT -SOEXT.Darwin= dylib -SOEXT.*= so -PLIST_SUBST+= SOEXT=${SOEXT} - -MAKE_FLAGS+= GIT_VERSION="-pkgsrc" +LIBRETRO_CORE= nestopia BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-version-script=link.T -BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-no-undefined - -INSTALLATION_DIRS+= lib/libretro - -do-install: - ${INSTALL_LIB} ${WRKSRC}/libretro/nestopia_libretro.so \ - ${DESTDIR}${PREFIX}/lib/libretro/nestopia_libretro.so +.include "../../emulators/retroarch/core.mk" .include "../../mk/bsd.pkg.mk" diff --git a/emulators/libretro-sameboy/Makefile b/emulators/libretro-sameboy/Makefile index 799ff576169..015b222c72b 100644 --- a/emulators/libretro-sameboy/Makefile +++ b/emulators/libretro-sameboy/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2020/05/26 09:45:16 nia Exp $ +# $NetBSD: Makefile,v 1.7 2020/05/30 15:12:46 nia Exp $ .include "../../emulators/sameboy/Makefile.common" @@ -10,17 +10,7 @@ COMMENT= Libretro core based on the SameBoy Game Boy/Game Boy Color emulator BUILD_DIRS= libretro -MAKE_FLAGS+= GIT_VERSION="${PKGVERSION}-pkgsrc" - -OPSYSVARS+= SOEXT -SOEXT.Darwin= dylib -SOEXT.*= so -PLIST_SUBST+= SOEXT=${SOEXT} - -INSTALLATION_DIRS+= ${PREFIX}/lib/libretro - -do-install: - ${INSTALL_LIB} ${WRKSRC}/build/bin/sameboy_libretro.so \ - ${DESTDIR}${PREFIX}/lib/libretro +LIBRETRO_CORE= sameboy +.include "../../emulators/retroarch/core.mk" .include "../../mk/bsd.pkg.mk" diff --git a/emulators/libretro-stella/Makefile b/emulators/libretro-stella/Makefile index e45b0424d4b..f909d353aa3 100644 --- a/emulators/libretro-stella/Makefile +++ b/emulators/libretro-stella/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2020/05/26 11:35:46 nia Exp $ +# $NetBSD: Makefile,v 1.7 2020/05/30 15:12:46 nia Exp $ .include "../../emulators/stella/Makefile.common" @@ -10,24 +10,11 @@ COMMENT= Libretro core based on the Stella Atari 2600 (VCS) emulator BUILD_DIRS= src/libretro -USE_TOOLS+= gmake - -OPSYSVARS+= SOEXT -SOEXT.Darwin= dylib -SOEXT.*= so -PLIST_SUBST+= SOEXT=${SOEXT} - -MAKE_FLAGS+= GIT_VERSION="-${PKGVERSION_NOREV}-pkgsrc" -MAKE_FLAGS+= LTO= +LIBRETRO_CORE= stella # Should not be combined with -fPIC BUILDLINK_TRANSFORM+= rm:-static-libgcc BUILDLINK_TRANSFORM+= rm:-static-libstdc++ -INSTALLATION_DIRS+= ${PREFIX}/lib/libretro - -do-install: - ${INSTALL_LIB} ${WRKSRC}/src/libretro/stella_libretro.so \ - ${DESTDIR}${PREFIX}/lib/libretro/stella_libretro.so - +.include "../../emulators/retroarch/core.mk" .include "../../mk/bsd.pkg.mk" |