From 482756a7b62c9573b07035379bb78a4e2b0871b2 Mon Sep 17 00:00:00 2001 From: pvalchev Date: Tue, 12 Nov 2002 03:50:56 +0000 Subject: [PATCH] Add gcc3 module. OK espie naddy MODGCC3_ARCHES should be set to use this, as addition to MODULES=gcc3 MODGCC3_LANGS accepts C++ (C default) and adds proper dependencies, etc (more languages can be added later on eventually.) Those will start getting splattered around the tree as time goes now that the support is there (sparc64 & alpha can make use) --- infrastructure/mk/gcc3.port.mk | 1 + lang/egcs/stable/files/gcc3.port.mk | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 infrastructure/mk/gcc3.port.mk create mode 100644 lang/egcs/stable/files/gcc3.port.mk diff --git a/infrastructure/mk/gcc3.port.mk b/infrastructure/mk/gcc3.port.mk new file mode 100644 index 00000000000..3be5a0d319c --- /dev/null +++ b/infrastructure/mk/gcc3.port.mk @@ -0,0 +1 @@ +.include "${PORTSDIR}/lang/egcs/stable/files/gcc3.port.mk" diff --git a/lang/egcs/stable/files/gcc3.port.mk b/lang/egcs/stable/files/gcc3.port.mk new file mode 100644 index 00000000000..69cf33b290d --- /dev/null +++ b/lang/egcs/stable/files/gcc3.port.mk @@ -0,0 +1,28 @@ +# $OpenBSD: gcc3.port.mk,v 1.1 2002/11/12 03:50:56 pvalchev Exp $ + +MODGCC3_ARCHES?= +# Supported languages for now +_MODGCC3CC= c +_MODGCC3CXX= c++ +# Always include support for this +MODGCC3_LANGS+= ${_MODGCC3CC} + +.if ${MODGCC3_ARCHES:L} != "" +. for _i in ${MODGCC3_ARCHES} +. if !empty(MACHINE_ARCH:M${_i}) +BUILD_DEPENDS+= ::lang/egcs/stable +. for _j in ${MODGCC3_LANGS:L} +. if !empty(_MODGCC3CC:L:M${_j}) +MODGCC3_post-patch+= ln -s ${LOCALBASE}/bin/eg${_MODGCC3CC} ${WRKDIR}/bin/g${_MODGCC3CC}; +MODGCC3_post-patch+= ln -s ${LOCALBASE}/bin/eg${_MODGCC3CC} ${WRKDIR}/bin/${_MODGCC3CC}; +. endif +. if !empty(_MODGCC3CXX:L:M${_j}) +BUILD_DEPENDS+= ::lang/egcs/stable,-c++ +LIB_DEPENDS+= estdc++.5::lang/egcs/stable,-estdc +MODGCC3_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC3CXX} ${WRKDIR}/bin/g++; +MODGCC3_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC3CXX} ${WRKDIR}/bin/${_MODGCC3CXX}; +. endif +. endfor +. endif +. endfor +.endif