1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

- Add LICENSE

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2015-12-14 01:08:30 +00:00
parent 5eb3f499d9
commit 1d26247835
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=403696

View File

@ -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}