- Swith to USES=libtool

- Optionize and simplify docs installation
This commit is contained in:
Dmitry Marakasov 2014-06-10 20:52:20 +00:00
parent 6b4ff7ca75
commit 05f8404a32
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357380

View file

@ -14,7 +14,8 @@ LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet
WRKSRC= ${WRKDIR}/pixilate
USE_AUTOTOOLS= aclocal autoconf automake libtool
USES= libtool
USE_AUTOTOOLS= aclocal autoconf automake
AUTOMAKE_ARGS= --add-missing
PORTDOCS= README
@ -22,6 +23,8 @@ PLIST_FILES= bin/pixilate man/man1/pixilate.1.gz
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|libnet-config|${LIBNET_CONFIG}|; \
@ -29,11 +32,7 @@ post-patch:
${WRKSRC}/configure.ac
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>