b2c4fbb77a
Introduces the UTF-32 library pcre32 Bump PORTREVISION in dependent ports
45 lines
1,003 B
Makefile
45 lines
1,003 B
Makefile
# Created by: Peter Pentchev <roam@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= confget
|
|
PORTVERSION= 1.04
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://devel.ringlet.net/textproc/confget/ \
|
|
LOCAL/sunpoet
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Read variables from INI-style configuration files
|
|
|
|
OPTIONS_DEFINE= EXAMPLES PCRE
|
|
OPTIONS_DEFAULT=PCRE
|
|
|
|
MAKE_ENV= CFLAGS_CONF=-DHAVE_FGETLN
|
|
USE_GMAKE= yes
|
|
|
|
MAN1= confget.1
|
|
MANCOMPRESSED= yes
|
|
PLIST_FILES= bin/confget
|
|
PORTEXAMPLES= t1.ini t2.ini
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPCRE}
|
|
LIB_DEPENDS+= pcre.3:${PORTSDIR}/devel/pcre
|
|
.else
|
|
MAKE_ENV+= PCRE_CFLAGS="" PCRE_LIBS=""
|
|
.endif
|
|
|
|
post-patch:
|
|
.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
|
|
|
|
.include <bsd.port.mk>
|