From 91fcb9bd71be89f1ca7c8767987f137a88bbc4f5 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 29 Jan 2008 11:37:35 +0000 Subject: Add DESTDIR support. --- devel/nspr/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'devel/nspr') 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 -- cgit v1.2.3