pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/emulators/retroarch



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Aug  7 16:44:27 UTC 2018

Modified Files:
        pkgsrc/emulators/retroarch: Makefile PLIST distinfo options.mk
        pkgsrc/emulators/retroarch/patches: patch-Makefile
Added Files:
        pkgsrc/emulators/retroarch: version.mk
        pkgsrc/emulators/retroarch/patches:
            patch-frontend_drivers_platform__unix.c

Log Message:
emulators/retroarch: Update to 1.7.3.

This brings it around 3 years forward and includes more changes than I
can easily list, since the changelogs don't go that far back.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/emulators/retroarch/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/emulators/retroarch/PLIST \
    pkgsrc/emulators/retroarch/options.mk
cvs rdiff -u -r1.4 -r1.5 pkgsrc/emulators/retroarch/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/retroarch/version.mk
cvs rdiff -u -r1.2 -r1.3 pkgsrc/emulators/retroarch/patches/patch-Makefile
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/retroarch/patches/patch-frontend_drivers_platform__unix.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/retroarch/Makefile
diff -u pkgsrc/emulators/retroarch/Makefile:1.7 pkgsrc/emulators/retroarch/Makefile:1.8
--- pkgsrc/emulators/retroarch/Makefile:1.7     Mon Sep  4 18:08:23 2017
+++ pkgsrc/emulators/retroarch/Makefile Tue Aug  7 16:44:26 2018
@@ -1,63 +1,49 @@
-# $NetBSD: Makefile,v 1.7 2017/09/04 18:08:23 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2018/08/07 16:44:26 nia Exp $
 
-DISTNAME=      retroarch-20150203
-PKGNAME=       retroarch-0.0.20150203
-PKGREVISION=   1
+DISTNAME=      retroarch-${RETROARCH_VERSION}
 CATEGORIES=    emulators
-MASTER_SITES=  http://ftp.NetBSD.org/pub/NetBSD/misc/jmcneill/retroarch/
-EXTRACT_SUFX=  .zip
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=libretro/}
+GITHUB_PROJECT=        RetroArch
+GITHUB_TAG=    v${PKGVERSION_NOREV}
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://www.libretro.com/
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://www.retroarch.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}
-CONFIGURE_ENV+= MAN_DIR=${PREFIX}/${PKGMANDIR}/man1/
-CONFIG_SHELL=  bash
+EXTRACT_USING= bsdtar
 USE_LANGUAGES= c c++
-USE_TOOLS+=    bash pkg-config gmake
+USE_TOOLS+=    pkg-config gmake
+
+HAS_CONFIGURE= yes
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-REPLACE_PYTHON=        tools/cg2glsl.py
+CONFIGURE_ARGS+=       --disable-builtinminiupnpc
+CONFIGURE_ARGS+=       --disable-builtinzlib
+CONFIGURE_ARGS+=       --disable-builtinflac
 
-EGDIR=         ${PREFIX}/share/examples/retroarch
-CONF_FILES+=   ${EGDIR}/retroarch.cfg ${PKG_SYSCONFDIR}/retroarch.cfg
+CONFIGURE_ENV+=        BIN_DIR=${PREFIX}/bin
+CONFIGURE_ENV+=        MAN_DIR=${PREFIX}/${PKGMANDIR}
 
-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
+MAKE_FLAGS+=   GIT_VERSION="-pkgsrc"
 
-.include "options.mk"
+DEPENDS+=      libretro-database>=${PKGVERSION_NOREV}:../../emulators/libretro-database
+DEPENDS+=      libretro-core-info>=${PKGVERSION_NOREV}:../../emulators/libretro-core-info
 
