aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc45
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-08-15 16:54:42 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-08-15 16:54:42 +0000
commit20e050b64d944a2e7aeb8fcb1e382e4aa4220865 (patch)
tree00bc88257647fd50381a6bd963a6631ca8d68c04 /lang/gcc45
parent6bf8422cee8bf5da0d5e96378358e51786e1f23d (diff)
downloadports-20e050b64d944a2e7aeb8fcb1e382e4aa4220865.tar.gz
ports-20e050b64d944a2e7aeb8fcb1e382e4aa4220865.zip
Notes
Diffstat (limited to 'lang/gcc45')
-rw-r--r--lang/gcc45/Makefile44
1 files changed, 17 insertions, 27 deletions
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index 66f8ab6cc2d5..d553ea2af170 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/Makefile
@@ -12,12 +12,9 @@ SNAPVER= ${SNAPDATE:S/-//g}
PORTNAME= gcc-devel
PORTVERSION= ${SNAPVER}
CATEGORIES= lang java
-MASTER_SITES= ftp://ftp.freesoftware.com/pub/sourceware/gcc/snapshots/${SNAPDATE}/ \
- ftp://egcs.cygnus.com/pub/egcs/snapshots/${SNAPDATE}/ \
- ftp://ftp.ninemoons.com/pub/mirrors/egcs/snapshots/${SNAPDATE}/ \
- ftp://ftp.iij.ad.jp/pub/egcs/snapshots/${SNAPDATE}/ \
- ftp://ftp.yggdrasil.com/mirrors/site/egcs.cygnus.com/pub/egcs/snapshots/${SNAPDATE}/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/
+MASTER_SITES= ftp://egcs.cygnus.com/pub/egcs/snapshots/${SNAPDATE}/ \
+ ${MASTER_SITE_SOURCEWARE}
+MASTER_SITE_SUBDIR= gcc/snapshots/${SNAPDATE}
DISTFILES= gcc-core-${SNAPVER}${EXTRACT_SUFX} \
gcc-g++-${SNAPVER}${EXTRACT_SUFX} \
gcc-g77-${SNAPVER}${EXTRACT_SUFX} \
@@ -42,11 +39,6 @@ CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
.endif
-##WRKSRC= ${WRKDIR}/gcc-${SNAPVER}
-##CONFIGURE_WRKSRC= ${WRKDIR}/build
-##BUILD_WRKSRC= ${WRKDIR}/build
-##INSTALL_WRKSRC= ${WRKDIR}/build
-##CONFIGURE_SCRIPT= ${WRKSRC}/configure
EGCS_REV= 3.0
SRCDIR= ${WRKDIR}/gcc-${SNAPVER}
WRKSRC= ${WRKDIR}/build
@@ -72,18 +64,18 @@ CONFIGURE_ARGS+= --enable-threads=posix
ALL_TARGET= bootstrap
MAN1= gcpp.1 gg++.1 gg77.1 ggcc.1 ggcov.1
+pre-fetch:
+ @${ECHO} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT} target ${ARCH}-portbld-freebsd${OSREL}"
+
pre-configure:
@(MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
${PERL} -pi.orig -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" \
${SRCDIR}/gcc/config/freebsd.h )
@# Keep from running `autoconf' and `autoheader' since we modified
@# configure.in by patching it.
- ##@touch ${WRKSRC}/gcc/configure
- ##@touch ${WRKSRC}/gcc/cstamp-h.in
@touch ${SRCDIR}/gcc/configure
@touch ${SRCDIR}/gcc/cstamp-h.in
@${MKDIR} ${CONFIGURE_WRKSRC}
- #${RM} -rf ${SRCDIR}/libjava
pre-build:
cd ${SRCDIR} ; contrib/gcc_update --touch
@@ -92,7 +84,7 @@ pre-install:
${MKDIR} ${PREFIX}/info
post-install:
- @${RM} -f ${PREFIX}/bin/c++
+ @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
@${MV} -f ${PREFIX}/bin/c++filt ${PREFIX}/bin/g++filt
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ \
${PREFIX}/bin/g++filt ${PREFIX}/bin/g77 ${PREFIX}/bin/gcov \
@@ -106,24 +98,22 @@ post-install:
do \
strip $$prog ; \
done )
- ${MV} -f ${PREFIX}/bin/gcc ${PREFIX}/bin/ggcc
- ${MV} -f ${PREFIX}/bin/g++ ${PREFIX}/bin/gg++
- ${MV} -f ${PREFIX}/bin/g77 ${PREFIX}/bin/gg77
- ${MV} -f ${PREFIX}/bin/g++filt ${PREFIX}/bin/gg++filt
- ${MV} -f ${PREFIX}/bin/gcov ${PREFIX}/bin/ggcov
+.for file in gcc g++ cpp g++filt gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++
+ ${MV} -f ${PREFIX}/bin/${file} ${PREFIX}/bin/g${file}
+ -( test -e ${PREFIX}/man/man1/${file}.1 \
+ && ${MV} -f ${PREFIX}/man/man1/${file}.1 \
+ ${PREFIX}/man/man1/g${file}.1 )
+.endfor
+.for file in g77
+ ${MV} -f ${PREFIX}/bin/${file} ${PREFIX}/bin/g${file}
+ ${MV} -f ${PREFIX}/man/man1/${file}.1 ${PREFIX}/man/man1/g${file}.1
+.endfor
${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug-${SNAPVER}
- ${RM} -f ${PREFIX}/bin/${GNU_HOST}-c++
- ${RM} -f ${PREFIX}/bin/cpp
# These 3 libraries are moved from PREFIX/lib to avoid conflicts
# with the stock compiler.
${MV} -f ${PREFIX}/lib/libiberty.a ${TARGLIB}
${MV} -f ${PREFIX}/lib/libstdc++.* ${PREFIX}/lib/libsupc++.* ${TARGLIB}
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- ${MV} -f ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/ggcc.1
- ${MV} -f ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/gg++.1
- ${MV} -f ${PREFIX}/man/man1/g77.1 ${PREFIX}/man/man1/gg77.1
- ${MV} -f ${PREFIX}/man/man1/cpp.1 ${PREFIX}/man/man1/gcpp.1
- ${MV} -f ${PREFIX}/man/man1/gcov.1 ${PREFIX}/man/man1/ggcov.1
#.if defined(WANT_SHAREDLIBS)
# ${MV} -f ${PREFIX}/lib/libstdc++.so* ${TARGLIB}
#.endif