summaryrefslogtreecommitdiff
path: root/lang/gcc
diff options
context:
space:
mode:
authortron <tron>2002-01-03 21:39:54 +0000
committertron <tron>2002-01-03 21:39:54 +0000
commita74eb26021c9542ff284610ccaae1949ec9f8311 (patch)
tree18440da3e3bb2b9b162bee1108cff5e87935ed55 /lang/gcc
parent3e35935f51f3251dbef1955d7011983a08e085b9 (diff)
downloadpkgsrc-a74eb26021c9542ff284610ccaae1949ec9f8311.tar.gz
Provide a "Makefile.gcc" which can be used by other packages which need
this "gcc" version for building.
Diffstat (limited to 'lang/gcc')
-rw-r--r--lang/gcc/Makefile3
-rw-r--r--lang/gcc/Makefile.gcc15
2 files changed, 17 insertions, 1 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index 133e9c2b821..c1dd92298c2 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.31 2002/01/03 20:40:39 tron Exp $
+# $NetBSD: Makefile,v 1.32 2002/01/03 21:39:54 tron Exp $
+# Make sure that the version number in "Makefile.gcc" matches this.
DISTNAME= gcc-2.95.3
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/}
diff --git a/lang/gcc/Makefile.gcc b/lang/gcc/Makefile.gcc
new file mode 100644
index 00000000000..1595560220e
--- /dev/null
+++ b/lang/gcc/Makefile.gcc
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile.gcc,v 1.1 2002/01/03 21:39:55 tron Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEPENDS+= gcc>=2.95.3:../../lang/gcc
+
+.if (${OPSYS} == SunOS)
+CC= ${LOCALBASE}/bin/gcc
+CPP= ${LOCALBASE}/bin/cpp
+CXX= ${LOCALBASE}/bin/g++
+.else
+CC= ${LOCALBASE}/gcc-2.95.3/bin/cc
+CPP= ${LOCALBASE}/gcc-2.95.3/bin/cpp
+CXX= ${LOCALBASE}/gcc-2.95.3/bin/c++
+.endif