1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/archivers/star/Makefile
Baptiste Daroussin 56a6c38e8d Drop build dependency on GNU m4.
m4 from base is able to do the job, if properly wrapped to mimic GNU m4

Differential Revision:	https://reviews.freebsd.org/D21835
2019-10-01 14:35:23 +00:00

70 lines
1.9 KiB
Makefile

# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$
PORTNAME= star
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= SF/s-tar
MAINTAINER= mm@FreeBSD.org
COMMENT= Unique standard tape archiver with many enhancements
LICENSE= CDDL GPLv2
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/CDDL.Schily.txt
USES= gmake gettext iconv tar:bzip2
BINARY_WRAPPERS= gm4
MAKE_ARGS= GMAKE_NOWARN=true DESTDIR=${STAGEDIR} INS_BASE=${PREFIX} \
MANBASE=
PORTDOCS= README README.crash README.mtio README.pattern STARvsGNUTAR \
README.ACL README.largefiles README.otherbugs \
README.posix-2001
OPTIONS_DEFINE= DOCS
post-patch:
@${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>