Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 13:22:15 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350112 - head/deskutils/xpad
Message-ID:  <201404041322.s34DMFL4099817@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Apr  4 13:22:14 2014
New Revision: 350112
URL: http://svnweb.freebsd.org/changeset/ports/350112
QAT: https://qat.redports.org/buildarchive/r350112/

Log:
  Use options helpers

Modified:
  head/deskutils/xpad/Makefile

Modified: head/deskutils/xpad/Makefile
==============================================================================
--- head/deskutils/xpad/Makefile	Fri Apr  4 13:19:55 2014	(r350111)
+++ head/deskutils/xpad/Makefile	Fri Apr  4 13:22:14 2014	(r350112)
@@ -13,29 +13,24 @@ COMMENT=	Virtual note-pad system for you
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404041322.s34DMFL4099817>