diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2015-02-13 19:47:51 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2015-02-13 19:47:51 +0000 |
commit | 9817a294a82bcab626bf050713b7471cc8893d73 (patch) | |
tree | 48e6323de301f26b8a760b2944f9292ad52ac99c /emulators | |
parent | 9709b0aec2826c3409bd13cb64db821a9bdc8775 (diff) | |
download | pkgsrc-9817a294a82bcab626bf050713b7471cc8893d73.tar.gz |
add raspberrypi support
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/emulationstation/Makefile | 11 | ||||
-rw-r--r-- | emulators/emulationstation/options.mk | 24 | ||||
-rw-r--r-- | emulators/emulationstation/patches/patch-CMakeLists.txt | 12 |
3 files changed, 45 insertions, 2 deletions
diff --git a/emulators/emulationstation/Makefile b/emulators/emulationstation/Makefile index 3c8a8f53059..5bf4b975b13 100644 --- a/emulators/emulationstation/Makefile +++ b/emulators/emulationstation/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2015/02/12 22:48:02 snj Exp $ +# $NetBSD: Makefile,v 1.2 2015/02/13 19:47:51 jmcneill Exp $ DISTNAME= abba19584636c28cd98e3810e857f493cb63d06c PKGNAME= emulationstation-2.0.0_rc1_20150210 @@ -39,6 +39,14 @@ SUBST_FILES.etc= es-app/src/SystemData.cpp es-core/src/ThemeData.cpp SUBST_FILES.etc+= GAMELISTS.md README.md THEMES.md SUBST_SED.etc= -e "s|/etc|${PKG_SYSCONFDIR}|" +SUBST_CLASSES+= vc +SUBST_STAGE.vc= pre-configure +SUBST_MESSAGE.vc= Fixing path to VideoCore libraries +SUBST_FILES.vc= CMakeLists.txt +SUBST_SED.vc+= -e 's;/opt/vc;${PREFIX};g' + +.include "options.mk" + post-install: ${INSTALL_DATA} ${WRKSRC}/GAMELISTS.md ${WRKSRC}/README.md \ ${WRKSRC}/SYSTEMS.md ${WRKSRC}/THEMES.md \ @@ -46,7 +54,6 @@ post-install: .include "../../devel/SDL2/buildlink3.mk" .include "../../devel/boost-libs/buildlink3.mk" -.include "../../graphics/MesaLib/buildlink3.mk" .include "../../graphics/freeimage/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" .include "../../math/eigen3/buildlink3.mk" diff --git a/emulators/emulationstation/options.mk b/emulators/emulationstation/options.mk new file mode 100644 index 00000000000..bed31dab487 --- /dev/null +++ b/emulators/emulationstation/options.mk @@ -0,0 +1,24 @@ +# $NetBSD: options.mk,v 1.1 2015/02/13 19:47:51 jmcneill Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.emulationstation +PKG_OPTIONS_REQUIRED_GROUPS= graphics +PKG_OPTIONS_GROUP.graphics= opengl + +.include "../../mk/bsd.fast.prefs.mk" + +.if !empty(MACHINE_ARCH:M*arm*) +PKG_OPTIONS_GROUP.graphics+= rpi +PKG_SUGGESTED_OPTIONS+= rpi +.else +PKG_SUGGESTED_OPTIONS+= opengl +.endif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mrpi) +.include "../../misc/raspberrypi-userland/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mopengl) +.include "../../graphics/MesaLib/buildlink3.mk" +.endif diff --git a/emulators/emulationstation/patches/patch-CMakeLists.txt b/emulators/emulationstation/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..1c5c87450c2 --- /dev/null +++ b/emulators/emulationstation/patches/patch-CMakeLists.txt @@ -0,0 +1,12 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2015/02/13 19:47:51 jmcneill Exp $ + +--- CMakeLists.txt.orig 2015-02-13 13:16:56.000000000 +0000 ++++ CMakeLists.txt +@@ -163,6 +163,7 @@ if(DEFINED BCMHOST) + LIST(APPEND COMMON_LIBRARIES + bcm_host + EGL ++ GLESv2 + ${OPENGLES_LIBRARIES} + ) + else() |