aboutsummaryrefslogtreecommitdiff
path: root/emulators/snes9x-gtk
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2017-01-07 13:39:14 +0000
committerJason E. Hale <jhale@FreeBSD.org>2017-01-07 13:39:14 +0000
commit33a71ffb9221d72d123b131ed6b02c2b2a0ce45d (patch)
tree4e833aaa9dbaca3be600c69215f487727181bd17 /emulators/snes9x-gtk
parent2ff33a543768dbc54bf30c6186b2315640efec33 (diff)
downloadports-33a71ffb9221d72d123b131ed6b02c2b2a0ce45d.tar.gz
ports-33a71ffb9221d72d123b131ed6b02c2b2a0ce45d.zip
Notes
Diffstat (limited to 'emulators/snes9x-gtk')
-rw-r--r--emulators/snes9x-gtk/Makefile86
-rw-r--r--emulators/snes9x-gtk/distinfo5
-rw-r--r--emulators/snes9x-gtk/files/patch-gtk-configure11
-rw-r--r--emulators/snes9x-gtk/files/patch-gtk-src-gtk__s9x.cpp19
-rw-r--r--emulators/snes9x-gtk/files/patch-screenshot.cpp6
-rw-r--r--emulators/snes9x-gtk/pkg-descr4
6 files changed, 56 insertions, 75 deletions
diff --git a/emulators/snes9x-gtk/Makefile b/emulators/snes9x-gtk/Makefile
index 3e8a9f2442eb..76ab14d43f9f 100644
--- a/emulators/snes9x-gtk/Makefile
+++ b/emulators/snes9x-gtk/Makefile
@@ -2,61 +2,67 @@
# $FreeBSD$
PORTNAME= snes9x
-PORTVERSION= 1.53r81
-PORTREVISION= 5
+PORTVERSION= 1.54.1
CATEGORIES= emulators
-MASTER_SITES= http://snes9x-gtk.googlecode.com/files/
PKGNAMESUFFIX= -gtk
-DISTNAME= snes9x-1.53-src
MAINTAINER= root@cooltrainer.org
-COMMENT= Super Nintendo Entertainment System(SNES) Emulator
+COMMENT= Super Nintendo Entertainment System (SNES) Emulator
LICENSE= Snes9x
LICENSE_NAME= Snes9x License
-LICENSE_FILE= ${WRKDIR}/${DISTNAME}/docs/snes9x-license.txt
+LICENSE_FILE= ${WRKSRC}/../docs/snes9x-license.txt
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
-BROKEN= Unfetchable (google code has gone away)
-
LIB_DEPENDS= libpng.so:graphics/png
-USE_XORG= x11 sm ice xext
-USES= gettext gmake perl5 desktop-file-utils pkgconfig tar:bzip2 desktop-file-utils
-USE_GNOME= gtk20 intltool libglade2 libxml2
-GNU_CONFIGURE= yes
+USE_GITHUB= yes
+GH_ACCOUNT= snes9xgit
+
+USES= autoreconf desktop-file-utils gettext gmake \
+ localbase perl5 pkgconfig tar:bzip2
+USE_GNOME= cairo gdkpixbuf2 gtk20 intltool libxml2
USE_SDL= sdl2
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+USE_XORG= x11 xext
+GNU_CONFIGURE= yes
+LDFLAGS+= -Wl,--as-needed
-WRKSRC= ${WRKDIR}/${DISTNAME}/gtk
+PATCH_WRKSRC= ${WRKSRC}/..
+WRKSRC_SUBDIR= gtk
NO_CDROM= Commercial users must seek permission from copyright holders.
-OPTIONS_DEFINE= DEBUG OPENGL JMA NETPLAY XV XRANDR ALSA PORTAUDIO PULSEAUDIO
-OPTIONS_DEFAULT= JMA NETPLAY XV XRANDR
-JMA_DESC= Enable JMA archive decompression support
-NETPLAY_DESC= Enable network support
-XV_DESC= Enable XVideo output on GTK
-XRANDR_DESC= Enable XRandR support on GTK
-PORTAUDIO_DESC= Enable PortAudio support
-GTK2_DESC= Use GTK 2.x interface toolkit
-
-DEBUG_CONFIGURE_WITH= debug
-OPENGL_CONFIGURE_WITH= opengl
-OPENGL_USE= GL=glu
-JMA_CONFIGURE_WITH= jma-decomp
-NETPLAY_CONFIGURE_WITH= netplay
-XV_CONFIGURE_WITH= xv
-XV_USE= XORG=xv
-XRANDR_CONFIGURE_WITH= xrandr
-XRANDR_USE= XORG=xrandr
-ALSA_CONFIGURE_WITH= alsa
-ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
-ALSA_USES= compiler:c++11-lang
+OPTIONS_DEFINE= DEBUG JMA NETPLAY
+OPTIONS_GROUP= SOUND VIDEO
+OPTIONS_GROUP_SOUND= ALSA PORTAUDIO PULSEAUDIO
+OPTIONS_GROUP_VIDEO= OPENGL XRANDR XVIDEO
+OPTIONS_DEFAULT= JMA NETPLAY XVIDEO XRANDR
+
+DEBUG_CONFIGURE_WITH= debug
+
+JMA_DESC= JMA archive decompression support
+JMA_CONFIGURE_WITH= jma-decomp
+
+NETPLAY_DESC= Network support
+NETPLAY_CONFIGURE_WITH= netplay
+
+OPENGL_CONFIGURE_WITH= opengl
+OPENGL_USE= GL=gl,glu
+
+XRANDR_CONFIGURE_WITH= xrandr
+XRANDR_USE= XORG=xrandr
+
+XVIDEO_CONFIGURE_WITH= xv
+XVIDEO_USE= XORG=xv
+
+ALSA_CONFIGURE_WITH= alsa
+ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
+ALSA_USES= compiler:c++11-lang
+
PORTAUDIO_CONFIGURE_WITH= portaudio
-PORTAUDIO_LIB_DEPENDS= libportaudio.so.2:audio/portaudio2
+PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
+
PULSEAUDIO_CONFIGURE_WITH= pulseaudio
-PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
+PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PLIST_FILES= bin/snes9x-gtk \
share/pixmaps/snes9x.svg \
@@ -70,6 +76,10 @@ CONFIGURE_ARGS+= --with-joystick
CONFIGURE_ARGS+= --without-joystick
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|sdl|sdl2|g' -e 's|-ldl||g' \
+ ${WRKSRC}/configure.ac
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}${PKGNAMESUFFIX} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
diff --git a/emulators/snes9x-gtk/distinfo b/emulators/snes9x-gtk/distinfo
index 27e9fcca799f..4b22925329a3 100644
--- a/emulators/snes9x-gtk/distinfo
+++ b/emulators/snes9x-gtk/distinfo
@@ -1,2 +1,3 @@
-SHA256 (snes9x-1.53-src.tar.bz2) = 9f7c5d2d0fa3fe753611cf94e8879b73b8bb3c0eab97cdbcb6ab7376efa78dc3
-SIZE (snes9x-1.53-src.tar.bz2) = 1838746
+TIMESTAMP = 1479034785
+SHA256 (snes9xgit-snes9x-1.54.1_GH0.tar.gz) = 85862a22498bc418c37bd7c81a3089d9cc00af279b91e5f7fa8bea05e2e3027b
+SIZE (snes9xgit-snes9x-1.54.1_GH0.tar.gz) = 2186737
diff --git a/emulators/snes9x-gtk/files/patch-gtk-configure b/emulators/snes9x-gtk/files/patch-gtk-configure
deleted file mode 100644
index 1262b4d4818b..000000000000
--- a/emulators/snes9x-gtk/files/patch-gtk-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig 2013-10-25 02:52:16.000000000 -0700
-+++ configure 2013-10-25 02:52:43.000000000 -0700
-@@ -6316,7 +6316,7 @@
- CFLAGS="$CFLAGS -fomit-frame-pointer"
- fi
-
--LIBS="$LIBS -lX11 -ldl -lXext"
-+LIBS="$LIBS -lX11 -lXext"
-
- ZSNESFX='#ZSNESFX=yes'
- ZSNESC4='#ZSNESC4=yes'
diff --git a/emulators/snes9x-gtk/files/patch-gtk-src-gtk__s9x.cpp b/emulators/snes9x-gtk/files/patch-gtk-src-gtk__s9x.cpp
deleted file mode 100644
index 0397c8de9332..000000000000
--- a/emulators/snes9x-gtk/files/patch-gtk-src-gtk__s9x.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
---- src/gtk_s9x.cpp.orig 2013-10-25 03:47:08.000000000 -0700
-+++ src/gtk_s9x.cpp 2013-10-25 03:47:32.000000000 -0700
-@@ -44,6 +44,7 @@
-
- g_thread_init (NULL);
- gdk_threads_init ();
-+ gdk_threads_enter();
-
- gtk_init (&argc, &argv);
-
-@@ -127,6 +128,8 @@
-
- gtk_main ();
-
-+ gdk_threads_leave();
-+
- return 0;
- }
-
diff --git a/emulators/snes9x-gtk/files/patch-screenshot.cpp b/emulators/snes9x-gtk/files/patch-screenshot.cpp
index dd19fa6db61a..122d12fba7df 100644
--- a/emulators/snes9x-gtk/files/patch-screenshot.cpp
+++ b/emulators/snes9x-gtk/files/patch-screenshot.cpp
@@ -1,6 +1,6 @@
---- ../screenshot.cpp.orig 2010-02-23 00:19:36.132640984 -0500
-+++ ../screenshot.cpp 2010-02-23 00:19:59.151074837 -0500
-@@ -182,6 +182,7 @@
+--- screenshot.cpp.orig 2016-10-15 00:20:34 UTC
++++ screenshot.cpp
+@@ -186,6 +186,7 @@
#include "memmap.h"
#include "display.h"
#include "screenshot.h"
diff --git a/emulators/snes9x-gtk/pkg-descr b/emulators/snes9x-gtk/pkg-descr
index 66d7c0134a71..dd3cd72bd6a8 100644
--- a/emulators/snes9x-gtk/pkg-descr
+++ b/emulators/snes9x-gtk/pkg-descr
@@ -1,3 +1,3 @@
-Super Nintendo Entertainment System(SNES) Emulator with GTK GUI
+Super Nintendo Entertainment System (SNES) Emulator with GTK+2 GUI
-WWW: http://code.google.com/p/snes9x-gtk/
+WWW: https://github.com/snes9xgit/snes9x/