-.include "../../lang/python/application.mk"
+CPPFLAGS+=     -DPREFIX=\"${PREFIX}\"
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+# On exit (load a game first):
+# assertion "pthread__tsd_destructors[key] != NULL" failed:
+# file "/usr/src/lib/libpthread/pthread_tsd.c", line 287, function "pthread_key_delete"
+# [1]   Abort trap (core dumped) retroarch
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+=       --disable-thread_storage
+.endif
+
+.include "version.mk"
+.include "options.mk"
+.include "../../audio/flac/buildlink3.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 "../../net/miniupnpc/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/emulators/retroarch/PLIST
diff -u pkgsrc/emulators/retroarch/PLIST:1.1 pkgsrc/emulators/retroarch/PLIST:1.2
--- pkgsrc/emulators/retroarch/PLIST:1.1        Wed Feb  4 22:56:43 2015
+++ pkgsrc/emulators/retroarch/PLIST    Tue Aug  7 16:44:26 2018
@@ -1,10 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/08/07 16:44:26 nia Exp $
 bin/retroarch
-bin/retroarch-cg2glsl
-bin/retroarch-joyconfig
-man/man1/retroarch-cg2glsl.1
-man/man1/retroarch-joyconfig.1
-man/man1/retroarch.1
+man/man6/retroarch.6
+share/applications/retroarch.desktop
+share/doc/retroarch/COPYING
+share/doc/retroarch/README.md
 share/examples/retroarch/retroarch.cfg
-share/pixmaps/retroarch.png
 share/pixmaps/retroarch.svg
Index: pkgsrc/emulators/retroarch/options.mk
diff -u pkgsrc/emulators/retroarch/options.mk:1.1 pkgsrc/emulators/retroarch/options.mk:1.2
--- pkgsrc/emulators/retroarch/options.mk:1.1   Wed Feb  4 22:56:43 2015
+++ pkgsrc/emulators/retroarch/options.mk       Tue Aug  7 16:44:26 2018
@@ -1,23 +1,190 @@
-# $NetBSD: options.mk,v 1.1 2015/02/04 22:56:43 jmcneill Exp $
+# $NetBSD: options.mk,v 1.2 2018/08/07 16:44:26 nia Exp $
 
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.fast.prefs.mk"
 
-PKG_OPTIONS_VAR=       PKG_OPTIONS.retroarch
-PKG_SUPPORTED_OPTIONS= sdl
-PKG_SUGGESTED_OPTIONS= sdl
+PKG_OPTIONS_VAR=               PKG_OPTIONS.retroarch
+
+PKG_SUPPORTED_OPTIONS+=                sdl2 ffmpeg freetype qt5 x11 caca
+PKG_SUPPORTED_OPTIONS+=                alsa jack openal pulseaudio libusb-1
+PKG_SUPPORTED_OPTIONS+=                libxml2 # Deprecated
+PKG_SUGGESTED_OPTIONS+=                sdl2 ffmpeg freetype x11 openal
+
+.if ${OPSYS} == "Linux"
+PKG_SUPPORTED_OPTIONS+=                udev
+.endif
+
+PKG_SUGGESTED_OPTIONS.Linux+=  alsa pulseaudio udev
+
+PKG_OPTIONS_OPTIONAL_GROUPS+=  gl
+PKG_OPTIONS_GROUP.gl+=         opengl
 
 .if !empty(MACHINE_ARCH:M*arm*)
-PKG_SUPPORTED_OPTIONS+=        rpi
-PKG_SUGGESTED_OPTIONS+=        rpi
+CONFIGURE_ARGS+=               --enable-floathard
+PKG_OPTIONS_GROUP.gl+=         rpi
+PKG_SUPPORTED_OPTIONS+=                simd
+.  if !empty(MACHINE_ARCH:M*armv7*)
+PKG_SUGGESTED_OPTIONS+=                simd
+.  endif
+.endif
+
+.if !empty(MACHINE_PLATFORM:MLinux-*-*armv7*)
+PKG_OPTIONS_GROUP.gl+=         sunxi-mali-fb
+PKG_SUPPORTED_OPTIONS+=                sunxi-g2d
+PKG_SUGGESTED_OPTIONS+=                sunxi-g2d
+.endif
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-arm*)
+PKG_SUGGESTED_OPTIONS+=                rpi
+.else
+PKG_SUGGESTED_OPTIONS+=                opengl
 .endif
 
 .include "../../mk/bsd.options.mk"
 
