aboutsummaryrefslogtreecommitdiff
path: root/devel/libcfg/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libcfg/Makefile')
-rw-r--r--devel/libcfg/Makefile66
1 files changed, 66 insertions, 0 deletions
diff --git a/devel/libcfg/Makefile b/devel/libcfg/Makefile
new file mode 100644
index 000000000000..c1204a671b5a
--- /dev/null
+++ b/devel/libcfg/Makefile
@@ -0,0 +1,66 @@
+# ports collection makefile for: libcfg
+# Date created: 30 April 2007
+# Whom: Martin Matuska <mm@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libcfg
+PORTVERSION= 0.6.2
+CATEGORIES= devel
+MASTER_SITES= http://platon.sk/upload/_projects/00003/
+DISTNAME= ${PORTNAME}+-${DISTVERSION}
+
+MAINTAINER= mm@FreeBSD.org
+COMMENT= Library for command line and configuration file parsing
+
+USE_AUTOTOOLS= autoconf:259
+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= *
+
+OPTIONS= EXAMPLES "Install examples" off \
+ HTMLDOCS "Install html documentation" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_EXAMPLES)
+PLIST_SUB+= EXAMPLES=""
+.else
+PLIST_SUB+= EXAMPLES="@comment "
+.endif
+
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+= -fPIC
+.endif
+
+post-install:
+.if defined(WITH_EXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/examples/example.* ${EXAMPLESDIR}
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in AUTHORS COPYING README TODO
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+.if defined(WITH_HTMLDOCS)
+ @${MKDIR} ${DOCSDIR}/html
+ @for FILE in ${WRKSRC}/doc/html/*; do \
+ ${INSTALL_DATA} $${FILE} ${DOCSDIR}/html; \
+ done
+.endif
+.endif
+
+.include <bsd.port.post.mk>