summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authorgrant <grant>2003-06-05 16:01:41 +0000
committergrant <grant>2003-06-05 16:01:41 +0000
commit4077473543b7e6fc0116c82ae5656718aabfe306 (patch)
tree429be41842c115838ca7707312e6e5f60c4c559c /lang/gcc3
parenta0571dddbe69cb3eab3b55892cf773dba074abfa (diff)
downloadpkgsrc-4077473543b7e6fc0116c82ae5656718aabfe306.tar.gz
remove some empty directories in post-install, so we do not create a
broken binary pkg.
Diffstat (limited to 'lang/gcc3')
-rw-r--r--lang/gcc3/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile
index 9afd15df421..fe637805819 100644
--- a/lang/gcc3/Makefile
+++ b/lang/gcc3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2003/06/02 01:19:03 jschauma Exp $
+# $NetBSD: Makefile,v 1.19 2003/06/05 16:01:41 grant Exp $
#
DISTNAME= gcc-3.3
@@ -49,8 +49,9 @@ ALL_TARGET= bootstrap
.endif
# as this is named gcc3, use DISTNAME instead.
-GCC_PREFIX= ${PREFIX}/${DISTNAME}
-PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+GCC_PREFIX= ${PREFIX}/${DISTNAME}
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+GCC_ARCHDIR= ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}
pre-configure:
${MKDIR} ${BUILD_DIRS}
@@ -60,6 +61,9 @@ post-build:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk
post-install:
+.if ${OPSYS} == "SunOS"
+ -cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
+.endif
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcc
${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${PREFIX}/share/examples/gcc/mk.conf
${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc