pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/snes9x-gtk Add options.mk to utilise the opt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/db0532fd2a9c
branches:  trunk
changeset: 621256:db0532fd2a9c
user:      rodent <rodent%pkgsrc.org@localhost>
date:      Sat Jul 06 16:19:41 2013 +0000

description:
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:

 emulators/snes9x-gtk/Makefile   |  12 ++++-----
 emulators/snes9x-gtk/options.mk |  49 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 7 deletions(-)

diffs (95 lines):

diff -r 4b2591dfa473 -r db0532fd2a9c emulators/snes9x-gtk/Makefile
--- a/emulators/snes9x-gtk/Makefile     Sat Jul 06 16:18:41 2013 +0000
+++ b/emulators/snes9x-gtk/Makefile     Sat Jul 06 16:19:41 2013 +0000
@@ -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 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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 @@
 .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 -r 4b2591dfa473 -r db0532fd2a9c emulators/snes9x-gtk/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/snes9x-gtk/options.mk   Sat Jul 06 16:19:41 2013 +0000
@@ -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



Home | Main Index | Thread Index | Old Index