2012-12-08 16:25:09 +00:00
|
|
|
# Created by: Peter Pentchev <roam@FreeBSD.org>
|
2009-03-18 11:12:04 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= confget
|
2016-04-08 16:27:51 +00:00
|
|
|
PORTVERSION= 2.0.0
|
2009-03-18 11:12:04 +00:00
|
|
|
CATEGORIES= textproc
|
2016-04-08 16:27:51 +00:00
|
|
|
MASTER_SITES= http://devel.ringlet.net/files/textproc/confget/ \
|
2012-02-29 16:14:06 +00:00
|
|
|
LOCAL/sunpoet
|
2009-03-18 11:12:04 +00:00
|
|
|
|
2012-02-25 16:51:35 +00:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2009-03-18 11:12:04 +00:00
|
|
|
COMMENT= Read variables from INI-style configuration files
|
|
|
|
|
2013-12-26 21:51:58 +00:00
|
|
|
LICENSE= BSD2CLAUSE
|
2013-11-04 17:01:15 +00:00
|
|
|
|
2012-06-23 05:20:21 +00:00
|
|
|
OPTIONS_DEFINE= EXAMPLES PCRE
|
|
|
|
OPTIONS_DEFAULT=PCRE
|
2009-03-18 11:12:04 +00:00
|
|
|
|
2012-02-29 16:14:06 +00:00
|
|
|
MAKE_ENV= CFLAGS_CONF=-DHAVE_FGETLN
|
2015-10-01 15:56:34 +00:00
|
|
|
TEST_TARGET= test
|
2016-04-08 16:27:51 +00:00
|
|
|
USES= gmake tar:xz
|
2009-03-18 11:12:04 +00:00
|
|
|
|
2013-11-04 17:01:15 +00:00
|
|
|
PLIST_FILES= bin/confget \
|
|
|
|
man/man1/confget.1.gz
|
2012-02-29 16:14:06 +00:00
|
|
|
PORTEXAMPLES= t1.ini t2.ini
|
2009-03-18 11:12:04 +00:00
|
|
|
|
2016-04-01 14:25:16 +00:00
|
|
|
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
|
2014-03-08 19:46:40 +00:00
|
|
|
PCRE_MAKE_ENV_OFF= PCRE_CFLAGS="" PCRE_LIBS=""
|
2012-02-29 16:14:06 +00:00
|
|
|
|
2014-09-09 14:43:36 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/confget ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/confget.1 ${STAGEDIR}${PREFIX}/man/man1/
|
|
|
|
cd ${WRKSRC}/t/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
|
2013-11-04 17:01:15 +00:00
|
|
|
|
2012-02-29 16:14:06 +00:00
|
|
|
.include <bsd.port.mk>
|