aboutsummaryrefslogtreecommitdiffstats
path: root/devel/argtable
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-14 09:08:30 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-14 09:08:30 +0800
commit1a15b1cbc269f35f6c56a197bfdb52bba5126762 (patch)
treeca8a3523d7b9374b995be39ce3ccc5e8624c6971 /devel/argtable
parent7a57ac48e2248f9ade3e3ee6f03037045692176e (diff)
downloadfreebsd-ports-gnome-1a15b1cbc269f35f6c56a197bfdb52bba5126762.tar.gz
freebsd-ports-gnome-1a15b1cbc269f35f6c56a197bfdb52bba5126762.tar.zst
freebsd-ports-gnome-1a15b1cbc269f35f6c56a197bfdb52bba5126762.zip
- Add LICENSE
- Switch to options helpers
Diffstat (limited to 'devel/argtable')
-rw-r--r--devel/argtable/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/argtable/Makefile b/devel/argtable/Makefile
index 8dc1863cd446..29e8ab0df654 100644
--- a/devel/argtable/Makefile
+++ b/devel/argtable/Makefile
@@ -11,24 +11,31 @@ DISTNAME= ${PORTNAME}${PORTVERSION:S/./-/}
MAINTAINER= ports@FreeBSD.org
COMMENT= ANSI C library for parsing GNU style command line arguments
-OPTIONS_DEFINE= DOCS EXAMPLES
+LICENSE= LGPL20 # or later
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g ; \
s|^install-data-am: |install-data-am: #|g' ${WRKSRC}/Makefile.in
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/argtable2.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.c ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.h ${STAGEDIR}${EXAMPLESDIR}