2013-01-12 13:07:59 +01:00
|
|
|
# Created by: Martin Matuska <mm@FreeBSD.org>
|
2007-04-30 15:02:27 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libcfg
|
|
|
|
PORTVERSION= 0.6.2
|
2010-09-15 20:35:24 +02:00
|
|
|
PORTREVISION= 2
|
2007-04-30 15:02:27 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://platon.sk/upload/_projects/00003/
|
|
|
|
DISTNAME= ${PORTNAME}+-${DISTVERSION}
|
|
|
|
|
2013-01-12 13:07:59 +01:00
|
|
|
MAINTAINER= rodrigo@bebik.net
|
2007-04-30 15:02:27 +02:00
|
|
|
COMMENT= Library for command line and configuration file parsing
|
|
|
|
|
2011-03-23 16:53:22 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2007-04-30 15:02:27 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
|
|
MAN3= cfg_add_property.3 cfg_context.3 cfg_option.3 cfg_parse.3 \
|
|
|
|
cfg_print_error.3 cfg_set_context_flag.3 libcfg+.3
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
INSTALL_TARGET+= install-man
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2012-06-12 11:17:03 +02:00
|
|
|
OPTIONS_DEFINE= EXAMPLES DOCS
|
2007-04-30 15:02:27 +02:00
|
|
|
|
2013-09-20 19:13:42 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-12 11:17:03 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-04-30 15:02:27 +02:00
|
|
|
|
2012-06-12 11:17:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2007-04-30 15:02:27 +02:00
|
|
|
PLIST_SUB+= EXAMPLES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2012-06-12 11:17:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2007-04-30 15:02:27 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/examples/example.* ${EXAMPLESDIR}
|
|
|
|
.endif
|
2012-06-12 11:17:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-04-30 15:02:27 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2011-03-23 16:53:22 +01:00
|
|
|
.for FILE in AUTHORS README TODO
|
2007-04-30 15:02:27 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
@for FILE in ${WRKSRC}/doc/html/*; do \
|
|
|
|
${INSTALL_DATA} $${FILE} ${DOCSDIR}/html; \
|
|
|
|
done
|
|
|
|
.endif
|
|
|
|
|
2012-06-12 11:17:03 +02:00
|
|
|
.include <bsd.port.mk>
|