pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/retroarch Import retroarch-0.0.20150203 as e...
details: https://anonhg.NetBSD.org/pkgsrc/rev/faba252076c0
branches: trunk
changeset: 646147:faba252076c0
user: jmcneill <jmcneill%pkgsrc.org@localhost>
date: Wed Feb 04 22:56:43 2015 +0000
description:
Import retroarch-0.0.20150203 as emulators/retroarch.
Libretro is a simple but powerful development interface that allows for the
easy creation of emulators, games and multimedia applications that can plug
straight into any libretro-compatible frontend. This development interface is
open to others so that they can run these pluggable emulator and game cores
also in their own programs or devices.
RetroArch is the official reference frontend for the libretro API.
diffstat:
emulators/retroarch/DESCR | 7 ++
emulators/retroarch/Makefile | 56 +++++++++++++++++++++
emulators/retroarch/PLIST | 10 +++
emulators/retroarch/distinfo | 9 +++
emulators/retroarch/options.mk | 23 ++++++++
emulators/retroarch/patches/patch-Makefile | 35 +++++++++++++
emulators/retroarch/patches/patch-Makefile.common | 24 +++++++++
emulators/retroarch/patches/patch-qb_config.libs.sh | 22 ++++++++
emulators/retroarch/patches/patch-qb_qb.libs.sh | 13 ++++
9 files changed, 199 insertions(+), 0 deletions(-)
diffs (235 lines):
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/DESCR Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,7 @@
+Libretro is a simple but powerful development interface that allows for the
+easy creation of emulators, games and multimedia applications that can plug
+straight into any libretro-compatible frontend. This development interface is
+open to others so that they can run these pluggable emulator and game cores
+also in their own programs or devices.
+
+RetroArch is the official reference frontend for the libretro API.
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/Makefile Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+
+DISTNAME= retroarch-0.0.20150203
+CATEGORIES= emulators
+MASTER_SITES= http://ftp.NetBSD.org/pub/NetBSD/misc/jmcneill/retroarch/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.libretro.com/
+COMMENT= Official reference frontend for the libretro API
+LICENSE= gnu-gpl-v3
+
+WRKSRC= ${WRKDIR}/RetroArch-master
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+=--global-config-dir=${PKG_SYSCONFDIR}
+CONFIG_SHELL= bash
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config gmake
+
+EGDIR= ${PREFIX}/share/examples/retroarch
+CONF_FILES+= ${EGDIR}/retroarch.cfg ${PKG_SYSCONFDIR}/retroarch.cfg
+
+SUBST_CLASSES+= qb
+SUBST_STAGE.qb= pre-configure
+SUBST_MESSAGE.qb= Fixing path to true(1) in configure scripts.
+SUBST_FILES.qb= qb/qb.libs.sh
+SUBST_SED.qb+= -e 's;/bin/true;${TRUE};'
+
+SUBST_CLASSES+= vc
+SUBST_STAGE.vc= pre-configure
+SUBST_MESSAGE.vc= Fixing path to VideoCore libraries.
+SUBST_FILES.vc= qb/config.libs.sh
+SUBST_SED.vc+= -e 's;/opt/vc;${PREFIX};g'
+
+SUBST_CLASSES+= cfg
+SUBST_STAGE.cfg= pre-configure
+SUBST_MESSAGE.cfg= Setting paths in sample config.
+SUBST_FILES.cfg= retroarch.cfg
+SUBST_SED.cfg+= -e 's;.*libretro_directory =.*;libretro_directory = "${PREFIX}/lib/libretro";'
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/retroarch-joyconfig \
+ ${DESTDIR}${PREFIX}/bin/retroarch-joyconfig
+
+.include "options.mk"
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXv/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+#.include "../../x11/libxkbcommon/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/PLIST Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+bin/retroarch
+bin/retroarch-cg2glsl
+bin/retroarch-joyconfig
+man/man1/retroarch-cg2glsl.1
+man/man1/retroarch-joyconfig.1
+man/man1/retroarch.1
+share/examples/retroarch/retroarch.cfg
+share/pixmaps/retroarch.png
+share/pixmaps/retroarch.svg
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/distinfo Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+
+SHA1 (retroarch-20150203.zip) = 46f9493f3ab09fd185345e6bab797c4e882c5262
+RMD160 (retroarch-20150203.zip) = 76c4ae4f7edb5c866f606cb23e5550a5b7c285b4
+Size (retroarch-20150203.zip) = 10043939 bytes
+SHA1 (patch-Makefile) = 1c4af8253eb3ad3c209fab8919ecd78526163b86
+SHA1 (patch-Makefile.common) = 3a2157e04dfacadc48f421106760b0194586677e
+SHA1 (patch-qb_config.libs.sh) = 4eccb74e9f31d0f8ff3eeb6c6ded03ac148b2808
+SHA1 (patch-qb_qb.libs.sh) = 00689ff9d4b6afc9313938e2921e90f01640420f
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/options.mk Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.retroarch
+PKG_SUPPORTED_OPTIONS= sdl
+PKG_SUGGESTED_OPTIONS= sdl
+
+.if !empty(MACHINE_ARCH:M*arm*)
+PKG_SUPPORTED_OPTIONS+= rpi
+PKG_SUGGESTED_OPTIONS+= rpi
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mrpi)
+CONFIGURE_ARGS+= --disable-x11
+.include "../../misc/raspberrypi-userland/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Msdl)
+.include "../../devel/SDL/buildlink3.mk"
+.endif
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/patches/patch-Makefile Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-Makefile,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+
+--- Makefile.orig 2015-02-03 06:43:44.000000000 +0000
++++ Makefile
+@@ -137,12 +137,12 @@ $(OBJDIR)/%.o: %.rc $(HEADERS)
+ install: $(TARGET)
+ rm -f $(OBJDIR)/git_version.o
+ mkdir -p $(DESTDIR)$(PREFIX)/bin 2>/dev/null || /bin/true
+- mkdir -p $(DESTDIR)$(GLOBAL_CONFIG_DIR) 2>/dev/null || /bin/true
+- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 2>/dev/null || /bin/true
++ mkdir -p $(DESTDIR)$(PREFIX)/share/examples/retroarch 2>/dev/null || /bin/true
++ mkdir -p $(DESTDIR)$(PREFIX)/man/man1 2>/dev/null || /bin/true
+ mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps 2>/dev/null || /bin/true
+ install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
+ install -m755 tools/cg2glsl.py $(DESTDIR)$(PREFIX)/bin/retroarch-cg2glsl
+- install -m644 retroarch.cfg $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
++ install -m644 retroarch.cfg $(DESTDIR)$(PREFIX)/share/examples/retroarch/retroarch.cfg
+ install -m644 docs/retroarch.1 $(DESTDIR)$(MAN_DIR)
+ install -m644 docs/retroarch-cg2glsl.1 $(DESTDIR)$(MAN_DIR)
+ install -m644 docs/retroarch-joyconfig.1 $(DESTDIR)$(MAN_DIR)
+@@ -153,10 +153,10 @@ uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/retroarch
+ rm -f $(DESTDIR)$(PREFIX)/bin/retroarch-joyconfig
+ rm -f $(DESTDIR)$(PREFIX)/bin/retroarch-cg2glsl
+- rm -f $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
+- rm -f $(DESTDIR)$(PREFIX)/share/man/man1/retroarch.1
+- rm -f $(DESTDIR)$(PREFIX)/share/man/man1/retroarch-cg2glsl.1
+- rm -f $(DESTDIR)$(PREFIX)/share/man/man1/retroarch-joyconfig.1
++ rm -f $(DESTDIR)$(PREFIX)/share/examples/retroarch/retroarch.cfg
++ rm -f $(DESTDIR)$(PREFIX)/man/man1/retroarch.1
++ rm -f $(DESTDIR)$(PREFIX)/man/man1/retroarch-cg2glsl.1
++ rm -f $(DESTDIR)$(PREFIX)/man/man1/retroarch-joyconfig.1
+ rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/retroarch.png
+ rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/retroarch.svg
+
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/patches/patch-Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/patches/patch-Makefile.common Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile.common,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+
+--- Makefile.common.orig 2015-02-03 06:43:44.000000000 +0000
++++ Makefile.common
+@@ -205,9 +205,7 @@ endif
+
+ ifeq ($(HAVE_OSS), 1)
+ OBJ += audio/drivers/oss.o
+-endif
+-
+-ifeq ($(HAVE_OSS_BSD), 1)
++else ifeq ($(HAVE_OSS_BSD), 1)
+ OBJ += audio/drivers/oss.o
+ endif
+
+@@ -418,7 +416,7 @@ ifeq ($(HAVE_OPENGL), 1)
+ endif
+
+ ifeq ($(HAVE_X11), 1)
+- ifeq ($(HAVE_GLES), 0)
++ ifneq ($(HAVE_GLES), 1)
+ OBJ += gfx/drivers_context/glx_ctx.o
+ endif
+ ifeq ($(HAVE_EGL), 1)
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/patches/patch-qb_config.libs.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/patches/patch-qb_config.libs.sh Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-qb_config.libs.sh,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+
+--- qb/config.libs.sh.orig 2015-02-03 06:43:44.000000000 +0000
++++ qb/config.libs.sh
+@@ -99,7 +99,7 @@ if [ "$HAVE_EGL" != "no" ]; then
+ # some systems have EGL libs, but no pkgconfig
+ if [ "$HAVE_EGL" = "no" ]; then
+ HAVE_EGL=auto && check_lib EGL "-lEGL $EXTRA_GL_LIBS"
+- [ "$HAVE_EGL" = "yes" ] && EGL_LIBS=-lEGL
++ [ "$HAVE_EGL" = "yes" ] && EGL_LIBS="-lEGL $EXTRA_GL_LIBS"
+ else
+ EGL_LIBS="$EGL_LIBS $EXTRA_GL_LIBS"
+ fi
+@@ -278,7 +278,7 @@ if [ "$HAVE_EGL" = "yes" ]; then
+ add_define_make GLES_CFLAGS "$GLES_CFLAGS"
+ else
+ HAVE_GLES=auto check_pkgconf GLES glesv2
+- [ "$HAVE_GLES" = "no" ] && HAVE_GLES=auto check_lib GLES "-lGLESv2 $EXTRA_GL_LIBS" && add_define_make GLES_LIBS "-lGLESv2 $EXTRA_GL_LIBS"
++ [ "$HAVE_GLES" = "no" -o "$HAVE_GLES" = "auto" ] && HAVE_GLES=auto check_lib GLES "-lGLESv2 $EXTRA_GL_LIBS" && add_define_make GLES_LIBS "-lGLESv2 $EXTRA_GL_LIBS" && HAVE_GLES=yes
+ fi
+ fi
+ if [ "$HAVE_VG" != "no" ]; then
diff -r 31b914f9a5cb -r faba252076c0 emulators/retroarch/patches/patch-qb_qb.libs.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/patches/patch-qb_qb.libs.sh Wed Feb 04 22:56:43 2015 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-qb_qb.libs.sh,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+
+--- qb/qb.libs.sh.orig 2015-02-03 06:43:44.000000000 +0000
++++ qb/qb.libs.sh
+@@ -17,7 +17,7 @@ add_include_dirs()
+ { while [ "$1" ]; do INCLUDE_DIRS="$INCLUDE_DIRS -I$1"; shift; done;}
+
+ add_library_dirs()
+-{ while [ "$1" ]; do LIBRARY_DIRS="$LIBRARY_DIRS -L$1"; shift; done;}
++{ while [ "$1" ]; do LIBRARY_DIRS="$LIBRARY_DIRS -Wl,-R$1 -L$1"; shift; done;}
+
+ check_lib() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 = headers
+ { tmpval="$(eval echo \$HAVE_$1)"
Home |
Main Index |
Thread Index |
Old Index