blob: 0c2b897379745c348b196a42057b1ddb983a03d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: Makefile,v 1.42 2006/03/04 21:28:52 jlam Exp $
#
DISTNAME= bzip2-1.0.3
CATEGORIES= archivers
MASTER_SITES= http://www.bzip.org/1.0.3/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.bzip.org/
COMMENT= Block-sorting file compressor
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LIBTOOL= yes
MAKE_ENV+= REALCC=${CC:Q}
.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 ${PKGMANDIR}/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}/${PKGMANDIR}/man1
${RM} -f ${PREFIX}/${PKGMANDIR}/man1/bunzip2.1 ${PREFIX}/${PKGMANDIR}/man1/bzcat.1 ${PREFIX}/${PKGMANDIR}/man1/bzip2recover.1
${LN} -s ${PREFIX}/${PKGMANDIR}/man1/bzip2.1 ${PREFIX}/${PKGMANDIR}/man1/bunzip2.1
${LN} -s ${PREFIX}/${PKGMANDIR}/man1/bzip2.1 ${PREFIX}/${PKGMANDIR}/man1/bzcat.1
${LN} -s ${PREFIX}/${PKGMANDIR}/man1/bzip2.1 ${PREFIX}/${PKGMANDIR}/man1/bzip2recover.1
${INSTALL_DATA} ${WRKSRC}/bzlib.h ${PREFIX}/include
.include "../../mk/bsd.pkg.mk"
|