diff options
author | heinz <heinz> | 2007-10-13 15:06:29 +0000 |
---|---|---|
committer | heinz <heinz> | 2007-10-13 15:06:29 +0000 |
commit | 9602bfd700921a762cbec7343c9828a6eccd16bb (patch) | |
tree | 3757cf18379a89133e3d41ef3e90e8067f74b93d /lang/gcc3-c | |
parent | 3bf7efc094cd9d2ab8c59875fe23dc284dcbe655 (diff) | |
download | pkgsrc-9602bfd700921a762cbec7343c9828a6eccd16bb.tar.gz |
Added support for installation to DESTDIR.
Diffstat (limited to 'lang/gcc3-c')
-rw-r--r-- | lang/gcc3-c/Makefile | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/lang/gcc3-c/Makefile b/lang/gcc3-c/Makefile index f6713dfd132..2016e2894d3 100644 --- a/lang/gcc3-c/Makefile +++ b/lang/gcc3-c/Makefile @@ -1,8 +1,10 @@ -# $NetBSD: Makefile,v 1.21 2007/09/08 10:41:01 adrianp Exp $ +# $NetBSD: Makefile,v 1.22 2007/10/13 15:06:29 heinz Exp $ PKGNAME= gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION} COMMENT= GNU Compiler Collection, v3 - C compiler +PKG_DESTDIR_SUPPORT= user-destdir + INFO_FILES= yes .include "../../lang/gcc3/Makefile.common" @@ -26,23 +28,23 @@ post-build: post-install: .if ${OPSYS} == "SunOS" - cd ${GCC_ARCHDIR}/include && ${RM} -f fixed -.if exists(${GCC_ARCHDIR}/include/v7) - ${RMDIR} ${GCC_ARCHDIR}/include/v7 + cd ${DESTDIR:Q}${GCC_ARCHDIR}/include && ${RM} -f fixed +.if exists(${DESTDIR}${GCC_ARCHDIR}/include/v7) + ${RMDIR} ${DESTDIR:Q}${GCC_ARCHDIR}/include/v7 .endif -.if exists(${GCC_ARCHDIR}/include/v9) - ${RMDIR} ${GCC_ARCHDIR}/include/v9 +.if exists(${DESTDIR}${GCC_ARCHDIR}/include/v9) + ${RMDIR} ${DESTDIR:Q}${GCC_ARCHDIR}/include/v9 .endif .endif - ${INSTALL_DATA_DIR} ${GCC_PREFIX}/mk - ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/c.mk - ${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc + ${INSTALL_DATA_DIR} ${DESTDIR:Q}${GCC_PREFIX}/mk + ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${DESTDIR:Q}${GCC_PREFIX}/mk/c.mk + ${LN} -f ${DESTDIR:Q}${GCC_PREFIX}/bin/gcc ${DESTDIR:Q}${GCC_PREFIX}/bin/cc ${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC} - ${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print \ - | ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \ + ${FIND} ${DESTDIR:Q}${GCC_PREFIX} \( -type f -o -type l \) -print \ + | ${SORT} | ${SED} -e "s,${DESTDIR}${PREFIX}/,,g" \ >> ${PLIST_SRC} - ${FIND} ${GCC_PREFIX} -type d -print \ - | ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \ + ${FIND} ${DESTDIR:Q}${GCC_PREFIX} -type d -print \ + | ${SORT} -r | ${SED} -e "s,${DESTDIR}${PREFIX}/,@dirrm ,g" \ >> ${PLIST_SRC} .include "../../mk/bsd.pkg.mk" |