pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be3818e10c38
branches:  trunk
changeset: 521552:be3818e10c38
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Nov 14 13:50:13 2006 +0000

description:
DESTDIR support.

diffstat:

 archivers/libarchive/Makefile |   4 +++-
 archivers/unrar/Makefile      |  10 +++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 51b918711205 -r be3818e10c38 archivers/libarchive/Makefile
--- a/archivers/libarchive/Makefile     Tue Nov 14 13:40:24 2006 +0000
+++ b/archivers/libarchive/Makefile     Tue Nov 14 13:50:13 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/11/10 00:29:44 adrianp Exp $
+# $NetBSD: Makefile,v 1.16 2006/11/14 13:50:13 joerg Exp $
 #
 
 DISTNAME=      libarchive-1.3.1
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://people.freebsd.org/~kientzle/libarchive/src/
 COMMENT=       Library to read/create different archive formats
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= yes
 USE_LIBTOOL=   yes
 
diff -r 51b918711205 -r be3818e10c38 archivers/unrar/Makefile
--- a/archivers/unrar/Makefile  Tue Nov 14 13:40:24 2006 +0000
+++ b/archivers/unrar/Makefile  Tue Nov 14 13:50:13 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2006/09/09 02:41:54 obache Exp $
+# $NetBSD: Makefile,v 1.50 2006/11/14 13:50:13 joerg Exp $
 
 DISTNAME=      unrarsrc-3.6.8
 PKGNAME=       ${DISTNAME:S/src//}
@@ -11,6 +11,7 @@
 COMMENT=       Extract, view & test RAR archives
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 NO_CONFIGURE=  YES
 USE_LANGUAGES= c++
@@ -24,13 +25,12 @@
 
 WRKSRC=                ${WRKDIR}/unrar
 
-INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS=     bin share/doc/unrar
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX:Q}/share/doc/unrar
-       cd ${WRKSRC} && ${INSTALL_PROGRAM} unrar ${PREFIX:Q}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/unrar ${DESTDIR}${PREFIX}/bin
        cd ${WRKSRC} && ${INSTALL_DATA} readme.txt license.txt  \
-               ${PREFIX:Q}/share/doc/unrar
+               ${DESTDIR}${PREFIX}/share/doc/unrar
 
 .include "../../mk/bsd.prefs.mk"
 



Home | Main Index | Thread Index | Old Index