- Convert to new options framework
This commit is contained in:
parent
1ee826a33e
commit
19d4cf4565
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299805
1 changed files with 8 additions and 7 deletions
|
@ -14,7 +14,8 @@ MASTER_SITES= http://devel.ringlet.net/textproc/confget/ \
|
|||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Read variables from INI-style configuration files
|
||||
|
||||
OPTIONS= PCRE "Regular expression support" on
|
||||
OPTIONS_DEFINE= EXAMPLES PCRE
|
||||
OPTIONS_DEFAULT=PCRE
|
||||
|
||||
MAKE_ENV= CFLAGS_CONF=-DHAVE_FGETLN
|
||||
USE_GMAKE= yes
|
||||
|
@ -24,24 +25,24 @@ MANCOMPRESSED= yes
|
|||
PLIST_FILES= bin/confget
|
||||
PORTEXAMPLES= t1.ini t2.ini
|
||||
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if !defined(WITHOUT_PCRE)
|
||||
.if ${PORT_OPTIONS:MPCRE}
|
||||
LIB_DEPENDS+= pcre.1:${PORTSDIR}/devel/pcre
|
||||
.else
|
||||
MAKE_ENV+= PCRE_CFLAGS="" PCRE_LIBS=""
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if defined(NOPORTEXAMPLES)
|
||||
.if empty(${PORT_OPTIONS:MEXAMPLES})
|
||||
@${REINPLACE_CMD} -e '/^install:/ s| install-examples||' ${WRKSRC}/Makefile
|
||||
.endif
|
||||
|
||||
regression-test test: build
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test
|
||||
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue