aboutsummaryrefslogtreecommitdiff
path: root/audio/gimmix
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-08-19 13:29:59 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-08-19 13:29:59 +0000
commitbb271f0bf7b513a23a31da4ec8819b113ebf4587 (patch)
treeac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /audio/gimmix
parent29879aded766da253313579a3503ff5e15026355 (diff)
downloadports-bb271f0bf7b513a23a31da4ec8819b113ebf4587.tar.gz
ports-bb271f0bf7b513a23a31da4ec8819b113ebf4587.zip
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
Notes
Notes: svn path=/head/; revision=394778
Diffstat (limited to 'audio/gimmix')
-rw-r--r--audio/gimmix/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/audio/gimmix/Makefile b/audio/gimmix/Makefile
index ee37a5c89d0c..e4f7f7abe9c6 100644
--- a/audio/gimmix/Makefile
+++ b/audio/gimmix/Makefile
@@ -16,6 +16,7 @@ LIB_DEPENDS= libmpd.so:${PORTSDIR}/audio/libmpd \
LICENSE= GPLv2
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
USE_GNOME= gtk20 intltool libglade2
@@ -24,18 +25,10 @@ USES= tar:bzip2 desktop-file-utils gmake pkgconfig
CONFIGURE_ENV= DATADIRNAME=share
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -lintl
-CONFIGURE_ARGS+= --enable-nls
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib -lintl
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
post-patch:
@${LN} -sf ${LOCALBASE}/share/intltool/Makefile.in.in ${WRKSRC}/po/Makefile.in.in