2001-03-21 09:44:01 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.84 2001/03/21 14:44:01 wilfried 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
|
|
|
|
2001-03-17 11:15:50 -05:00
|
|
|
COM= 'GNU compiler collection (experimental)'
|
2001-03-16 10:53:15 -05:00
|
|
|
COMMENT= ${COM}: core C compiler
|
2001-03-21 09:44:01 -05:00
|
|
|
COMMENT-c++ = ${COM}: C++ compiler
|
2001-03-16 10:53:15 -05:00
|
|
|
COMMENT-chill= ${COM}: Chill compiler
|
|
|
|
COMMENT-g77= ${COM}: f77 compiler
|
|
|
|
COMMENT-java= ${COM}: java compiler
|
|
|
|
COMMENT-objc= ${COM}: obj C compiler
|
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME}-core
|
2001-03-21 09:44:01 -05:00
|
|
|
PKGNAME-c++ = ${DISTNAME}-c++
|
2001-03-16 10:53:15 -05:00
|
|
|
PKGNAME-chill= ${DISTNAME}-chill
|
|
|
|
PKGNAME-g77= ${DISTNAME}-g77
|
|
|
|
PKGNAME-java= ${DISTNAME}-java
|
|
|
|
PKGNAME-objc= ${DISTNAME}-objc
|
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...
|
2000-03-24 18:28:01 -05:00
|
|
|
BUILD_DEPENDS= autoconf::devel/autoconf
|
1998-12-02 21:33:34 -05:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
CATEGORIES= lang
|
2001-03-16 10:53:15 -05:00
|
|
|
NEED_VERSION= 1.361
|
2000-10-09 20:40:20 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
2000-02-12 03:02:07 -05:00
|
|
|
|
|
|
|
|
2000-03-29 18:26:17 -05:00
|
|
|
# experimental port, changes once a week, don't bother remirroring distfiles.
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_FTP=Yes
|
2000-04-18 19:23:15 -04:00
|
|
|
PERMIT_DISTFILES_FTP=Yes
|
2000-03-29 18:26:17 -05:00
|
|
|
PERMIT_PACKAGE_CDROM="Probably meaningless"
|
|
|
|
PERMIT_DISTFILES_CDROM="Probably meaningless"
|
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.
|
2000-07-19 20:18:28 -04:00
|
|
|
MAKE_TESTS=yes
|
2000-04-18 19:23:15 -04:00
|
|
|
MAKE_GXX=Yes
|
|
|
|
MAKE_FORTRAN=Yes
|
2000-03-29 18:26:17 -05:00
|
|
|
# we don't care about chill
|
1999-09-06 09:58:44 -04:00
|
|
|
#MAKE_CHILL=yes
|
2000-04-18 19:23:15 -04:00
|
|
|
MAKE_OBJC=Yes
|
|
|
|
MAKE_JAVA=Yes
|
|
|
|
|
|
|
|
MULTI_PACKAGES=
|
|
|
|
# No sub packages description
|
|
|
|
DESCR=${PKGDIR}/DESCR
|
|
|
|
|
|
|
|
PATCH_LIST=patch-core-*
|
|
|
|
.if defined(MAKE_GXX)
|
|
|
|
PATCH_LIST+=patch-g++-*
|
|
|
|
MULTI_PACKAGES+=-c++
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_OBJC)
|
|
|
|
PATCH_LIST+=patch-objc-*
|
|
|
|
MULTI_PACKAGES+=-objc
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_CHILL)
|
|
|
|
PATCH_LIST+=patch-chill-*
|
|
|
|
MULTI_PACKAGES+=-chill
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_FORTRAN)
|
|
|
|
PATCH_LIST+=patch-g77-*
|
|
|
|
MULTI_PACKAGES+=-g77
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_JAVA)
|
|
|
|
PATCH_LIST+=patch-java-*
|
|
|
|
MULTI_PACKAGES+=-java
|
|
|
|
.endif
|
1998-11-17 12:39:33 -05:00
|
|
|
|
2000-07-19 20:18:28 -04:00
|
|
|
.if defined(MAKE_TESTS) && ${MAKE_TESTS:L} == "yes"
|
2000-06-27 20:14:44 -04:00
|
|
|
BUILD_DEPENDS+= runtest::lang/egcs/dejagnu
|
1998-11-24 19:54:02 -05:00
|
|
|
.endif
|
1998-11-16 16:11:13 -05:00
|
|
|
|
2000-07-19 20:18:28 -04:00
|
|
|
# No way around it, java wants a pure parser
|
|
|
|
.if defined(MAKE_JAVA) && ${MAKE_JAVA:L} == "yes"
|
|
|
|
BUILD_DEPENDS+=bison::devel/bison
|
|
|
|
.endif
|
|
|
|
|
2000-08-01 10:44:43 -04:00
|
|
|
LATEST_DATE=2000-07-31
|
1998-11-17 12:39:33 -05:00
|
|
|
|
|
|
|
#### fetch section
|
|
|
|
# configuration is built so that you can test the next snapshot easily,
|
1999-04-28 11:40:26 -04:00
|
|
|
# define NEXT_DATE to the next snapshot...
|
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.
|
2000-03-29 18:26:17 -05:00
|
|
|
#NEXT_DATE=2000-02-21
|
1998-12-05 18:25:58 -05:00
|
|
|
#PATCH_DEBUG=yes
|
1998-11-16 16:11:13 -05:00
|
|
|
|
2000-02-02 13:35:23 -05:00
|
|
|
LATEST=${LATEST_DATE:S/-//g}
|
2000-07-14 14:16:22 -04:00
|
|
|
DIRECTORY=snapshots/%DATE%/
|
1998-11-17 12:39:33 -05:00
|
|
|
.if defined(NEXT_DATE)
|
2000-02-02 13:35:23 -05:00
|
|
|
NEXT=${NEXT_DATE: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
|
2000-03-29 18:26:17 -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
|
|
|
DISTFILES= egcs-${LATEST}${EXTRACT_SUFX}
|
1999-04-18 16:54:38 -04:00
|
|
|
|
2000-02-02 13:35:23 -05:00
|
|
|
SITES=
|
1998-12-18 19:55:44 -05:00
|
|
|
|
2000-07-14 14:16:22 -04:00
|
|
|
SITES+= ftp://ftp.uvsq.fr/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.grolier.fr/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://gd.tuwien.ac.at/gnu/gcc/${DIRECTORY}
|
|
|
|
SITES+= ftp://chardonnay.elis.rug.ac.be/pub/mirrors/gcc.cygnus.com/pub/gcc/${DIRECTORY}
|
|
|
|
SITES+= ftp://gd.tuwien.ac.at/gnu/gcc/${DIRECTORY}
|
|
|
|
SITES+= ftp://egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.goof.com/pub/pcg/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://go.cygnus.com/pub/ftp.cygnus.com/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://cambridge.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://sunsite.doc.ic.ac.uk/Mirrors/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
|
|
|
|
SITES+= ftp://ftp.gts.cz/pub/MIRRORS/ftp.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://sunsite.auc.dk/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.fu-berlin.de/unix/languages/egcs/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.gwdg.de/pub/cygnus/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/egcs.cygnus.com/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.uni-trier.de/pub/languages/c/implementation/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.sunet.se/pub/gnu/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.unicamp.br/pub/gnu/=EXTRA=/cygnus/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.lbi.ro/mirrors/ftp.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.ntua.gr/pub/gnu/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.nluug.nl/pub/languages/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.dti.ad.jp/pub/lang/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.win.or.jp/pub/lang/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.telewaynet.ad.jp/pub/lang/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.lab.kdd.co.jp/lang/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.funet.fi/mirrors/ftp.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.crc.ca/pub/packages/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.nc.orc.ru/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.u-aizu.ac.jp/pub/lang/C/pcg/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.maisel.int-evry.fr/pub/linux/pentium/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.yggdrasil.com/mirrors/site/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://unix.hensa.ac.uk/mirrors/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
1998-09-25 18:45:26 -04:00
|
|
|
|
2000-07-14 14:16:22 -04:00
|
|
|
# Can't contact those, maybe they work ?
|
|
|
|
SITES+= ftp://sunsite.mff.cuni.cz/pub/GNU/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://sunsite.icm.edu.pl/pub/programming/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.task.gda.pl/mirror/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.lca.uevora.pt/pub/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://cair-archive.kaist.ac.kr/pub/gnu/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://linux.ihep.su/pub/cygnus/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://linux.cis.nctu.edu.tw/pub/packages/pcg/egcs/${DIRECTORY}
|
|
|
|
SITES+= ftp://ftp.ninemoons.com/pub/mirrors/egcs/${DIRECTORY}
|
|
|
|
|
|
|
|
# Bad mirrors (no snapshot)
|
|
|
|
# ftp.lip6.fr, ftp.ilog.fr, ftp.irisa.fr
|
|
|
|
# No route to host
|
|
|
|
# mirrors.aarnet.edu.au
|
|
|
|
#SITES+= ftp://ftp.lip6.fr/pub/egcs/${DIRECTORY}
|
|
|
|
#SITES+= ftp://ftp.ilog.fr/pub/Mirrors/egcs/${DIRECTORY}
|
|
|
|
#SITES+= ftp://ftp.irisa.fr/pub/mirrors/egcs.cygwin.com/gcc/${DIRECTORY}
|
2000-02-02 13:35:23 -05:00
|
|
|
MASTER_SITES=${SITES:S/%DATE%/${LATEST_DATE}/}
|
1998-11-17 12:39:33 -05:00
|
|
|
|
2000-03-29 18:26:17 -05:00
|
|
|
FAKE_FLAGS= DESTDIR=${WRKINST}
|
1998-11-17 12:39:33 -05:00
|
|
|
# add a possible next snapshot
|
|
|
|
|
1998-11-16 16:11:13 -05:00
|
|
|
.if defined(NEXT)
|
2000-03-29 18:26:17 -05:00
|
|
|
PATCHFILES=egcs-${LATEST}-${NEXT}.diff.gz
|
1998-11-16 16:11:13 -05:00
|
|
|
.endif
|
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
makesum:
|
2000-03-29 18:26:17 -05:00
|
|
|
@echo 1>&2 ">>>Please make addsum to avoid clobbering old checksums"
|
1999-11-23 19:15:04 -05:00
|
|
|
@exit 1
|
1999-04-18 16:54:38 -04:00
|
|
|
|
1998-11-17 12:39:33 -05:00
|
|
|
# synch the date
|
|
|
|
.if defined(NEXT)
|
|
|
|
post-extract:
|
1999-11-23 19:15:04 -05:00
|
|
|
mv ${WRKDIR}/egcs-${LATEST} ${WRKSRC}
|
1998-11-17 12:39:33 -05:00
|
|
|
.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-17 12:39:33 -05:00
|
|
|
# get openbsd configuration files where they should be
|
|
|
|
post-patch:
|
1999-11-23 19:15:04 -05:00
|
|
|
cp -R ${FILESDIR}/config/* ${WRKSRC}
|
|
|
|
cp -R ${FILESDIR}/include/* ${WRKSRC}/gcc/ginclude
|
1999-09-07 11:04:02 -04:00
|
|
|
cd ${WRKSRC} && contrib/gcc_update --touch
|
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.
|
1999-09-09 10:25:11 -04:00
|
|
|
cd ${WRKSRC}/gcc && PATH=${PORTPATH} autoconf
|
|
|
|
cd ${WRKSRC}/libiberty && PATH=${PORTPATH} autoconf
|
1999-11-23 19:15:04 -05:00
|
|
|
cd ${WRKSRC}/libf2c/libI77 && PATH=${PORTPATH} autoconf
|
2000-06-27 18:14:26 -04:00
|
|
|
cd ${WRKSRC} && rm -rf texinfo
|
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
|
|
|
|
2000-07-14 14:16:22 -04:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
1998-11-24 19:54:02 -05:00
|
|
|
|
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)
|
2000-08-01 10:44:43 -04:00
|
|
|
LANGS:=${LANGS},c++
|
1998-12-16 12:52:29 -05:00
|
|
|
.endif
|
|
|
|
.if defined(MAKE_FORTRAN)
|
2000-08-01 10:44:43 -04:00
|
|
|
LANGS:=${LANGS},f77
|
1998-12-16 12:52:29 -05:00
|
|
|
.endif
|
|
|
|
.if defined(MAKE_CHILL)
|
2000-08-01 10:44:43 -04:00
|
|
|
LANGS.=${LANGS},CHILL
|
1998-12-16 12:52:29 -05:00
|
|
|
.endif
|
|
|
|
.if defined(MAKE_OBJC)
|
2000-08-01 10:44:43 -04:00
|
|
|
LANGS:=${LANGS},objc
|
1998-12-16 12:52:29 -05:00
|
|
|
.endif
|
|
|
|
.if defined(MAKE_JAVA)
|
2000-08-01 10:44:43 -04:00
|
|
|
LANGS:=${LANGS},java
|
1998-12-16 12:52:29 -05:00
|
|
|
.endif
|
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
# Note: the configure target passes CFLAGS to the configure script anyways.
|
|
|
|
|
2000-07-14 14:16:22 -04:00
|
|
|
CFLAGS=-O2 -g
|
1999-04-18 16:54:38 -04:00
|
|
|
|
1999-02-03 13:02:53 -05:00
|
|
|
|
2000-07-14 14:16:22 -04:00
|
|
|
CONFIGURE_ARGS= --verbose --program-transform-name=s,^,e, \
|
2000-08-01 10:44:43 -04:00
|
|
|
--disable-nls
|
1999-04-28 11:40:26 -04:00
|
|
|
|
|
|
|
# This is needed, as internal cpp is no longer compatible with the
|
|
|
|
# visible beast
|
|
|
|
CONFIGURE_ARGS+=--enable-cpp
|
2000-08-01 10:44:43 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-languages=${LANGS}
|
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-06-01 16:59:34 -04:00
|
|
|
SEPARATE_BUILD=concurrent
|
1999-04-28 11:40:26 -04: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
|
2000-08-01 10:44:43 -04:00
|
|
|
ALL_TARGET=bootstrap
|
1999-11-23 19:15:04 -05:00
|
|
|
#ALL_TARGET=bootstrap3
|
1998-11-17 12:39:33 -05:00
|
|
|
# ALL_TARGET=bootstrap-lean
|
1998-11-24 19:54:02 -05:00
|
|
|
|
1999-04-28 11:40:26 -04:00
|
|
|
# desactivate the fixincludes mechanism by supplying a script which does
|
|
|
|
# nothing
|
|
|
|
pre-build:
|
1999-12-13 19:19:15 -05:00
|
|
|
sed -e s,@WRKBUILD@,${WRKBUILD}, -e s,@FILESDIR@,${FILESDIR}, \
|
2000-03-29 18:26:17 -05:00
|
|
|
${FILESDIR}/fixinc.sh.m4 >${WRKSRC}/gcc/fixinc/openbsd-special
|
|
|
|
chmod a+x ${WRKSRC}/gcc/fixinc/openbsd-special
|
|
|
|
echo "cp ${WRKSRC}/gcc/fixinc/openbsd-special ${WRKBUILD}/gcc/fixinc.sh" >${WRKSRC}/gcc/fixinc/mkfixinc.sh
|
1999-04-28 11:40:26 -04:00
|
|
|
|
1999-04-18 16:54:38 -04:00
|
|
|
####
|
|
|
|
# Install & tests section
|
1998-11-17 12:39:33 -05:00
|
|
|
|
1999-11-23 19:15:04 -05:00
|
|
|
post-build:
|
2000-06-27 18:14:26 -04:00
|
|
|
# avoid packaging include copies along...
|
|
|
|
find ${WRKBUILD} -name \*.orig|xargs rm
|
1999-11-23 19:15:04 -05:00
|
|
|
mkdir -p ${WRKBUILD}/gcc/include/machine
|
|
|
|
cp ${FILESDIR}/include/machine/ansi.h ${WRKBUILD}/gcc/include/machine
|
|
|
|
|
|
|
|
# Tests still need to be performed at the end of install, I don't know why.
|
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-11-23 19:15:04 -05:00
|
|
|
post-install:
|
1999-04-18 16:54:38 -04:00
|
|
|
@(cd ${WRKBUILD}; ulimit -c 0; \
|
2000-03-29 18:26:17 -05:00
|
|
|
${MAKE_ENV} make -f ${MAKE_FILE} check && \
|
1999-04-18 16:54:38 -04:00
|
|
|
${WRKSRC}/contrib/test_summary >${TEST_RESULT})
|
1999-12-01 12:38:43 -05:00
|
|
|
@echo "Please send the tests results to the egcs project"
|
|
|
|
@echo "By invoking make send-results"
|
1999-04-18 16:54:38 -04:00
|
|
|
|
1999-05-25 15:55:21 -04:00
|
|
|
send-results:
|
1999-06-02 19:32:47 -04:00
|
|
|
[ -f ${TEST_RESULT} ] && sh ${TEST_RESULT}
|
1999-11-23 19:15:04 -05:00
|
|
|
.else
|
1999-04-18 16:54:38 -04:00
|
|
|
.endif
|
1998-09-25 18:45:26 -04:00
|
|
|
|
2000-04-18 19:23:15 -04:00
|
|
|
SED_PLIST=|sed -e s/@GCCARCH@/`${GCC_NAME} -dumpmachine`/ \
|
|
|
|
-e s/@VERSION@/`${GCC_NAME} -dumpversion`/ \
|
|
|
|
-e 's/@COREPKG@/${DISTNAME}-core/'
|
1998-11-16 16:11:13 -05:00
|
|
|
|
1999-06-17 13:06:39 -04:00
|
|
|
GCC_NAME=${WRKBUILD}/gcc/xgcc
|
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
|
|
|
|