summaryrefslogtreecommitdiff
path: root/lang/gcc3-c
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-09-08 10:41:01 +0000
committeradrianp <adrianp@pkgsrc.org>2007-09-08 10:41:01 +0000
commit0528e6d39c19b2edfc05fbe68ad1efc53ba96267 (patch)
treebe75abdb902ce445a0e87040c489dbae3985238c /lang/gcc3-c
parent929af5c9c7af25b00854f586ddfcd6a503d88a31 (diff)
downloadpkgsrc-0528e6d39c19b2edfc05fbe68ad1efc53ba96267.tar.gz
The v7 and v9 directories on SunOS may not exist so only try and remove
them if they do exist.
Diffstat (limited to 'lang/gcc3-c')
-rw-r--r--lang/gcc3-c/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/gcc3-c/Makefile b/lang/gcc3-c/Makefile
index f89d8f121b2..f6713dfd132 100644
--- a/lang/gcc3-c/Makefile
+++ b/lang/gcc3-c/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/02/15 14:35:13 rillig Exp $
+# $NetBSD: Makefile,v 1.21 2007/09/08 10:41:01 adrianp Exp $
PKGNAME= gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION}
COMMENT= GNU Compiler Collection, v3 - C compiler
@@ -26,7 +26,13 @@ post-build:
post-install:
.if ${OPSYS} == "SunOS"
- cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
+ cd ${GCC_ARCHDIR}/include && ${RM} -f fixed
+.if exists(${GCC_ARCHDIR}/include/v7)
+ ${RMDIR} ${GCC_ARCHDIR}/include/v7
+.endif
+.if exists(${GCC_ARCHDIR}/include/v9)
+ ${RMDIR} ${GCC_ARCHDIR}/include/v9
+.endif
.endif
${INSTALL_DATA_DIR} ${GCC_PREFIX}/mk
${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/c.mk