# $NetBSD: Makefile,v 1.37.4.1 2005/05/27 00:46:12 snj Exp $ # DISTNAME= bzip2-1.0.3 CATEGORIES= archivers MASTER_SITES= http://www.bzip.org/1.0.3/ MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.bzip.org/ COMMENT= Block-sorting file compressor PKG_INSTALLATION_TYPES= overwrite pkgviews USE_BUILDLINK3= yes USE_LIBTOOL= yes MAKE_ENV+= REALCC="${CC}" .include "../../mk/compiler.mk" CFLAGS+= ${CPPFLAGS} .if !empty(CC_VERSION:Mgcc*) CFLAGS+= -Wall -Winline -fomit-frame-pointer -fno-strength-reduce .endif INSTALLATION_DIRS= bin include lib man/man1 do-install: ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libbz2.la ${PREFIX}/lib ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bzip2 ${PREFIX}/bin ${LN} -f ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bunzip2 ${LN} -f ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bzcat ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bzip2recover ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/bzip2.1 ${PREFIX}/man/man1 ${RM} -f ${PREFIX}/man/man1/bunzip2.1 ${PREFIX}/man/man1/bzcat.1 ${PREFIX}/man/man1/bzip2recover.1 ${LN} -s ${PREFIX}/man/man1/bzip2.1 ${PREFIX}/man/man1/bunzip2.1 ${LN} -s ${PREFIX}/man/man1/bzip2.1 ${PREFIX}/man/man1/bzcat.1 ${LN} -s ${PREFIX}/man/man1/bzip2.1 ${PREFIX}/man/man1/bzip2recover.1 ${INSTALL_DATA} ${WRKSRC}/bzlib.h ${PREFIX}/include .include "../../mk/bsd.pkg.mk"