pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0a507de5db35
branches:  trunk
changeset: 570899:0a507de5db35
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 04 17:19:34 2010 +0000

description:
DESTDIR support

diffstat:

 misc/linux-words/Makefile |  12 +++++++-----
 misc/logsurfer/Makefile   |   9 ++++++---
 misc/team/Makefile        |  11 ++++-------
 misc/udfclient/Makefile   |   8 +++++++-
 4 files changed, 24 insertions(+), 16 deletions(-)

diffs (117 lines):

diff -r 59ef332cde8f -r 0a507de5db35 misc/linux-words/Makefile
--- a/misc/linux-words/Makefile Thu Feb 04 17:09:09 2010 +0000
+++ b/misc/linux-words/Makefile Thu Feb 04 17:19:34 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2008/03/08 13:50:57 reed Exp $
+# $NetBSD: Makefile,v 1.3 2010/02/04 17:26:25 joerg Exp $
 
 DISTNAME=              linux.words.2
 PKGNAME=               linux-words-2
@@ -9,6 +9,8 @@
 #HOMEPAGE=
 COMMENT=               English word list
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 # For other word packages also consider other word lists like
 #  aspell's en list like ftp://ftp.gnu.org/gnu/aspell/aspell-en-0.51-0.tar.bz2
 #  SCOWL from http://wordlist.sourceforge.net/
@@ -22,11 +24,11 @@
 INSTALLATION_DIRS=     share/dict share/doc/linux-words
 
 do-install:
-       ${INSTALL_DATA} ${WRKSRC}/linux.words ${PREFIX}/share/dict/
-       ${LN} -s linux.words ${PREFIX}/share/dict/words
+       ${INSTALL_DATA} ${WRKSRC}/linux.words ${DESTDIR}${PREFIX}/share/dict/
+       ${LN} -s linux.words ${DESTDIR}${PREFIX}/share/dict/words
        ${INSTALL_DATA} ${WRKSRC}/README.linux.words \
-               ${PREFIX}/share/doc/linux-words/
+           ${DESTDIR}${PREFIX}/share/doc/linux-words/
        ${INSTALL_DATA} ${WRKSRC}/README2.linux.words \
-               ${PREFIX}/share/doc/linux-words/
+           ${DESTDIR}${PREFIX}/share/doc/linux-words/
 
 .include "../../mk/bsd.pkg.mk"
diff -r 59ef332cde8f -r 0a507de5db35 misc/logsurfer/Makefile
--- a/misc/logsurfer/Makefile   Thu Feb 04 17:09:09 2010 +0000
+++ b/misc/logsurfer/Makefile   Thu Feb 04 17:19:34 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2009/01/18 11:01:56 shattered Exp $
+# $NetBSD: Makefile,v 1.20 2010/02/04 17:25:25 joerg Exp $
 
 DISTNAME=      logsurfer+-1.7
 PKGNAME=       logsurfer-1.7
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://www.crypt.gen.nz/logsurfer/
 COMMENT=       Processes logfiles and performs certain actions
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= YES
 CONFIGURE_ARGS+=       --with-etcdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
@@ -19,9 +21,10 @@
 EGDIR=         ${PREFIX}/share/examples/logsurfer
 
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man4 ${EGDIR}
+INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX} \
+                       mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
 
 post-install:
-       mkdir ${EGDIR}
-       ${INSTALL_SCRIPT} ${WRKSRC}/contrib/start-mail/start-mail ${EGDIR}/start-mail
+       ${INSTALL_SCRIPT} ${WRKSRC}/contrib/start-mail/start-mail ${DESTDIR}${EGDIR}/start-mail
 
 .include "../../mk/bsd.pkg.mk"
diff -r 59ef332cde8f -r 0a507de5db35 misc/team/Makefile
--- a/misc/team/Makefile        Thu Feb 04 17:09:09 2010 +0000
+++ b/misc/team/Makefile        Thu Feb 04 17:19:34 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2009/06/29 16:13:30 joerg Exp $
+# $NetBSD: Makefile,v 1.24 2010/02/04 17:21:54 joerg Exp $
 
 DISTNAME=      team-3.1
 CATEGORIES=    misc
@@ -7,14 +7,11 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 COMMENT=       Portable multi-buffered tape streaming utility
 
-NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
-
-INSTALLATION_DIRS=     ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
+PKG_DESTDIR_SUPPORT=   user-destdir
 
-MAKE_ENV+=     BINOWN=${BINOWN} BINGRP=${BINGRP} BINMODE=${BINMODE}
-MAKE_ENV+=     MANOWN=${MANOWN} MANGRP=${MANGRP} MANMODE=${MANMODE}
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
 
-MANCOMPRESSED_IF_MANZ= yes
+USE_BSD_MAKEFILE=      yes
 
 PLIST_SRC=     ${WRKDIR}/PLIST
 
diff -r 59ef332cde8f -r 0a507de5db35 misc/udfclient/Makefile
--- a/misc/udfclient/Makefile   Thu Feb 04 17:09:09 2010 +0000
+++ b/misc/udfclient/Makefile   Thu Feb 04 17:19:34 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2008/12/26 19:26:44 reinoud Exp $
+# $NetBSD: Makefile,v 1.40 2010/02/04 17:19:34 joerg Exp $
 #
 
 DISTNAME=              UDFclient.0.7.1
@@ -12,9 +12,15 @@
 HOMEPAGE=              http://www.13thmonkey.org/udfclient/
 COMMENT=               UDF file system reader/writer for CD/CD-RW/DVD*RW/DVD-RAM and images
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         yes
 
 PTHREAD_OPTS+=         require
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX} \
+                       mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index