summaryrefslogtreecommitdiff
path: root/lang/glibstdc++28/Makefile
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1998-11-11 05:37:39 +0000
committerSatoshi Asami <asami@FreeBSD.org>1998-11-11 05:37:39 +0000
commitdbc8aa6cc1cb1abadce30cfe133c7a5c2ed2f34b (patch)
treedeebef625a152490a0bbcb7e5602d05a59b1c010 /lang/glibstdc++28/Makefile
parentMake bsd.port.mk includable in two phases. bsd.port.pre.mk defines only (diff)
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.)
Notes
Notes: svn path=/head/; revision=14465
Diffstat (limited to '')
-rw-r--r--lang/glibstdc++28/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/lang/glibstdc++28/Makefile b/lang/glibstdc++28/Makefile
index 684ab0f0ee09..44f36d31a778 100644
--- a/lang/glibstdc++28/Makefile
+++ b/lang/glibstdc++28/Makefile
@@ -4,7 +4,7 @@
# Date created: 03 Mar 1998
# Whom: David O'Brien <obrien@NUXI.com>
#
-# $Id: Makefile,v 1.11 1998/10/12 15:04:35 jseger Exp $
+# $Id: Makefile,v 1.12 1998/11/10 16:33:07 obrien Exp $
#
DISTNAME= libstdc++-2.8.1.1
@@ -19,10 +19,11 @@ BUILD_DEPENDS= gcc28:${PORTSDIR}/lang/gcc28 \
RUN_DEPENDS= gcc28:${PORTSDIR}/lang/gcc28 \
g++28:${PORTSDIR}/lang/gcc28
+.include <bsd.port.pre.mk>
+
CC= gcc28
CXX= g++28
-ARE_WE_ELF!= text -x /usr/bin/objformat && /usr/bin/objformat || echo aout
-.if ${ARE_WE_ELF} == "elf"
+.if ${PORTOBJFORMAT} == "elf"
GNUHOST= i386-unknown-freebsdelf${OSREL}
.else
GNUHOST= i386-unknown-freebsd${OSREL}
@@ -49,4 +50,4 @@ post-install:
${INSTALL_DATA} ${FILESDIR}/osfcn.h \
${PREFIX}/${GCC28DIR}/include/g++
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>