summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorrodent <rodent>2013-07-06 16:19:41 +0000
committerrodent <rodent>2013-07-06 16:19:41 +0000
commitd0ac28b59fb693b302153186b933edee93925c96 (patch)
tree4cf1ad8e2ff31e8f6e4a2374d2b4c6b5d4bf39e3 /emulators
parent4b4c60e1ff8a588eef4a7787a7e50711da899895 (diff)
downloadpkgsrc-d0ac28b59fb693b302153186b933edee93925c96.tar.gz
Add options.mk to utilise the options framework, enabling the user to build
with the alsa, opengl, png, pulseaudio, xrandr, xvideo, and zlib PKG_OPTIONS. png, xrandr, xvideo, and zlib are enabled by default, since those are the package's defaults. This relocates libXv from Makefile and moves the disabling of OpenGL (which i can't see a reason why it is/was disabled) to options.mk. Add msgmerge, xgettext, and perl to USE_TOOLS. Set LICENSE to gnu-lgpl-v2.1, which is reflected on HOMEPAGE, but code also includes gnu-gpl-v2 code, so add that too just to be safe. Bump PKGREVISION
Diffstat (limited to 'emulators')
-rw-r--r--emulators/snes9x-gtk/Makefile12
-rw-r--r--emulators/snes9x-gtk/options.mk49
2 files changed, 54 insertions, 7 deletions
diff --git a/emulators/snes9x-gtk/Makefile b/emulators/snes9x-gtk/Makefile
index 12aa4117e00..6e44b3f4e35 100644
--- a/emulators/snes9x-gtk/Makefile
+++ b/emulators/snes9x-gtk/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.31 2013/06/06 12:54:19 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2013/07/06 16:19:41 rodent Exp $
#
DISTNAME= snes9x-1.53-src
PKGNAME= snes9x-gtk-1.53.81
-PKGREVISION= 13
+PKGREVISION= 14
CATEGORIES= emulators
MASTER_SITES= http://snes9x-gtk.googlecode.com/files/
EXTRACT_SUFX= .tar.bz2
@@ -11,15 +11,14 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.snes9x.com/phpbb2/viewtopic.php?p=22874
COMMENT= SNES emulator with GTK frontend
+LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
WRKSRC= ${WRKDIR}/${DISTNAME}/gtk
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
-USE_TOOLS+= intltool pkg-config msgfmt
+USE_TOOLS+= intltool msgfmt msgmerge perl pkg-config xgettext
-CONFIGURE_ARGS+= --without-opengl
-
-.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
@@ -32,7 +31,6 @@ BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.10.0
.include "../../x11/gtk2/buildlink3.mk"
-.include "../../x11/libXv/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/snes9x-gtk/options.mk b/emulators/snes9x-gtk/options.mk
new file mode 100644
index 00000000000..4afc5df28cc
--- /dev/null
+++ b/emulators/snes9x-gtk/options.mk
@@ -0,0 +1,49 @@
+# $NetBSD: options.mk,v 1.1 2013/07/06 16:19:41 rodent Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.snes9x-gtk
+PKG_SUPPORTED_OPTIONS= alsa opengl png pulseaudio xrandr xvideo zlib
+PKG_SUGGESTED_OPTIONS+= png xrandr xvideo zlib
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Malsa)
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mopengl)
+.include "../../graphics/MesaLib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-opengl
+.endif
+
+.if !empty(PKG_OPTIONS:Mpng)
+.include "../../graphics/png/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-screenshot
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-pulseaudio
+.endif
+
+.if !empty(PKG_OPTIONS:Mxrandr)
+.include "../../x11/libXrandr/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-xrandr
+.endif
+
+.if !empty(PKG_OPTIONS:Mxvideo)
+.include "../../x11/libXv/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-xv
+.endif
+
+.if !empty(PKG_OPTIONS:Mzlib)
+.include "../../devel/zlib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-zlib
+.endif