1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Support stage

This commit is contained in:
Baptiste Daroussin 2013-12-10 20:59:41 +00:00
parent 714576d1d7
commit 3c2e1c966e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336111
2 changed files with 14 additions and 19 deletions

View File

@ -8,33 +8,27 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTNAME= ${PORTNAME}${PORTVERSION:S/./-/}
MAINTAINER= ports@FreeBSD.org
COMMENT= An ANSI C library for parsing GNU style command line arguments
COMMENT= ANSI C library for parsing GNU style command line arguments
OPTIONS_DEFINE= DOCS EXAMPLES
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
MAN3= argtable2.3
MLINKS= argtable2.3 argtable.3
NO_STAGE= yes
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 ${MAN3PREFIX}/man/man3
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.c ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.h ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.txt ${EXAMPLESDIR}
.endif
${INSTALL_MAN} ${WRKSRC}/doc/argtable2.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
@${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}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.c ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.h ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.txt ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -3,6 +3,7 @@ lib/libargtable2.a
lib/libargtable2.la
lib/libargtable2.so
lib/libargtable2.so.1
man/man3/argtable2.3.gz
%%PORTDOCS%%%%DOCSDIR%%/arg_int.gif
%%PORTDOCS%%%%DOCSDIR%%/argtable2-advanced.html
%%PORTDOCS%%%%DOCSDIR%%/argtable2-advanced.pdf