pkgsrc/emulators/snes9x-gtk/options.mk
rodent a9b84ca710 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
2013-07-06 16:19:41 +00:00

49 lines
1.1 KiB
Makefile

# $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