diff options
Diffstat (limited to '')
-rw-r--r-- | lang/gcc28/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lang/gcc28/Makefile b/lang/gcc28/Makefile index 13d635bb6784..b75eae1d973c 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> |