-.if !empty(PKG_OPTIONS:Mrpi)
+.if !empty(MACHINE_ARCH:M*arm*)
+.  if !empty(PKG_OPTIONS:Msimd)
+CONFIGURE_ARGS+=       --enable-neon
+.  else
+CONFIGURE_ARGS+=       --disable-neon
+.  endif
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+CONFIGURE_ARGS+=       --enable-x11
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libxcb/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.else
 CONFIGURE_ARGS+=       --disable-x11
+.endif
+
+#
+# Graphics acceleration options
+#
+
+# Use standard Mesa OpenGL
+.if !empty(PKG_OPTIONS:Mopengl)
+.include "../../graphics/MesaLib/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-opengl
+USE_RETROARCH_GL=      yes
+
+# Enable use of the Raspberry Pi GPU driver
+.elif !empty(PKG_OPTIONS:Mrpi)
 .include "../../misc/raspberrypi-userland/buildlink3.mk"
+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'
+
+CONFIGURE_ARGS+=       --enable-opengles
+USE_RETROARCH_GL=      yes
+
+# Disable any graphics acceleration library
+.else
+CONFIGURE_ARGS+=       --disable-egl
+CONFIGURE_ARGS+=       --disable-opengl
+CONFIGURE_ARGS+=       --disable-vulkan
+CONFIGURE_ARGS+=       --disable-vulkan_display
+CONFIGURE_ARGS+=       --disable-wayland
+USE_RETROARCH_GL=      no
+.endif
+
+.if ${USE_RETROARCH_GL} == "yes"
+DEPENDS+=      retroarch-assets>=${PKGVERSION_NOREV}:../../emulators/retroarch-assets
+DEPENDS+=      libretro-glsl-shaders>0:../../emulators/libretro-glsl-shaders
+.endif
+
+.if !empty(PKG_OPTIONS:Msunxi-g2d)
+CONFIGURE_ARGS+=       --enable-sunxi
+.endif
+
+.if !empty(PKG_OPTIONS:Mudev)
+# To support keyboard callback interface in udev, the libxkbcommon package
+# (version 0.3 and up) is required. It is used to translate raw evdev events
+# to printable characters. It does not depend on Xorg, but it depends on X11
+# keyboard layout files being installed.
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-udev
+.endif
+
+.if !empty(PKG_OPTIONS:Msdl2)
+CONFIGURE_ARGS+=       --enable-sdl2
+.include "../../devel/SDL2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-sdl2
+.endif
+
+.if !empty(PKG_OPTIONS:Mffmpeg)
+CONFIGURE_ARGS+=       --enable-ffmpeg
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-ffmpeg
+.endif
+
+.if !empty(PKG_OPTIONS:Mfreetype)
+CONFIGURE_ARGS+=       --enable-freetype
+.include "../../graphics/freetype2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-freetype
+.endif
+
+.if !empty(PKG_OPTIONS:Malsa)
+CONFIGURE_ARGS+=       --enable-alsa
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mjack)
+CONFIGURE_ARGS+=       --enable-jack
+.include "../../audio/jack/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-jack
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenal)
+CONFIGURE_ARGS+=       --enable-al
+.include "../../audio/openal-soft/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-al
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+CONFIGURE_ARGS+=       --enable-pulse
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-pulse
+.endif
+
+.if !empty(PKG_OPTIONS:Mqt5)
+CONFIGURE_ARGS+=       --enable-qt
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-qt
+.endif
+
+.if !empty(PKG_OPTIONS:Mcaca)
+CONFIGURE_ARGS+=       --enable-caca
+.include "../../graphics/libcaca/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-caca
+.endif
+
+.if !empty(PKG_OPTIONS:Mlibxml2)
+CONFIGURE_ARGS+=       --enable-libxml2
+.include "../../textproc/libxml2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-libxml2
 .endif
 
-.if !empty(PKG_OPTIONS:Msdl)
-.include "../../devel/SDL/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mlibusb-1)
+CONFIGURE_ARGS+=       --enable-libusb
+.include "../../devel/libusb1/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-libusb
 .endif

