aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc45/Makefile
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-10-02 05:40:03 +0800
committerobrien <obrien@FreeBSD.org>1998-10-02 05:40:03 +0800
commit99c0567ad2d7ee800133786ca860dac8c4a01c7b (patch)
tree743df4c8431ccc93f2f5931de607a6e854684920 /lang/gcc45/Makefile
parent1eb68c4cc47f8c7d8a2d659558fbfacdfcb6b5ac (diff)
downloadfreebsd-ports-gnome-99c0567ad2d7ee800133786ca860dac8c4a01c7b.tar.gz
freebsd-ports-gnome-99c0567ad2d7ee800133786ca860dac8c4a01c7b.tar.zst
freebsd-ports-gnome-99c0567ad2d7ee800133786ca860dac8c4a01c7b.zip
Allow building and packaging for ELF.
Diffstat (limited to 'lang/gcc45/Makefile')
-rw-r--r--lang/gcc45/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index 042403edbbeb..1803f0d19ef9 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/Makefile
@@ -16,10 +16,14 @@ MASTER_SITES= ftp://egcs.cygnus.com/pub/egcs/snapshots/1998-09-14/ \
MAINTAINER= obrien@FreeBSD.org
-BROKEN= package
-
EGCS_REV= egcs-2.92.07
LIBSTDCPP_REV= 2.9.0
+ARE_WE_ELF!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
+.if ${ARE_WE_ELF} == "elf"
+GNUHOST= i386-unknown-freebsdelf
+.else
+GNUHOST= i386-unknown-freebsd
+.endif
PLIST_SUB= EGCS_REV=${EGCS_REV} GNU_HOST=${GNUHOST}
GNU_CONFIGURE= yes
USE_GMAKE= yes
@@ -69,9 +73,3 @@ post-install:
.endfor
.include <bsd.port.mk>
-
-.if (${PORTOBJFORMAT} == "elf")
-GNUHOST= i386-unknown-freebsdelf
-.else
-GNUHOST= i386-unknown-freebsd
-.endif