diff options
author | obrien <obrien@FreeBSD.org> | 2001-08-15 16:54:42 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-08-15 16:54:42 +0000 |
commit | 1370e8a6e09d9382105abbd8658b5492ee8ce4fa (patch) | |
tree | 9552a29db2eb4c9e29d670d086a281bca8ac8bf2 /lang/gcc35 | |
parent | 93f7436986e83be60cfd3baaabad0439542c6212 (diff) | |
download | FreeBSD-ports-1370e8a6e09d9382105abbd8658b5492ee8ce4fa.zip FreeBSD-ports-1370e8a6e09d9382105abbd8658b5492ee8ce4fa.tar.gz |
Major overhall and style clean up.
Diffstat (limited to 'lang/gcc35')
-rw-r--r-- | lang/gcc35/Makefile | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/lang/gcc35/Makefile b/lang/gcc35/Makefile index 66f8ab6..d553ea2 100644 --- a/lang/gcc35/Makefile +++ b/lang/gcc35/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 |