1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Use options helpers

This commit is contained in:
Baptiste Daroussin 2014-04-04 13:19:55 +00:00
parent 9f3268d565
commit 05de4f684f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350111

View File

@ -14,29 +14,23 @@ COMMENT= Virtual note-pad system for your X11 desktop
LICENSE= GPLv3
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
CONFLICTS_INSTALL= xpad-[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
CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.options.mk>
#code currently doesn't properly handle --disable-nls (in next upstream milestone)
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
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