summaryrefslogtreecommitdiffstats
path: root/lang/gcc28/Makefile
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1998-11-11 05:37:39 +0000
committerasami <asami@FreeBSD.org>1998-11-11 05:37:39 +0000
commit559e1bc28bd975c38b561de15be3918ba1f71b5e (patch)
treecda169bf1e41b7166c2d2febd3d858c1411d0e64 /lang/gcc28/Makefile
parent7aed28166a84f266be861367fc9a1add43f9219a (diff)
downloadFreeBSD-ports-559e1bc28bd975c38b561de15be3918ba1f71b5e.zip
FreeBSD-ports-559e1bc28bd975c38b561de15be3918ba1f71b5e.tar.gz
Use bsd.port.{pre,post}.mk. Either use them to avoid having to define
something already there (PORTOBJFORMAT, OSVERSION) or move stuff from after .include <bsd.port.mk> to before. (This is not by any means the complete list but just the ones I've noticed recently.)
Diffstat (limited to 'lang/gcc28/Makefile')
-rw-r--r--lang/gcc28/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/lang/gcc28/Makefile b/lang/gcc28/Makefile
index 13d635b..b75eae1 100644
--- a/lang/gcc28/Makefile
+++ b/lang/gcc28/Makefile
@@ -4,7 +4,7 @@
# Date created: 17 Jan 1998
# Whom: David O'Brien <obrien@NUXI.com>
#
-# $Id: Makefile,v 1.16 1998/10/08 01:19:19 asami Exp $
+# $Id: Makefile,v 1.17 1998/11/10 07:33:33 obrien Exp $
#
DISTNAME= gcc-2.8.1
@@ -13,8 +13,9 @@ MASTER_SITES= ${MASTER_SITE_GNU}
MAINTAINER= obrien@FreeBSD.org
-ARE_WE_ELF!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
-.if ${ARE_WE_ELF} == "elf"
+.include <bsd.port.pre.mk>
+
+.if ${PORTOBJFORMAT} == "elf"
GNUHOST= i386-unknown-freebsdelf${OSREL}
.else
GNUHOST= i386-unknown-freebsd${OSREL}
@@ -22,7 +23,7 @@ GNUHOST= i386-unknown-freebsd${OSREL}
PLIST_SUB= GNUHOST=${GNUHOST}
CONFIGURE_ARGS= --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/include/g++
-.if ${ARE_WE_ELF} == "elf"
+.if ${PORTOBJFORMAT} == "elf"
CONFIGURE_ARGS+= --host=${GNUHOST}
.endif
GNU_CONFIGURE= yes
@@ -31,7 +32,7 @@ ALL_TARGET= bootstrap
MAN1= cccp28.1 g++28.1 gcc28.1
pre-fetch:
- @${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${ARE_WE_ELF}"
+ @${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT}"
pre-configure:
@(cd ${WRKSRC}/config/i386/ ; \
@@ -60,4 +61,4 @@ post-install:
@${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++28.1
@${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc28.1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud