Support staging

Use options helpers
This commit is contained in:
Baptiste Daroussin 2013-11-24 18:55:15 +00:00
parent 18ca20f357
commit 6d2107d672
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334762

View file

@ -12,7 +12,6 @@ COMMENT= Bandlimited oscillator plugins for LADSPA-aware audio applications
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
NO_STAGE= yes
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ladspa-prefix="${LOCALBASE}"
@ -22,15 +21,9 @@ OPTIONS_DEFINE= NLS
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \