diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-02 03:48:36 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-02 03:48:36 +0000 |
commit | 6a0bbfc67659e8fd303162cd3c8e2f27b4be528b (patch) | |
tree | 14eb87fa09bb9b6f1b081eea0499821310cc436b /archivers/pbzip2 | |
parent | abd93136031ca3b8ecf3b96e0d1a078f10ccd7d5 (diff) | |
download | pkgsrc-6a0bbfc67659e8fd303162cd3c8e2f27b4be528b.tar.gz |
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'archivers/pbzip2')
-rw-r--r-- | archivers/pbzip2/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/archivers/pbzip2/Makefile b/archivers/pbzip2/Makefile index 14ad1e8a8d2..d1775513113 100644 --- a/archivers/pbzip2/Makefile +++ b/archivers/pbzip2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2007/07/29 01:52:19 rillig Exp $ +# $NetBSD: Makefile,v 1.19 2008/03/02 03:48:36 jlam Exp $ # DISTNAME= pbzip2-1.0.2 @@ -10,6 +10,8 @@ MAINTAINER= rillig@NetBSD.org HOMEPAGE= http://compression.ca/pbzip2/ COMMENT= Parallel implementation of the bzip2 block-sorting file compressor +PKG_DESTDIR_SUPPORT= user-destdir + PTHREAD_AUTO_VARS= yes PTHREAD_OPTS+= require @@ -26,10 +28,14 @@ do-build: ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o pbzip2 pbzip2.cpp ${LIBS} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/pbzip2 ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/pbzip2.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/pbzip2 - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/pbzip2 + ${INSTALL_PROGRAM} ${WRKSRC}/pbzip2 \ + ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/pbzip2.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA} ${WRKSRC}/COPYING \ + ${DESTDIR}${PREFIX}/share/doc/pbzip2 + ${INSTALL_DATA} ${WRKSRC}/README \ + ${DESTDIR}${PREFIX}/share/doc/pbzip2 .include "../../archivers/bzip2/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" |