summaryrefslogtreecommitdiff
path: root/archivers/pbzip2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/pbzip2/Makefile')
-rw-r--r--archivers/pbzip2/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/archivers/pbzip2/Makefile b/archivers/pbzip2/Makefile
index a89b93c8be2..ec16f668bda 100644
--- a/archivers/pbzip2/Makefile
+++ b/archivers/pbzip2/Makefile
@@ -1,13 +1,14 @@
-# $NetBSD: Makefile,v 1.22 2009/01/12 15:25:12 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2011/09/16 15:39:29 fhajny Exp $
#
-DISTNAME= pbzip2-1.0.5
+DISTNAME= pbzip2-1.1.5
CATEGORIES= archivers
MASTER_SITES= http://compression.ca/pbzip2/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://compression.ca/pbzip2/
COMMENT= Parallel implementation of the bzip2 block-sorting file compressor
+#LICENSE= pbzip2-license
PKG_DESTDIR_SUPPORT= user-destdir
@@ -18,17 +19,24 @@ USE_LANGUAGES= c++
CPPFLAGS+= -D_LARGEFILE_SOURCE=1
CPPFLAGS+= -D_FILE_OFFSET_BITS=64
+CPPFLAGS+= -D_POSIX_PTHREAD_SEMANTICS
+CPPFLAGS+= -DUSE_STACKSIZE_CUSTOMIZATION
LIBS+= -lbz2
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/pbzip2
do-build:
cd ${WRKSRC} && \
- ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o pbzip2 pbzip2.cpp ${LIBS}
+ ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o pbzip2 pbzip2.cpp \
+ BZ2StreamScanner.cpp ${LIBS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pbzip2 \
${DESTDIR}${PREFIX}/bin
+ ${LN} -s ${DESTDIR}${PREFIX}/bin/pbzip2 \
+ ${DESTDIR}${PREFIX}/bin/pbunzip2
+ ${LN} -s ${DESTDIR}${PREFIX}/bin/pbzip2 \
+ ${DESTDIR}${PREFIX}/bin/pbzcat
${INSTALL_DATA} ${WRKSRC}/pbzip2.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/COPYING \