2012-04-23 10:06:42 -04:00
|
|
|
# $OpenBSD: gcc3.port.mk,v 1.9 2012/04/23 14:06:42 pascal Exp $
|
2005-02-15 04:28:58 -05:00
|
|
|
|
2011-11-17 13:03:43 -05:00
|
|
|
MODGCC3_ARCHS?=
|
2005-02-15 04:28:58 -05:00
|
|
|
# Supported languages for now
|
|
|
|
_MODGCC3CC= cc
|
|
|
|
_MODGCC3CXX= c++
|
|
|
|
_MODGCC3G77= g77
|
|
|
|
# Always include support for this
|
|
|
|
MODGCC3_LANGS+= ${_MODGCC3CC}
|
|
|
|
|
2011-11-17 13:03:43 -05:00
|
|
|
.if ${MODGCC3_ARCHS:L} != ""
|
|
|
|
. for _i in ${MODGCC3_ARCHS}
|
2005-02-15 04:28:58 -05:00
|
|
|
. if !empty(MACHINE_ARCH:M${_i})
|
2011-03-26 15:13:28 -04:00
|
|
|
BUILD_DEPENDS+= gcc->=3.3,<3.4|gcc->=3.3v0,<3.4v0:lang/gcc/3.3
|
2005-02-15 04:28:58 -05:00
|
|
|
. 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})
|
2011-03-26 15:13:28 -04:00
|
|
|
BUILD_DEPENDS+= g++->=3.3,<3.4|g++->=3.3v0,<3.4v0:lang/gcc/3.3,-c++
|
2011-01-14 20:07:45 -05:00
|
|
|
LIB_DEPENDS+= libstdc++->=3.3,<3.4|libstdc++->=3.3v0,<3.4v0:lang/gcc/3.3,-estdc
|
2012-04-23 10:06:42 -04:00
|
|
|
WANTLIB += estdc++=7
|
2005-02-15 04:28:58 -05:00
|
|
|
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
|
|
|
|
. if !empty(_MODGCC3G77:L:M${_j})
|
2011-03-26 15:13:28 -04:00
|
|
|
BUILD_DEPENDS+= g77->=3.3,<3.4|g77->=3.3v0,<3.4v0:lang/gcc/3.3,-g77
|
2005-02-15 04:28:58 -05:00
|
|
|
MODGCC3_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC3G77} ${WRKDIR}/bin/f77;
|
|
|
|
MODGCC3_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC3G77} ${WRKDIR}/bin/${_MODGCC3G77};
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
.endif
|