pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/emulationstation add raspberrypi support
details: https://anonhg.NetBSD.org/pkgsrc/rev/04e2a09f8f28
branches: trunk
changeset: 646696:04e2a09f8f28
user: jmcneill <jmcneill%pkgsrc.org@localhost>
date: Fri Feb 13 19:47:51 2015 +0000
description:
add raspberrypi support
diffstat:
emulators/emulationstation/Makefile | 11 ++++++-
emulators/emulationstation/options.mk | 24 +++++++++++++++++
emulators/emulationstation/patches/patch-CMakeLists.txt | 12 ++++++++
3 files changed, 45 insertions(+), 2 deletions(-)
diffs (76 lines):
diff -r f61d1b89b414 -r 04e2a09f8f28 emulators/emulationstation/Makefile
--- a/emulators/emulationstation/Makefile Fri Feb 13 19:28:40 2015 +0000
+++ b/emulators/emulationstation/Makefile Fri Feb 13 19:47:51 2015 +0000
@@ -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+= 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 @@
.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 -r f61d1b89b414 -r 04e2a09f8f28 emulators/emulationstation/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/emulationstation/options.mk Fri Feb 13 19:47:51 2015 +0000
@@ -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 -r f61d1b89b414 -r 04e2a09f8f28 emulators/emulationstation/patches/patch-CMakeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/emulationstation/patches/patch-CMakeLists.txt Fri Feb 13 19:47:51 2015 +0000
@@ -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()
Home |
Main Index |
Thread Index |
Old Index