1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/devel/gnulib/Makefile
Bernhard Froehlich af7a37c7df
devel/gnulib: Add CPE information
Approved by:	portmgr (blanket)
2021-09-25 20:28:49 +00:00

50 lines
1.4 KiB
Makefile

PORTNAME= gnulib
PORTVERSION= 20140202
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://erislabs.net/ianb/projects/gnulib/
DISTNAME= ${PORTNAME}-${PORTVERSION}-stable
MAINTAINER= ports@FreeBSD.org
COMMENT= GNU portability library
LICENSE= GPLv2+ GPLv3+ LGPL20+ LGPL3+ PD
LICENSE_COMB= multi
BUILD_DEPENDS= ${LOCALBASE}/bin/makeinfo:print/texinfo
USES= cpe gmake perl5 shebangfix
SHEBANG_FILES= check-module
CPE_VENDOR= gnu
PLIST_FILES= bin/check-module bin/gnulib-tool
INFO= ${PORTNAME}
PORTDOCS= gnulib.html
PORTDATA= *
OPTIONS_DEFINE= DOCS
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} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C doc info html
do-install:
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${PREFIX}/${INFO_PATH}
.for p in check-module gnulib-tool
${INSTALL_SCRIPT} ${WRKSRC}/${p} ${STAGEDIR}${DATADIR}/
${LN} -s ../${DATADIR_REL}/${p} ${STAGEDIR}${PREFIX}/bin/
.endfor
${TAR} -cf - -C ${WRKSRC} build-aux config doc lib m4 modules \
tests top | ${TAR} -xof - -C ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/doc/gnulib.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/gnulib.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>