Use options helpers
This commit is contained in:
parent
9f3268d565
commit
05de4f684f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350111
1 changed files with 6 additions and 12 deletions
|
@ -14,29 +14,23 @@ COMMENT= Virtual note-pad system for your X11 desktop
|
||||||
LICENSE= GPLv3
|
LICENSE= GPLv3
|
||||||
|
|
||||||
OPTIONS_DEFINE= NLS
|
OPTIONS_DEFINE= NLS
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
CONFLICTS_INSTALL= xpad-[0-9]*
|
CONFLICTS_INSTALL= xpad-[0-9]*
|
||||||
USE_BZIP2= yes
|
|
||||||
USE_XORG= x11 sm
|
USE_XORG= x11 sm
|
||||||
USE_GNOME= gtk20 gnomehier intltool
|
USE_GNOME= gtk20 gnomehier intltool
|
||||||
USES= pkgconfig gmake
|
USES= pkgconfig gmake tar:bzip2
|
||||||
INSTALLS_ICONS= yes
|
INSTALLS_ICONS= yes
|
||||||
CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
|
CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib
|
LDFLAGS+= -L${LOCALBASE}/lib
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
|
||||||
|
NLS_USES= gettext
|
||||||
|
NLS_CONFIGURE_ENABLE= nls
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
#code currently doesn't properly handle --disable-nls (in next upstream milestone)
|
post-patch:
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
|
||||||
USES+= gettext
|
|
||||||
PLIST_SUB+= NLS=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+= --disable-nls
|
|
||||||
PLIST_SUB+= NLS="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch-script:
|
|
||||||
.if ! ${PORT_OPTIONS:MNLS}
|
.if ! ${PORT_OPTIONS:MNLS}
|
||||||
@${REINPLACE_CMD} -e 's|SUBDIRS = autopackage doc src images po|SUBDIRS = autopackage doc src images|' \
|
@${REINPLACE_CMD} -e 's|SUBDIRS = autopackage doc src images po|SUBDIRS = autopackage doc src images|' \
|
||||||
${WRKSRC}/Makefile.in
|
${WRKSRC}/Makefile.in
|
||||||
|
|
Loading…
Reference in a new issue