Changeset View
Changeset View
Standalone View
Standalone View
archivers/star/Makefile
# Created by: Andreas Klemm <andreas@klemm.gtn.com> | |||||
PORTNAME= star | PORTNAME= star | ||||
PORTVERSION= 1.6 | |||||
PORTREVISION= 1 | |||||
CATEGORIES= archivers | CATEGORIES= archivers | ||||
MASTER_SITES= SF/s-tar | |||||
MAINTAINER= mm@FreeBSD.org | |||||
COMMENT= Unique standard tape archiver with many enhancements | COMMENT= Unique standard tape archiver with many enhancements | ||||
LICENSE= CDDL GPLv2 | OPTIONS_DEFINE+=DOCS TARTEST | ||||
LICENSE_COMB= multi | OPTIONS_SUB= yes | ||||
LICENSE_FILE= ${WRKSRC}/CDDL.Schily.txt | TARTEST_DESC= Install tartest and test scripts | ||||
BROKEN_riscv64= fails to configure in autoconf: checking whether the C compiler (riscv64-freebsd-clang) works... no | .include <bsd.port.options.mk> | ||||
USES= gmake gettext iconv tar:bzip2 | MASTERDIR= ${.CURDIR}/../../devel/schilybase | ||||
BINARY_WRAPPERS= gm4 | COMPONENTS= mt \ | ||||
rmt \ | |||||
star \ | |||||
star_sym \ | |||||
strar | |||||
MAKE_ARGS= GMAKE_NOWARN=true DESTDIR=${STAGEDIR} INS_BASE=${PREFIX} \ | .if ${PORT_OPTIONS:MTARTEST} | ||||
MANBASE= | COMPONENTS+= tartest | ||||
.endif | |||||
mat: This can be removed. | |||||
PORTDOCS= README README.crash README.mtio README.pattern STARvsGNUTAR \ | post-install-DOCS-off: | ||||
README.ACL README.largefiles README.otherbugs \ | ${RM} ${STAGEDIR}share/doc/star/README* | ||||
README.posix-2001 | ${RM} ${STAGEDIR}share/doc/star/STARvsGNUTAR | ||||
OPTIONS_DEFINE= DOCS | post-install-TARTEST-off: | ||||
${RM} ${STAGEDIR}share/doc/star/testscripts | |||||
Done Inline ActionsThat is being too clever. Never trade readability with optimization. Using this is probably better: TARTEST_VARS= COMPONENTS+=tartest mat: That is being too clever. Never trade readability with optimization.
Using this is probably… | |||||
post-patch: | .include "${MASTERDIR}/Makefile.master" | ||||
@${MV} ${WRKSRC}/rmt/rmt.1 ${WRKSRC}/rmt/srmt.1 | |||||
@${REINPLACE_CMD} -e "s@/etc/default@${PREFIX}/etc@g" \ | |||||
${WRKSRC}/Mcsw \ | |||||
${WRKSRC}/include/schily/deflts.h \ | |||||
${WRKSRC}/rmt/rmt.c \ | |||||
${WRKSRC}/rmt/rmt.dfl \ | |||||
${WRKSRC}/rmt/srmt.1 \ | |||||
${WRKSRC}/star/Makefile.dfl \ | |||||
${WRKSRC}/star/defaults.c \ | |||||
${WRKSRC}/star/star.1 \ | |||||
${WRKSRC}/star/star.c \ | |||||
${WRKSRC}/star/star.dfl \ | |||||
${WRKSRC}/star/suntar.c | |||||
pre-build: | |||||
@${WRKSRC}/conf/cc-config.sh cc cc ${WRKSRC}/incs/Dcc.${ARCH}-freebsd | |||||
@cd ${WRKSRC}/RULES && ${SH} ./MKLINKS | |||||
post-stage: | |||||
@${RM} ${STAGEDIR}/${PREFIX}/bin/mt \ | |||||
${STAGEDIR}/${PREFIX}/include/schily/*.h \ | |||||
${STAGEDIR}/${PREFIX}/include/schily/*/*.h \ | |||||
${STAGEDIR}/${PREFIX}/lib/*.a \ | |||||
${STAGEDIR}/${PREFIX}/lib/profiled/*.a \ | |||||
${STAGEDIR}/${PREFIX}/man/man1/match.1* \ | |||||
${STAGEDIR}/${PREFIX}/man/man1/mt.1* \ | |||||
${STAGEDIR}/${PREFIX}/man/man3/*.3* \ | |||||
${STAGEDIR}/${PREFIX}/man/man5/makerules.5* \ | |||||
${STAGEDIR}/${PREFIX}/man/man5/makefiles.5* | |||||
@${RMDIR} ${STAGEDIR}/${PREFIX}/include/schily/* \ | |||||
${STAGEDIR}/${PREFIX}/include/schily \ | |||||
${STAGEDIR}/${PREFIX}/lib/profiled | |||||
post-install-DOCS-on: | |||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | |||||
.for FILE in ${PORTDOCS} | |||||
(cd ${WRKSRC}/star && ${INSTALL_DATA} ${FILE} ${STAGEDIR}${DOCSDIR}/${FILE}) | |||||
.endfor | |||||
.include <bsd.port.mk> |
This can be removed.