1999-04-18 16:54:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.40 1999/04/18 20:54:38 espie Exp $
|
1999-02-23 04:28:23 -05:00
|
|
|
|
1999-01-09 11:55:27 -05:00
|
|
|
# This is a configuration file for egcs, snapshot flavor
|
1998-11-17 12:39:33 -05:00
|
|
|
# PLEASE use the regular egcs-stable for serious work, resort to this one
|
|
|
|
# for experimentations and testing.
|
|
|
|
|
1999-02-19 23:26:13 -05:00
|
|
|
# it only works right with a recent bsd.port.mk.
|
1999-03-01 23:41:00 -05:00
|
|
|
NEED_VERSION=1.73
|
1999-02-19 23:26:13 -05:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
# we could remove this dependency by patching configure, but this is not
|
|
|
|
# reasonable...
|
1999-01-09 11:55:27 -05:00
|
|
|
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
|
1998-12-02 21:33:34 -05:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
CATEGORIES= lang
|
|
|
|
MAINTAINER= Marc.Espie@openbsd.org
|
1998-12-17 00:13:23 -05:00
|
|
|
MIRROR_DISTFILE=no
|
1998-11-17 12:39:33 -05:00
|
|
|
|
1999-01-13 08:58:45 -05:00
|
|
|
# Testers for the new configurations:
|
|
|
|
# Jason L.Wright & Marco S.Hyman for sparc,
|
|
|
|
# Michael Shalayeff for hppa,
|
1999-02-23 04:28:23 -05:00
|
|
|
# Wim Van Deputte for alpha,
|
|
|
|
# Steve Murphee for m88k,
|
|
|
|
# Per Fogelstrom and Todd Millert for mips,
|
|
|
|
# Dale Rahn for rs6000.
|
1998-11-17 12:39:33 -05:00
|
|
|
|
|
|
|
# user configuration section
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1998-11-16 16:11:13 -05:00
|
|
|
# see files/tests for precise testing procedure
|
1998-11-17 12:39:33 -05:00
|
|
|
|
1998-11-24 19:54:02 -05:00
|
|
|
|
1999-01-11 19:19:49 -05:00
|
|
|
# cygnus packaging scheme is now working, though it is weird.
|
|
|
|
# namely, testsuite holds all the tests. g++-tests no longer exists,
|
|
|
|
# and g77-tests only holds duplicates from the main testsuite archive.
|
1998-11-16 16:11:13 -05:00
|
|
|
MAKE_TESTS=yes
|
|
|
|
MAKE_GXX=yes
|
1999-01-11 19:19:49 -05:00
|
|
|
MAKE_FORTRAN=yes
|
1999-01-18 05:23:25 -05:00
|
|
|
MAKE_CHILL=yes
|
1999-01-11 19:19:49 -05:00
|
|
|
MAKE_OBJC=yes
|
|
|
|
MAKE_JAVA=yes
|
1998-11-17 12:39:33 -05:00
|
|
|
|
1998-11-24 19:54:02 -05:00
|
|
|
.if defined(MAKE_TESTS)
|
|
|
|
BUILD_DEPENDS+= runtest:${PORTSDIR}/devel/dejagnu
|
|
|
|
.endif
|
1998-11-16 16:11:13 -05:00
|
|
|
|
1998-11-24 19:54:02 -05:00
|
|
|
# if you want/need to use the mammoth archive
|
1999-01-31 18:20:41 -05:00
|
|
|
ONE_ARCHIVE=yes
|
1998-11-17 12:39:33 -05:00
|
|
|
|
1998-11-24 19:54:02 -05:00
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
LATEST_DATE=1999-04-12
|
1998-11-17 12:39:33 -05:00
|
|
|
|
|
|
|
#### fetch section
|
|
|
|
# configuration is built so that you can test the next snapshot easily,
|
|
|
|
# define NEXT_DATE to the next snapshot... you lose the ability to check
|
|
|
|
# md5 sums, though.
|
1998-12-16 12:52:29 -05:00
|
|
|
|
1998-12-05 18:25:58 -05:00
|
|
|
# You also may have to remove/add some patches, as these things ARE
|
|
|
|
# usually passed along to the egcs ml.
|
1999-04-18 16:54:38 -04:00
|
|
|
#NEXT_DATE=1999-04-18
|
1998-12-05 18:25:58 -05:00
|
|
|
#PATCH_DEBUG=yes
|
1998-11-16 16:11:13 -05:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
LATEST != echo ${LATEST_DATE} | sed -e s/-//g;
|
1998-11-16 16:11:13 -05:00
|
|
|
DIRECTORY=egcs/snapshots/%SUBDIR%/
|
1998-11-17 12:39:33 -05:00
|
|
|
.if defined(NEXT_DATE)
|
|
|
|
NEXT != echo ${NEXT_DATE} | sed -e s/-//g;
|
1998-11-16 16:11:13 -05:00
|
|
|
DISTNAME= egcs-${NEXT}
|
|
|
|
.else
|
|
|
|
DISTNAME= egcs-${LATEST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# getting the right archives where they should be
|
1998-12-17 18:04:10 -05:00
|
|
|
MASTER_SITE_SUBDIR=${LATEST_DATE}
|
|
|
|
PATCH_SITE_SUBDIR=${NEXT_DATE}
|
1998-11-16 16:11:13 -05:00
|
|
|
|
|
|
|
DIST_SUBDIR=egcs
|
|
|
|
|
|
|
|
PATCH_DIST_STRIP=-p1
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1998-11-24 19:54:02 -05:00
|
|
|
.if defined(ONE_ARCHIVE)
|
|
|
|
DISTFILES= egcs-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.else
|
|
|
|
|
1998-09-25 18:45:26 -04:00
|
|
|
DISTFILES= egcs-core-${LATEST}${EXTRACT_SUFX}
|
1998-11-16 16:11:13 -05:00
|
|
|
.if defined(MAKE_TESTS)
|
1998-10-02 14:57:28 -04:00
|
|
|
DISTFILES+=egcs-tests-${LATEST}${EXTRACT_SUFX}
|
1998-11-16 16:11:13 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(MAKE_GXX)
|
|
|
|
DISTFILES+= egcs-g++-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(MAKE_FORTRAN)
|
|
|
|
DISTFILES+= egcs-g77-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(MAKE_JAVA)
|
|
|
|
DISTFILES+=egcs-java-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(MAKE_OBJC)
|
|
|
|
DISTFILES+=egcs-objc-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(MAKE_CHILL)
|
|
|
|
DISTFILES+=egcs-chill-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.endif
|
1998-10-02 14:57:28 -04:00
|
|
|
|
1998-11-24 19:54:02 -05:00
|
|
|
.endif
|
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
SUPDISTFILES=egcs-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.for sub in core tests g++ g77 java objc chill
|
|
|
|
SUPDISTFILES+=egcs-${sub}-${LATEST}${EXTRACT_SUFX}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
1998-12-18 19:55:44 -05:00
|
|
|
MASTER_SITES=
|
|
|
|
MASTER_SITES+= ftp://egcs.cygnus.com/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.lip6.fr/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://go.cygnus.com/pub/ftp.cygnus.com/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.goof.com/pub/pcg/${DIRECTORY}
|
|
|
|
#MASTER_SITES+= ftp://cambridge.cygnus.com/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://sunsite.doc.ic.ac.uk/Mirrors/egcs.cygnus.com/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://gd.tuwien.ac.at/gnu/${DIRECTORY}
|
|
|
|
#MASTER_SITES+= ftp://ftp.ilog.fr/pub/Mirrors/${DIRECTORY}
|
|
|
|
#MASTER_SITES+= ftp://ftp.irisa.fr/pub/mirrors/${DIRECTORY}
|
|
|
|
|
|
|
|
MASTER_SITES+= ftp://ftp.gts.cz/pub/MIRRORS/ftp.cygnus.com/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://sunsite.auc.dk/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.fu-berlin.de/unix/languages/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.gwdg.de/pub/cygnus/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/egcs.cygnus.com/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.uni-trier.de/pub/languages/c/implementation/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.sunet.se/pub/gnu/${DIRECTORY}
|
|
|
|
#MASTER_SITES+= ftp://ftp.unicamp.br/pub/gnu/=EXTRA=/cygnus/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.lbi.ro/mirrors/ftp.cygnus.com/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.ntua.gr/pub/gnu/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.nluug.nl/pub/languages/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.dti.ad.jp/pub/lang/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.win.or.jp/pub/lang/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.telewaynet.ad.jp/pub/lang/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.lab.kdd.co.jp/lang/${DIRECTORY}
|
|
|
|
#MASTER_SITES+= ftp://ftp.funet.fi/mirrors/ftp.cygnus.com/pub/${DIRECTORY}
|
|
|
|
#MASTER_SITES+= ftp://ftp.crc.ca/pub/packages/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.nc.orc.ru/pub/${DIRECTORY}
|
|
|
|
#MASTER_SITES+= ftp://ftp.u-aizu.ac.jp/pub/lang/C/pcg/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.maisel.int-evry.fr/pub/linux/pentium/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.yggdrasil.com/mirrors/site/egcs.cygnus.com/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://unix.hensa.ac.uk/mirrors/egcs.cygnus.com/pub/${DIRECTORY}
|
|
|
|
|
|
|
|
# couldn't contact those, maybe they work ?
|
|
|
|
MASTER_SITES+= ftp://sunsite.mff.cuni.cz/pub/GNU/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://sunsite.icm.edu.pl/pub/programming/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.task.gda.pl/mirror/egcs.cygnus.com/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://ftp.lca.uevora.pt/pub/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://cair-archive.kaist.ac.kr/pub/gnu/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://linux.ihep.su/pub/cygnus/${DIRECTORY}
|
|
|
|
MASTER_SITES+= ftp://linux.cis.nctu.edu.tw/pub/packages/pcg/${DIRECTORY}
|
1999-04-18 16:54:38 -04:00
|
|
|
MASTER_SITES+= ftp://ftp.ninemoons.com/pub/mirrors/${DIRECTORY}
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1998-12-17 18:04:10 -05:00
|
|
|
PATCH_SITES = ${MASTER_SITES}
|
1998-11-17 12:39:33 -05:00
|
|
|
|
|
|
|
# add a possible next snapshot
|
|
|
|
|
1998-11-16 16:11:13 -05:00
|
|
|
.if defined(NEXT)
|
1998-11-24 19:54:02 -05:00
|
|
|
.if defined(ONE_ARCHIVE)
|
|
|
|
PATCHFILES=egcs-${LATEST}-${NEXT}.diff.gz
|
|
|
|
|
|
|
|
.else
|
1998-11-16 16:11:13 -05:00
|
|
|
PATCHFILES=egcs-core-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.if defined(MAKE_TESTS)
|
|
|
|
PATCHFILES+=egcs-tests-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_GXX)
|
|
|
|
PATCHFILES+=egcs-g++-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.if defined(MAKE_TESTS)
|
|
|
|
PATCHFILES+=egcs-g++-tests-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_FORTRAN)
|
|
|
|
PATCHFILES+=egcs-g77-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.if defined(MAKE_TESTS)
|
|
|
|
PATCHFILES+=egcs-g77-testsuite-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_JAVA)
|
|
|
|
PATCHFILES+=egcs-java-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_OBJC)
|
|
|
|
PATCHFILES+=egcs-objc-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_CHILL)
|
|
|
|
PATCHFILES+=egcs-chill-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.endif
|
1998-11-24 19:54:02 -05:00
|
|
|
.endif
|
1998-11-16 16:11:13 -05:00
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
SUPPATCHFILES=egcs-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.for sub in core tests g++ g77 java objc chill
|
|
|
|
SUPPATCHFILES+=egcs-${sub}-${LATEST}-${NEXT}.diff.gz
|
|
|
|
.endfor
|
|
|
|
|
1998-11-16 16:11:13 -05:00
|
|
|
.endif
|
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
makesum:
|
|
|
|
@${ECHO} ">>>Please make addsum to avoid clobbering old checksums"
|
|
|
|
@${FALSE}
|
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
# synch the date
|
|
|
|
.if defined(NEXT)
|
|
|
|
post-extract:
|
|
|
|
${MV} ${WRKDIR}/egcs-${LATEST} ${WRKSRC}
|
|
|
|
.endif
|
1998-11-16 16:11:13 -05:00
|
|
|
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
####
|
|
|
|
# Patch section
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1998-11-24 19:54:02 -05:00
|
|
|
PATCH_LIST=patch-core-*
|
1998-11-17 12:39:33 -05:00
|
|
|
.if defined(MAKE_GXX)
|
1998-11-24 19:54:02 -05:00
|
|
|
PATCH_LIST+=patch-g++-*
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_OBJC)
|
|
|
|
PATCH_LIST+=patch-objc-*
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_CHILL)
|
|
|
|
PATCH_LIST+=patch-chill-*
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_FORTRAN)
|
|
|
|
PATCH_LIST+=patch-g77-*
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_JAVA)
|
|
|
|
PATCH_LIST+=patch-java-*
|
1998-11-17 12:39:33 -05:00
|
|
|
.endif
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
# get openbsd configuration files where they should be
|
|
|
|
post-patch:
|
1998-12-02 21:33:34 -05:00
|
|
|
# avoid packaging include copies along...
|
1999-04-18 16:54:38 -04:00
|
|
|
find ${WRKSRC} -name \*.orig|xargs ${RM}
|
1998-11-17 12:39:33 -05:00
|
|
|
${CP} -R ${FILESDIR}/config/* ${WRKSRC}
|
|
|
|
-${RM} -rf ${WRKSRC}/texinfo
|
1998-12-02 21:33:34 -05:00
|
|
|
cd ${WRKSRC}; \
|
1998-12-21 16:13:01 -05:00
|
|
|
for f in `cat ${FILESDIR}/fixdepend`; \
|
1998-12-02 21:33:34 -05:00
|
|
|
do \
|
|
|
|
[ -f $$f ] && touch $$f; \
|
|
|
|
done
|
1999-02-28 13:17:06 -05:00
|
|
|
# rebuild configure files after patching, then move source around !!!
|
|
|
|
# XXX: don't try to autoconf the main configure file, it's not autoconf.
|
|
|
|
cd ${WRKSRC}/gcc && PATH=${PORTPATH} autoreconf
|
|
|
|
cd ${WRKSRC}/libiberty && PATH=${PORTPATH} autoreconf
|
1998-09-25 18:45:26 -04:00
|
|
|
|
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
# configure section
|
|
|
|
#
|
|
|
|
# define AS_PATH/LD_PATH is you don't want to use the default as/ld.
|
1998-11-24 19:54:02 -05:00
|
|
|
# This should not be used for regular releases, but if you're using this
|
1998-11-17 12:39:33 -05:00
|
|
|
# snapshot, you know what you're doing, don't you ?
|
1998-11-24 19:54:02 -05:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
1999-02-03 13:02:53 -05:00
|
|
|
#CONFIGURE_SCRIPT=../source/configure
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1998-12-16 12:52:29 -05:00
|
|
|
LANGS=c
|
|
|
|
.if defined(MAKE_GXX)
|
|
|
|
LANGS+=c++
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_FORTRAN)
|
|
|
|
LANGS+=f77
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_CHILL)
|
|
|
|
LANGS+=CHILL
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_OBJC)
|
|
|
|
LANGS+=objc
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_JAVA)
|
|
|
|
LANGS+=java
|
|
|
|
.endif
|
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
# Note: the configure target passes CFLAGS to the configure script anyways.
|
|
|
|
|
|
|
|
#CFLAGS='-g -O2'
|
|
|
|
CONFIGURE_ENV=LANGUAGES='${LANGS}'
|
|
|
|
|
|
|
|
|
1999-02-03 13:02:53 -05:00
|
|
|
|
1998-10-02 14:57:28 -04:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
1998-12-16 12:52:29 -05:00
|
|
|
--verbose --program-transform-name=s,^,e,
|
1998-09-25 18:45:26 -04:00
|
|
|
|
|
|
|
|
1999-02-03 13:02:53 -05:00
|
|
|
# if you wish to try your luck
|
|
|
|
#CONFIGURE_ARGS+= --enable-threads=yes
|
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
.if defined(AS_PATH)
|
|
|
|
CONFIGURE_ARGS += --with-as=${AS_PATH}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS += --with-gnu-as
|
|
|
|
.endif
|
1998-11-16 16:11:13 -05:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
.if defined(LD_PATH)
|
|
|
|
CONFIGURE_ARGS += --with-ld=${LD_PATH}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS += --with-gnu-ld
|
1998-11-16 16:11:13 -05:00
|
|
|
.endif
|
|
|
|
|
1999-03-01 23:41:00 -05:00
|
|
|
CONFIGURE_ARGS += ${CONFIGURE_SHARED}
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1999-02-28 13:17:06 -05:00
|
|
|
SEPARATE_BUILD=yes
|
1999-02-03 13:02:53 -05:00
|
|
|
WRKBUILD=${WRKDIR}/build-${MACHINE_ARCH}
|
1998-12-16 12:52:29 -05:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
# build section
|
1998-11-24 19:54:02 -05:00
|
|
|
# should work without gmake. If it turns out to be needed, this must be
|
1999-02-19 23:26:13 -05:00
|
|
|
# reported to MAINTAINER.
|
1998-11-17 12:39:33 -05:00
|
|
|
#USE_GMAKE= yes
|
|
|
|
|
|
|
|
# you shouldn't skip bootstrap unless you know what you're doing
|
1998-11-24 19:54:02 -05:00
|
|
|
# use bootstrap-lean if you're pressed for space
|
1998-11-17 12:39:33 -05:00
|
|
|
ALL_TARGET=bootstrap
|
|
|
|
# ALL_TARGET=bootstrap-lean
|
1998-11-24 19:54:02 -05:00
|
|
|
|
|
|
|
# XXX we need to override do-build to get the warnings from within make
|
|
|
|
do-build:
|
1999-02-03 13:02:53 -05:00
|
|
|
@(cd ${WRKBUILD}; \
|
1999-01-09 21:50:02 -05:00
|
|
|
${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET} 2>warnings) || \
|
1999-04-18 16:54:38 -04:00
|
|
|
(echo "*** Make bootstrap failed."; \
|
|
|
|
echo "*** Look at ${WRKBUILD}/warnings for errors"; ${FALSE})
|
|
|
|
|
|
|
|
####
|
|
|
|
# Install & tests section
|
1998-11-17 12:39:33 -05:00
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
# Tests should be performed at the end of install, since they depend upon
|
|
|
|
# having the correct flavor of libstdc++.so.
|
1999-02-23 11:54:48 -05:00
|
|
|
.if defined(MAKE_TESTS)
|
1999-04-18 16:54:38 -04:00
|
|
|
TEST_RESULT=${WRKBUILD}/test.result
|
1998-11-17 12:39:33 -05:00
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
post-install:
|
|
|
|
@(cd ${WRKBUILD}; ulimit -c 0; \
|
|
|
|
${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} ${MAKEFILE} check && \
|
|
|
|
${WRKSRC}/contrib/test_summary >${TEST_RESULT})
|
|
|
|
@${ECHO} "Please send the tests results to the egcs projects"
|
|
|
|
@${ECHO} "By invoking make send-results"
|
|
|
|
|
|
|
|
send-results: ${TEST_RESULT}
|
|
|
|
sh ${TEST_RESULT}
|
|
|
|
.endif
|
1998-09-25 18:45:26 -04:00
|
|
|
|
1999-02-06 11:31:14 -05:00
|
|
|
PLIST=${WRKBUILD}/PLIST
|
1998-11-24 19:54:02 -05:00
|
|
|
|
1998-11-16 16:11:13 -05:00
|
|
|
M4FLAGS=-Uinclude -DDISTNAME=${DISTNAME}
|
|
|
|
.if defined(MAKE_GXX)
|
|
|
|
M4FLAGS+= -DGXX
|
|
|
|
.endif
|
1998-11-24 19:54:02 -05:00
|
|
|
.if defined(MAKE_FORTRAN)
|
|
|
|
M4FLAGS+= -DFORTRAN
|
1998-11-16 16:11:13 -05:00
|
|
|
.endif
|
|
|
|
.if defined(MAKE_CHILL)
|
|
|
|
M4FLAGS+= -DCHILL
|
|
|
|
.endif
|
1998-11-24 19:54:02 -05:00
|
|
|
.if defined(MAKE_OBJC)
|
1998-11-16 16:11:13 -05:00
|
|
|
M4FLAGS+= -DOBJC
|
|
|
|
.endif
|
1998-11-24 19:54:02 -05:00
|
|
|
.if defined(MAKE_JAVA)
|
|
|
|
M4FLAGS+= -DJAVA
|
|
|
|
.endif
|
1998-11-16 16:11:13 -05:00
|
|
|
|
|
|
|
pre-install:
|
1999-02-09 05:47:44 -05:00
|
|
|
${M4} ${M4FLAGS} -DARCH=`${WRKSRC}/config.guess` \
|
1999-02-04 08:21:12 -05:00
|
|
|
-DVERSION=`${SED} -e 's/.*\(egcs-[0-9.]*\) .*/\1/' <${WRKSRC}/gcc/version.c` \
|
1998-11-24 19:54:02 -05:00
|
|
|
<${FILESDIR}/PLIST.template >${PLIST}
|
1998-11-16 16:11:13 -05:00
|
|
|
|
1998-09-25 18:45:26 -04:00
|
|
|
.include <bsd.port.mk>
|
1999-03-01 23:41:00 -05:00
|
|
|
|
|
|
|
.if !defined(NO_SHARED_LIBS)
|
|
|
|
M4FLAGS+= -DDYNAMIC
|
|
|
|
.endif
|