summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-04-04 13:22:14 +0000
committerbapt <bapt@FreeBSD.org>2014-04-04 13:22:14 +0000
commitd29bcc02f4d5f75c03041382f069642e260831a5 (patch)
treee50843ae876c7604d6862b28cb9149e80724e41a
parent9d085f7c9a4a6e3211b111c8cbdf0a0c6ab9ef6c (diff)
downloadFreeBSD-ports-d29bcc02f4d5f75c03041382f069642e260831a5.zip
FreeBSD-ports-d29bcc02f4d5f75c03041382f069642e260831a5.tar.gz
Use options helpers
-rw-r--r--deskutils/xpad/Makefile21
1 files changed, 8 insertions, 13 deletions
diff --git a/deskutils/xpad/Makefile b/deskutils/xpad/Makefile
index 0fd2f3f..8c3746d 100644
--- a/deskutils/xpad/Makefile
+++ b/deskutils/xpad/Makefile
@@ -13,29 +13,24 @@ COMMENT= Virtual note-pad system for your X11 desktop
LICENSE= GPLv3
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
CONFLICTS_INSTALL= xpad-current-[0-9]*
-USE_BZIP2= yes
USE_XORG= x11 sm
USE_GNOME= gtk20 gnomehier intltool
-USES= pkgconfig gmake
+USES= pkgconfig gmake tar:bzip2
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
-.include <bsd.port.options.mk>
+NLS_USES= gettext
+NLS_CPPFLAGS= ${CXXFLAGS} -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib
+NLS_CONFIGURE_ENABLE= nls
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+.include <bsd.port.options.mk>
-post-patch-script:
+post-patch:
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|SUBDIRS = autopackage doc src images po|SUBDIRS = autopackage doc src images|' \
${WRKSRC}/Makefile.in
OpenPOWER on IntegriCloud