openbsd-ports/archivers/bzip2/Makefile

45 lines
1.5 KiB
Makefile
Raw Normal View History

1999-09-25 09:01:12 -04:00
# $OpenBSD: Makefile,v 1.13 1999/09/25 13:01:12 turan Exp $
1997-11-24 14:26:36 -05:00
1999-09-24 09:29:46 -04:00
DISTNAME= bzip2-0.9.5d
1997-11-24 14:26:36 -05:00
CATEGORIES= archivers
1999-09-25 09:01:12 -04:00
MASTER_SITES= ftp://sourceware.cygnus.com/pub/bzip2/v095/ \
1999-09-24 09:29:46 -04:00
http://www.bzip2.org/bzip2/v095/
1997-11-24 14:26:36 -05:00
MAINTAINER= angelos@openbsd.org
1999-08-10 23:28:11 -04:00
VER= 9.5
1999-05-08 21:40:06 -04:00
MAKE_ENV= VER=${VER}
# post-patch must be defined before bsd.port.mk is included so it will
# be called. However, we need to have the body of the target after
# bsd.port.mk is included so NO_SHARED_LIBS is defined.
# Define the target twice, using :
post-patch:
1997-11-24 14:26:36 -05:00
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bzip2 ${PREFIX}/bin
1999-08-10 23:28:11 -04:00
@${LN} -sf ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bunzip2
@${LN} -sf ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bzcat
1997-11-24 14:26:36 -05:00
${INSTALL_PROGRAM} ${WRKSRC}/bzip2recover ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/bzlib.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libbz2.a ${PREFIX}/lib
1999-05-08 21:40:06 -04:00
@if [ -f ${WRKSRC}/libbz2.so.${VER} ]; then \
1999-08-10 23:28:11 -04:00
${INSTALL_DATA} ${WRKSRC}/libbz2.so.${VER} ${PREFIX}/lib; \
1999-05-08 21:40:06 -04:00
fi
1997-11-24 14:26:36 -05:00
${INSTALL_MAN} ${WRKSRC}/bzip2.1 ${PREFIX}/man/man1
1999-08-10 23:28:11 -04:00
@${LN} -f ${PREFIX}/man/man1/bzip2.1 ${PREFIX}/man/man1/bunzip2.1
@${LN} -f ${PREFIX}/man/man1/bzip2.1 ${PREFIX}/man/man1/bzcat.1
@${LN} -f ${PREFIX}/man/man1/bzip2.1 ${PREFIX}/man/man1/bzip2recover.1
1999-05-08 21:40:06 -04:00
${LDCONFIG} -m ${PREFIX}/lib
1997-11-24 14:26:36 -05:00
.include <bsd.port.mk>
1999-05-08 21:40:06 -04:00
# The patches assumed shared libs would be build. If building
# on a host that does not support shared libs, e.g. the alpha,
# apply one more patch.
post-patch:
.if defined(NO_SHARED_LIBS)
@(cd ${DISTDIR}; ${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/patch)
.endif