freebsd-ports/devel/gnulib/Makefile
Johan van Selst 7e0713cf7f - Add explicit perl dependency (build + run)
- Bump PORTREVISION
- Remove BROKEN
2013-05-14 20:11:14 +00:00

54 lines
1.4 KiB
Makefile

# Created by: Johans van Selst <johans@FreeBSD.org>
# $FreeBSD$
PORTNAME= gnulib
PORTVERSION= 20120404
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://erislabs.net/ianb/projects/gnulib/
DISTNAME= ${PORTNAME}-${PORTVERSION}-stable
MAINTAINER= johans@FreeBSD.org
COMMENT= GNU portability library
BUILD_DEPENDS= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
USE_GMAKE= yes
USE_PERL5= yes
PLIST_FILES= bin/check-module bin/gnulib-tool
INFO= ${PORTNAME}
PORTDATA= *
.ifdef NOPORTDATA
IGNORE= gnulib requires port data, unset NOPORTDATA to install
.endif
.ifndef NOPORTDOCS
PLIST_DIRS+= %%DOCSDIR%%
PLIST_FILES+= %%DOCSDIR%%/${PORTNAME}.html
.endif
post-patch:
${REINPLACE_CMD} -e 's/date -u.*/stat -f %Sa -t "@set UPDATED %F %T" `ls -t $$^ | sed 1q` > $$@/' \
-e 's: makeinfo$$: ${LOCALBASE}/bin/makeinfo:' \
${WRKSRC}/doc/Makefile
do-build:
cd ${WRKSRC} && ${GMAKE} -C doc info html
do-install:
${MKDIR} ${DATADIR} ${PREFIX}/${INFO_PATH}
for p in check-module gnulib-tool;\
do ${INSTALL_SCRIPT} ${WRKSRC}/$$p ${DATADIR};\
cd ${PREFIX}/bin && ${LN} -s ${DATADIR}/$$p;\
done
${TAR} -cf - -C ${WRKSRC} build-aux config doc lib m4 modules \
tests top | ${TAR} -xof - -C ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/doc/gnulib.info ${PREFIX}/${INFO_PATH}
.ifndef NOPORTDOCS
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/gnulib.html ${DOCSDIR}
.endif
.include <bsd.port.mk>