1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/archivers/bzip2/Makefile
Adam Weinberger 44eaadcb75 Add OPTIONS_DEFINE=DOCS for ports with %%PORTDOCS%% in the plist.
Where possible, correct a few instances where PORTDOCS was being used
to flag stuff in EXAMPLESDIR. For some ports, mostly those owned by
ruby@, PORTDOCS is applied to pretty much everything whether it's
documentation or example.
2014-07-15 23:11:12 +00:00

48 lines
2.1 KiB
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= bzip2
PORTVERSION= 1.0.6
CATEGORIES= archivers
MASTER_SITES= http://www.bzip.org/${PORTVERSION}/
MAINTAINER= jharris@widomaker.com
COMMENT= Block-sorting file compressor
USE_LDCONFIG= yes
PATCH_STRIP= -p3
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bzip2 ${STAGEDIR}${PREFIX}/bin
${LN} -sf ${PREFIX}/bin/bzip2 ${STAGEDIR}${PREFIX}/bin/bunzip2
${LN} -sf ${PREFIX}/bin/bzip2 ${STAGEDIR}${PREFIX}/bin/bzcat
${LN} -sf ${PREFIX}/bin/bzip2 ${STAGEDIR}${PREFIX}/bin/bz2cat
${INSTALL_PROGRAM} ${WRKSRC}/bzip2recover ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bzgrep ${STAGEDIR}${PREFIX}/bin
${LN} -sf ${PREFIX}/bin/bzgrep ${STAGEDIR}${PREFIX}/bin/bzegrep
${LN} -sf ${PREFIX}/bin/bzgrep ${STAGEDIR}${PREFIX}/bin/bzfgrep
${INSTALL_SCRIPT} ${WRKSRC}/bzmore ${STAGEDIR}${PREFIX}/bin
${LN} -sf ${PREFIX}/bin/bzmore ${STAGEDIR}${PREFIX}/bin/bzless
${INSTALL_DATA} ${WRKSRC}/bzlib.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libbz2.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/libbz2.so.1 ${STAGEDIR}${PREFIX}/lib
${LN} -sf ${PREFIX}/lib/libbz2.so.1 ${STAGEDIR}${PREFIX}/lib/libbz2.so
${INSTALL_MAN} ${WRKSRC}/bzip2.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/bzgrep.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/bzmore.1 ${STAGEDIR}${PREFIX}/man/man1
${LN} -sf bzip2.1 ${STAGEDIR}${PREFIX}/man/man1/bunzip2.1
${LN} -sf bzip2.1 ${STAGEDIR}${PREFIX}/man/man1/bzcat.1
${LN} -sf bzip2.1 ${STAGEDIR}${PREFIX}/man/man1/bz2cat.1
${LN} -sf bzip2.1 ${STAGEDIR}${PREFIX}/man/man1/bzip2recover.1
${LN} -sf bzgrep.1 ${STAGEDIR}${PREFIX}/man/man1/bzegrep.1
${LN} -sf bzgrep.1 ${STAGEDIR}${PREFIX}/man/man1/bzfgrep.1
${LN} -sf bzmore.1 ${STAGEDIR}${PREFIX}/man/man1/bzless.1
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/bzip2
${INSTALL_DATA} ${WRKSRC}/manual* ${STAGEDIR}${PREFIX}/share/doc/bzip2
${INSTALL_DATA} ${WRKSRC}/bzip2.txt ${STAGEDIR}${PREFIX}/share/doc/bzip2
${STAGEDIR}${PREFIX}/bin/bzip2 -f ${STAGEDIR}${PREFIX}/share/doc/bzip2/manual.ps
.include <bsd.port.mk>