summaryrefslogtreecommitdiffstats
path: root/lang/gcc28/Makefile
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-03-05 03:29:59 +0000
committerobrien <obrien@FreeBSD.org>1998-03-05 03:29:59 +0000
commit69fcdb90a2817a1fcb2ffcf57266b0cb698287d0 (patch)
treed6a275b8267ceb6cd3e7ef103a4666fd990a0a65 /lang/gcc28/Makefile
parent3661aa8a9837d2164787e6548463112c6d5f3d1a (diff)
downloadFreeBSD-ports-69fcdb90a2817a1fcb2ffcf57266b0cb698287d0.zip
FreeBSD-ports-69fcdb90a2817a1fcb2ffcf57266b0cb698287d0.tar.gz
Latest install hacks for GCC 2.8.
The changes were done to closely match the upcoming libstdc++ port I will commit shortly.
Diffstat (limited to 'lang/gcc28/Makefile')
-rw-r--r--lang/gcc28/Makefile31
1 files changed, 21 insertions, 10 deletions
diff --git a/lang/gcc28/Makefile b/lang/gcc28/Makefile
index 4f925af..4c9d068 100644
--- a/lang/gcc28/Makefile
+++ b/lang/gcc28/Makefile
@@ -4,7 +4,7 @@
# Date created: 17 Jan 1998
# Whom: David O'Brien <obrien@NUXI.com>
#
-# $Id: Makefile,v 1.1.1.1 1998/01/16 10:15:13 obrien Exp $
+# $Id: Makefile,v 1.2 1998/03/04 09:19:21 obrien Exp $
#
DISTNAME= gcc-2.8.0
@@ -13,27 +13,38 @@ MASTER_SITES= ${MASTER_SITE_GNU}
MAINTAINER= obrien@FreeBSD.org
+GNUOSREL!= uname -r | sed -e 's/[-(].*//'
+
+PLIST= ${WRKDIR}/PLIST.fixedup
+GNUHOST= i386-unknown-freebsd${GNUOSREL}
+CONFIGURE_ARGS= --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/include/g++
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_ARGS= i386-unknown-freebsd
ALL_TARGET= bootstrap
MAN1= cccp28.1 g++28.1 gcc28.1
+pre-fetch:
+ @${ECHO} "GCC 2.8 for ${OSNAME} ${GNUOSREL}"
+
+pre-install:
+ @${SED} -e 's:%GNUOSREL%:${GNUOSREL}:' ${PKGDIR}/PLIST \
+ > ${PLIST
+
post-install:
@${RM} -f ${PREFIX}/bin/c++
(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/gcov \
${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize \
- ${PREFIX}/bin/i386-unknown-freebsd-gcc \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/2.8.0/cpp ; \
+ ${PREFIX}/bin/${GNUHOST}-gcc \
+ ${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cc1 \
+ ${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cc1obj \
+ ${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cc1plus \
+ ${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.0/cpp ; \
do strip $$prog ; \
done)
ln -f ${PREFIX}/bin/gcc ${PREFIX}/bin/gcc28
ln -f ${PREFIX}/bin/g++ ${PREFIX}/bin/g++28
- ${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/cccp28.1
- ${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++28.1
- ${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc28.1
+ @${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/cccp28.1
+ @${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++28.1
+ @${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc28.1
.include <bsd.port.mk>
OpenPOWER on IntegriCloud