freebsd-ports/archivers/bzip2/Makefile
Sunpoet Po-Chuan Hsieh eac307e4b8 - Update to 1.0.6
PR:		ports/151364
Security:	CVE-2010-0405
Submitted by:	Eugene Grosbein <eugen@eg.sd.rdtc.ru>
Approved by:	Jason Harris <jharris@widomaker.com> (maintainer), pgollucci (mentor, implicit)
2010-10-25 15:58:47 +00:00

56 lines
1.9 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: bzip2
# Date created: 19 Nov 1997
# Whom: 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= A block-sorting file compressor
USE_LDCONFIG= yes
PATCH_STRIP= -p3
MAN1= bzip2.1 bzgrep.1 bzmore.1
MLINKS= bzip2.1 bunzip2.1 bzip2.1 bzcat.1 bzip2.1 bz2cat.1 \
bzip2.1 bzip2recover.1 \
bzgrep.1 bzegrep.1 \
bzgrep.1 bzfgrep.1 \
bzmore.1 bzless.1
.ifdef USE_BZIP2
.error You have `USE_BZIP2' variable defined either in environment or in make(1) arguments. Please undefine and try again.
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bzip2 ${PREFIX}/bin
${LN} -sf ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bunzip2
${LN} -sf ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bzcat
${LN} -sf ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bz2cat
${INSTALL_PROGRAM} ${WRKSRC}/bzip2recover ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bzgrep ${PREFIX}/bin
${LN} -sf ${PREFIX}/bin/bzgrep ${PREFIX}/bin/bzegrep
${LN} -sf ${PREFIX}/bin/bzgrep ${PREFIX}/bin/bzfgrep
${INSTALL_SCRIPT} ${WRKSRC}/bzmore ${PREFIX}/bin
${LN} -sf ${PREFIX}/bin/bzmore ${PREFIX}/bin/bzless
${INSTALL_DATA} ${WRKSRC}/bzlib.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libbz2.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libbz2.so.1 ${PREFIX}/lib
${LN} -sf ${PREFIX}/lib/libbz2.so.1 ${PREFIX}/lib/libbz2.so
${INSTALL_MAN} ${WRKSRC}/bzip2.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/bzgrep.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/bzmore.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/bzip2
${INSTALL_DATA} ${WRKSRC}/manual* ${PREFIX}/share/doc/bzip2
${INSTALL_DATA} ${WRKSRC}/bzip2.txt ${PREFIX}/share/doc/bzip2
${PREFIX}/bin/bzip2 -f ${PREFIX}/share/doc/bzip2/manual.ps
.endif
.include <bsd.port.mk>