Index: pkgsrc/emulators/retroarch/distinfo
diff -u pkgsrc/emulators/retroarch/distinfo:1.4 pkgsrc/emulators/retroarch/distinfo:1.5
--- pkgsrc/emulators/retroarch/distinfo:1.4     Tue Nov  3 20:31:01 2015
+++ pkgsrc/emulators/retroarch/distinfo Tue Aug  7 16:44:26 2018
@@ -1,15 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 20:31:01 agc Exp $
+$NetBSD: distinfo,v 1.5 2018/08/07 16:44:26 nia Exp $
 
-SHA1 (retroarch-20150203.zip) = 46f9493f3ab09fd185345e6bab797c4e882c5262
-RMD160 (retroarch-20150203.zip) = 76c4ae4f7edb5c866f606cb23e5550a5b7c285b4
-SHA512 (retroarch-20150203.zip) = 6b7bc44a3956fe706a53ba56d06338823fe9438182b3e16d9a7d3e7f17197cb1d49ca163b947e980849c3d54912a816dd77b17613fffd4dc305486498bca7951
-Size (retroarch-20150203.zip) = 10043939 bytes
-SHA1 (patch-Makefile) = 41a8de7bc2d992cae1799935c5d3a61774c6be88
-SHA1 (patch-Makefile.common) = 3a2157e04dfacadc48f421106760b0194586677e
-SHA1 (patch-audio_audio__utils.c) = a489e8862d10e8dde77a7d22becafb690fb61f89
-SHA1 (patch-audio_audio__utils.h) = e6cb0d7897eee6908d62bb46a98d7a28398d9e14
-SHA1 (patch-audio_drivers__resampler_cc__resampler.c) = 2ec89750a7bad2eb4b799d389d0e995b316ccd82
-SHA1 (patch-audio_drivers__resampler_sinc.c) = 5747731b8aec14b6a5e1359e80698f121fe9f337
-SHA1 (patch-performance.c) = 1881d32968babc58686c88bfdeb021d18a222fe8
-SHA1 (patch-qb_config.libs.sh) = 4eccb74e9f31d0f8ff3eeb6c6ded03ac148b2808
-SHA1 (patch-qb_qb.libs.sh) = 00689ff9d4b6afc9313938e2921e90f01640420f
+SHA1 (retroarch-1.7.3.tar.gz) = e1d104df59faac60e4666bf78291d7f39793cdee
+RMD160 (retroarch-1.7.3.tar.gz) = c3203c559cda925a9e76ab7df7ed491ea0f89a85
+SHA512 (retroarch-1.7.3.tar.gz) = f6e3f82465d301450e7f9a947e3e50a0b972c2ae4ad52d41640c0933185988e910892ab04dd93d1f6bed485a406356233ea81f8468041f3425cd286670fb97b1
+Size (retroarch-1.7.3.tar.gz) = 19382106 bytes
+SHA1 (patch-Makefile) = e40570eaf260e527442264c2ba424f2d7f499885
+SHA1 (patch-frontend_drivers_platform__unix.c) = 090b82414411067409167c2b144f3d1ecac4d21c

Index: pkgsrc/emulators/retroarch/patches/patch-Makefile
diff -u pkgsrc/emulators/retroarch/patches/patch-Makefile:1.2 pkgsrc/emulators/retroarch/patches/patch-Makefile:1.3
--- pkgsrc/emulators/retroarch/patches/patch-Makefile:1.2       Thu Feb  5 16:46:17 2015
+++ pkgsrc/emulators/retroarch/patches/patch-Makefile   Tue Aug  7 16:44:27 2018
@@ -1,35 +1,54 @@
-$NetBSD: patch-Makefile,v 1.2 2015/02/05 16:46:17 wiz Exp $
+$NetBSD: patch-Makefile,v 1.3 2018/08/07 16:44:27 nia Exp $
 
---- Makefile.orig      2015-02-03 06:43:44.000000000 +0000
+Install retroarch.cfg to examples.
+
+Don't install deprecated and unsupported cg2glsl script.
+
+--- Makefile.orig      2018-02-19 12:43:32.000000000 +0000
 +++ Makefile
