pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc3-c Added support for installation to DESTDIR.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b50b8bfd1d64
branches: trunk
changeset: 534186:b50b8bfd1d64
user: heinz <heinz%pkgsrc.org@localhost>
date: Sat Oct 13 15:06:29 2007 +0000
description:
Added support for installation to DESTDIR.
diffstat:
lang/gcc3-c/Makefile | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diffs (51 lines):
diff -r 07a0dae8792d -r b50b8bfd1d64 lang/gcc3-c/Makefile
--- a/lang/gcc3-c/Makefile Sat Oct 13 14:20:09 2007 +0000
+++ b/lang/gcc3-c/Makefile Sat Oct 13 15:06:29 2007 +0000
@@ -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-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"
Home |
Main Index |
Thread Index |
Old Index