pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/mDNSResponder Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3ca0c923ebe6
branches:  trunk
changeset: 536721:3ca0c923ebe6
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Dec 21 11:59:39 2007 +0000

description:
Add DESTDIR support.

diffstat:

 net/mDNSResponder/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r cadcb37d4b06 -r 3ca0c923ebe6 net/mDNSResponder/Makefile
--- a/net/mDNSResponder/Makefile        Fri Dec 21 11:49:38 2007 +0000
+++ b/net/mDNSResponder/Makefile        Fri Dec 21 11:59:39 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2007/09/07 22:12:18 jlam Exp $
+# $NetBSD: Makefile,v 1.24 2007/12/21 11:59:39 obache Exp $
 
 DISTNAME=      mDNSResponder-108
 PKGREVISION=   1
@@ -13,6 +13,8 @@
 BUILD_DIRS=    mDNSPosix
 BUILDDIR=      ${WRKSRC}/mDNSPosix/build/prod
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 .include "../../mk/bsd.prefs.mk"
 
 SO_SUFFIX=     so
@@ -69,13 +71,13 @@
 
 do-install:
        for i in ${BINARY}; do \
-               ${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${PREFIX}/bin; \
+               ${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${DESTDIR}${PREFIX}/bin; \
        done
        for i in ${SBINARY}; do \
-               ${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${PREFIX}/sbin; \
+               ${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${DESTDIR}${PREFIX}/sbin; \
        done
-       ${INSTALL_DATA} ${WRKSRC}/mDNSShared/dns_sd.h ${PREFIX}/include
-       ${INSTALL_LIB} ${BUILDDIR}/libdns_sd.${SO_SUFFIX} ${PREFIX}/lib
+       ${INSTALL_DATA} ${WRKSRC}/mDNSShared/dns_sd.h ${DESTDIR}${PREFIX}/include
+       ${INSTALL_LIB} ${BUILDDIR}/libdns_sd.${SO_SUFFIX} ${DESTDIR}${PREFIX}/lib
 
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index