-@@ -137,12 +137,12 @@ $(OBJDIR)/%.o: %.rc $(HEADERS)
- install: $(TARGET)
+@@ -201,25 +201,22 @@ 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)$(BIN_DIR) 2>/dev/null || /bin/true
+       mkdir -p $(DESTDIR)$(GLOBAL_CONFIG_DIR) 2>/dev/null || /bin/true
 +      mkdir -p $(DESTDIR)$(PREFIX)/share/examples/retroarch 2>/dev/null || /bin/true
-+      mkdir -p $(DESTDIR)$(MAN_DIR) 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
+       mkdir -p $(DESTDIR)$(DATA_DIR)/applications 2>/dev/null || /bin/true
+       mkdir -p $(DESTDIR)$(DOC_DIR) 2>/dev/null || /bin/true
+       mkdir -p $(DESTDIR)$(MAN_DIR)/man6 2>/dev/null || /bin/true
+       mkdir -p $(DESTDIR)$(DATA_DIR)/pixmaps 2>/dev/null || /bin/true
+       cp $(TARGET) $(DESTDIR)$(BIN_DIR)
+-      cp tools/cg2glsl.py $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
+-      cp retroarch.cfg $(DESTDIR)$(GLOBAL_CONFIG_DIR)
++      cp retroarch.cfg $(DESTDIR)$(PREFIX)/share/examples/retroarch
+       cp retroarch.desktop $(DESTDIR)$(DATA_DIR)/applications
+       cp docs/retroarch.6 $(DESTDIR)$(MAN_DIR)/man6
+-      cp docs/retroarch-cg2glsl.6 $(DESTDIR)$(MAN_DIR)/man6
+       cp media/retroarch.svg $(DESTDIR)$(DATA_DIR)/pixmaps
+       cp COPYING $(DESTDIR)$(DOC_DIR)
+       cp README.md $(DESTDIR)$(DOC_DIR)
+       chmod 755 $(DESTDIR)$(BIN_DIR)/$(TARGET)
+-      chmod 755 $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
+-      chmod 644 $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
++      chmod 644 $(DESTDIR)$(PREFIX)/share/examples/retroarch/retroarch.cfg
+       chmod 644 $(DESTDIR)$(DATA_DIR)/applications/retroarch.desktop
+       chmod 644 $(DESTDIR)$(MAN_DIR)/man6/retroarch.6
+-      chmod 644 $(DESTDIR)$(MAN_DIR)/man6/retroarch-cg2glsl.6
+       chmod 644 $(DESTDIR)$(DATA_DIR)/pixmaps/retroarch.svg
+       @if test -d media/assets; then \
+               echo "Installing media assets..."; \
+@@ -233,15 +230,13 @@ install: $(TARGET)
+ 
+ uninstall:
+       rm -f $(DESTDIR)$(BIN_DIR)/retroarch
+-      rm -f $(DESTDIR)$(BIN_DIR)/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
+       rm -f $(DESTDIR)$(DATA_DIR)/applications/retroarch.desktop
+       rm -f $(DESTDIR)$(DATA_DIR)/pixmaps/retroarch.svg
+       rm -f $(DESTDIR)$(DOC_DIR)/COPYING
+       rm -f $(DESTDIR)$(DOC_DIR)/COPYING.assets
+       rm -f $(DESTDIR)$(DOC_DIR)/README.md
+       rm -f $(DESTDIR)$(MAN_DIR)/man6/retroarch.6
+-      rm -f $(DESTDIR)$(MAN_DIR)/man6/retroarch-cg2glsl.6
+       rm -rf $(DESTDIR)$(ASSETS_DIR)
  
+ clean:

Added files:

