diff options
author | joerg <joerg@pkgsrc.org> | 2008-01-29 11:37:35 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-01-29 11:37:35 +0000 |
commit | 91fcb9bd71be89f1ca7c8767987f137a88bbc4f5 (patch) | |
tree | 9c2f442dffca25993630d045a20910bbe0ae63f5 | |
parent | 78fe83daf481f07d2798cc160f4e7f2695b1f7bb (diff) | |
download | pkgsrc-91fcb9bd71be89f1ca7c8767987f137a88bbc4f5.tar.gz |
Add DESTDIR support.
-rw-r--r-- | devel/nspr/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile index 56b76979030..230750f9018 100644 --- a/devel/nspr/Makefile +++ b/devel/nspr/Makefile @@ -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 @@ MAINTAINER= mjl@luckie.org.nz 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_FILES.libpath= build/config/autoconf.mk 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 @@ pre-configure: 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 @@ do-install: ${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 |