pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/nspr Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c4cc99807cb3
branches:  trunk
changeset: 538121:c4cc99807cb3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jan 29 11:37:35 2008 +0000

description:
Add DESTDIR support.

diffstat:

 devel/nspr/Makefile |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (53 lines):

diff -r bd4783f26aaf -r c4cc99807cb3 devel/nspr/Makefile
--- a/devel/nspr/Makefile       Tue Jan 29 11:28:45 2008 +0000
+++ b/devel/nspr/Makefile       Tue Jan 29 11:37:35 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2007/12/22 07:22:08 obache Exp $
+# $NetBSD: Makefile,v 1.25 2008/01/29 11:37:35 joerg Exp $
 
 DISTNAME=              nspr-4.6.7
 PKGREVISION=           1
@@ -9,6 +9,8 @@
 HOMEPAGE=              http://www.mozilla.org/projects/nspr/index.html
 COMMENT=               Platform-neutral API for system level and libc like functions
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                        ${WRKDIR}/${DISTNAME}/mozilla/nsprpub
 CONFIGURE_DIRS=                build
 
@@ -63,6 +65,8 @@
 SUBST_SED.libpath=     -e 's,@executable_path/$$@,${PREFIX}/lib/nspr/$$(notdir $$@),'
 .endif
 
+INSTALLATION_DIRS=     bin include/nspr lib/nspr lib/pkgconfig
+
 post-extract:
        ${CHMOD} -R g-w ${WRKSRC}
        ${CHMOD} -x ${WRKSRC}/pr/include/prvrsion.h
@@ -71,12 +75,10 @@
        cd ${WRKSRC} && autoconf
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/include/nspr
-       ${INSTALL_DATA_DIR} ${PREFIX}/lib/nspr
-       (cd ${WRKSRC}/build/dist/include && ${PAX} -Lrwpe . ${PREFIX}/include/ )
-       (cd ${WRKSRC}/build/dist/lib && ${PAX} -Lrwpe . ${PREFIX}/lib/nspr/ )
-       ${INSTALL_SCRIPT} ${WRKSRC}/build/config/nspr-config ${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
+       (cd ${WRKSRC}/build/dist/include && ${PAX} -Lrwpe . ${DESTDIR}${PREFIX}/include/ )
+       (cd ${WRKSRC}/build/dist/lib && ${PAX} -Lrwpe . ${DESTDIR}${PREFIX}/lib/nspr/ )
+       ${INSTALL_SCRIPT} ${WRKSRC}/build/config/nspr-config ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/pkgconfig
        set -e; \
        { ${ECHO} "Name: NSPR"; \
          ${ECHO} "Description: The Netscape Portable Runtime"; \
@@ -85,7 +87,7 @@
          ${ECHO} "Libs: -L${PREFIX}/lib/nspr" \
              "${COMPILER_RPATH_FLAG}${PREFIX}/lib/nspr" \
              "-lplds4 -lplc4 -lnspr4 "${BUILDLINK_LIBS.pthread:Q}; \
-       } >${PREFIX}/lib/pkgconfig/nspr.pc
+       } >${DESTDIR}${PREFIX}/lib/pkgconfig/nspr.pc
 
 .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
 CONFIGURE_ARGS+=       --without-pthreads



Home | Main Index | Thread Index | Old Index