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)
This commit is contained in:
pvalchev 2002-11-12 03:50:56 +00:00
parent 36610c2910
commit 482756a7b6
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
.include "${PORTSDIR}/lang/egcs/stable/files/gcc3.port.mk"

View File

@ -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