Index: pkgsrc/emulators/retroarch/version.mk
diff -u /dev/null pkgsrc/emulators/retroarch/version.mk:1.1
--- /dev/null   Tue Aug  7 16:44:27 2018
+++ pkgsrc/emulators/retroarch/version.mk       Tue Aug  7 16:44:26 2018
@@ -0,0 +1,5 @@
+# $NetBSD: version.mk,v 1.1 2018/08/07 16:44:26 nia Exp $
+
+.if !defined(RETROARCH_VERSION)
+RETROARCH_VERSION=     1.7.3
+.endif

Index: pkgsrc/emulators/retroarch/patches/patch-frontend_drivers_platform__unix.c
diff -u /dev/null pkgsrc/emulators/retroarch/patches/patch-frontend_drivers_platform__unix.c:1.1
--- /dev/null   Tue Aug  7 16:44:27 2018
+++ pkgsrc/emulators/retroarch/patches/patch-frontend_drivers_platform__unix.c  Tue Aug  7 16:44:27 2018
@@ -0,0 +1,64 @@
+$NetBSD: patch-frontend_drivers_platform__unix.c,v 1.1 2018/08/07 16:44:27 nia Exp $
+
+Pick up paths from pkgsrc.
+
+--- frontend/drivers/platform_unix.c.orig      2018-05-04 03:45:22.000000000 +0000
++++ frontend/drivers/platform_unix.c
+@@ -1818,32 +1818,15 @@ static void frontend_unix_get_env(int *a
+    else
+       snprintf(base_path, sizeof(base_path), "retroarch");
+ 
+-   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], base_path,
+-         "cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
+-   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], base_path,
+-         "cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO]));
++   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], PREFIX,
++         "lib/libretro", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
++   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], PREFIX,
++         "share/libretro/info", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO]));
+    fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG], base_path,
+          "autoconfig", sizeof(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG]));
+ 
+-   if (path_is_directory("/usr/local/share/retroarch/assets"))
+-      fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_ASSETS],
+-            "/usr/local/share/retroarch",
+-            "assets", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
+-   else if (path_is_directory("/usr/share/retroarch/assets"))
+-      fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_ASSETS],
+-            "/usr/share/retroarch",
+-            "assets", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
+-   else if (path_is_directory("/usr/local/share/games/retroarch/assets"))
+-      fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_ASSETS],
+-            "/usr/local/share/games/retroarch",
+-            "assets", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
+-   else if (path_is_directory("/usr/share/games/retroarch/assets"))
+-      fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_ASSETS],
+-            "/usr/share/games/retroarch",
+-            "assets", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
+-   else
+-      fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_ASSETS], base_path,
+-            "assets", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
++   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_ASSETS], PREFIX,
++         "share/retroarch/assets", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
+ 
+    fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_MENU_CONFIG], base_path,
+          "config", sizeof(g_defaults.dirs[DEFAULT_DIR_MENU_CONFIG]));
+@@ -1856,12 +1839,12 @@ static void frontend_unix_get_env(int *a
+          "records_config", sizeof(g_defaults.dirs[DEFAULT_DIR_RECORD_CONFIG]));
+    fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_RECORD_OUTPUT], base_path,
+          "records", sizeof(g_defaults.dirs[DEFAULT_DIR_RECORD_OUTPUT]));
+-   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CURSOR], base_path,
+-         "database/cursors", sizeof(g_defaults.dirs[DEFAULT_DIR_CURSOR]));
+-   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_DATABASE], base_path,
+-         "database/rdb", sizeof(g_defaults.dirs[DEFAULT_DIR_DATABASE]));
+-   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_SHADER], base_path,
+-         "shaders", sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER]));
++   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CURSOR], PREFIX,
++         "share/libretro/database/cursors", sizeof(g_defaults.dirs[DEFAULT_DIR_CURSOR]));
++   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_DATABASE], PREFIX,
++         "share/libretro/database/rdb", sizeof(g_defaults.dirs[DEFAULT_DIR_DATABASE]));
++   fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_SHADER], PREFIX,
++         "share/libretro/shaders", sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER]));
+    fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CHEATS], base_path,
+          "cheats", sizeof(g_defaults.dirs[DEFAULT_DIR_CHEATS]));
+    fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_OVERLAY], base_path,



Home | Main Index | Thread Index | Old Index