pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2af118dc65a8
branches:  trunk
changeset: 577331:2af118dc65a8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jul 08 17:00:06 2010 +0000

description:
DESTDIR support

diffstat:

 sysutils/munin-doc/Makefile |   6 ++++--
 www/ap22-dnssd/Makefile     |  12 +++++++++---
 2 files changed, 13 insertions(+), 5 deletions(-)

diffs (61 lines):

diff -r fb4ec068becb -r 2af118dc65a8 sysutils/munin-doc/Makefile
--- a/sysutils/munin-doc/Makefile       Thu Jul 08 16:05:34 2010 +0000
+++ b/sysutils/munin-doc/Makefile       Thu Jul 08 17:00:06 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2010/02/11 12:38:45 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2010/07/08 17:05:40 joerg Exp $
 #
 
 VERS=          1.3.2
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://munin.sourceforge.net/
 COMMENT=       System monitoring tool, documentation
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 BUILD_DEPENDS+=        htmldoc>=0:../../www/htmldoc
 BUILD_DEPENDS+= html2text>=0:../../textproc/html2text
 
@@ -26,7 +28,7 @@
 BUILD_TARGET=  build-doc build-man
 
 MAKE_ENV+=     PERL5=${PERL5:Q}
-MAKE_FLAGS+=   MANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+=   MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
 CHECK_PORTABILITY_SKIP+=       node/node.d/*
 
 PYTHON_FOR_BUILD_ONLY= # empty
diff -r fb4ec068becb -r 2af118dc65a8 www/ap22-dnssd/Makefile
--- a/www/ap22-dnssd/Makefile   Thu Jul 08 16:05:34 2010 +0000
+++ b/www/ap22-dnssd/Makefile   Thu Jul 08 17:00:06 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2010/07/02 20:55:43 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2010/07/08 17:00:06 joerg Exp $
 #
 
 DISTNAME=      mod_dnssd-0.5
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://0pointer.de/lennart/projects/mod_dnssd/
 COMMENT=       Apache module which adds Zeroconf support via DNS-SD using Avahi
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= yes
 USE_TOOLS=     pkg-config gmake
 USE_LIBTOOL=   yes
@@ -21,9 +23,13 @@
 PKG_APACHE_ACCEPTED=   apache22
 APACHE_MODULE_NAME=    mod_dnssd
 
+INSTALLATION_DIRS+=    lib/httpd
+
 do-install:
-       cd ${WRKSRC}/src && ${APXS} -i -n ${APACHE_MODULE_NAME} \
-           ${APACHE_MODULE_NAME}.la
+       cd ${WRKSRC}/src &&                                             \
+           libexecdir=`${APXS} -q LIBEXECDIR` &&                       \
+           ${APXS} -i -S LIBEXECDIR=${DESTDIR}"$${libexecdir}"         \
+             -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_NAME}.la
 
 .include "../../net/avahi/buildlink3.mk"
 .include "../../mk/apache.mk"



Home | Main Index | Thread Index | Old Index