2004-03-16 19:23:26 +01:00
|
|
|
# $NetBSD: buildlink3.mk,v 1.6 2004/03/16 18:23:27 jlam Exp $
|
2004-02-01 15:05:46 +01:00
|
|
|
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
|
|
GCC3C_BUILDLINK3_MK:= ${GCC3C_BUILDLINK3_MK}+
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-02-05 04:45:13 +01:00
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
|
|
BUILDLINK_DEPENDS+= gcc3c
|
|
|
|
.endif
|
|
|
|
|
2004-03-05 20:25:06 +01:00
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngcc3c}
|
|
|
|
BUILDLINK_PACKAGES+= gcc3c
|
|
|
|
|
2004-02-01 15:05:46 +01:00
|
|
|
.if !empty(GCC3C_BUILDLINK3_MK:M+)
|
|
|
|
. if defined(GCC3_INSTALLTO_SUBPREFIX)
|
2004-02-05 21:58:41 +01:00
|
|
|
#
|
|
|
|
# "gcc3" is the directory named in pkgsrc/lang/gcc3-c/Makefile.common"
|
|
|
|
# as GCC3_DEFAULT_SUBPREFIX.
|
|
|
|
#
|
|
|
|
. if ${GCC3_INSTALLTO_SUBPREFIX} != "gcc3"
|
2004-03-05 20:25:06 +01:00
|
|
|
GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
|
2004-02-05 21:58:41 +01:00
|
|
|
. endif
|
2004-02-01 15:05:46 +01:00
|
|
|
. endif
|
2004-03-16 19:23:26 +01:00
|
|
|
BUILDLINK_PKGBASE.gcc3c?= gcc3${GCC3_PKGMODIF}-c
|
2004-02-01 15:05:46 +01:00
|
|
|
BUILDLINK_DEPENDS.gcc3c+= gcc3${GCC3_PKGMODIF}-c>=${_GCC_REQD}
|
|
|
|
BUILDLINK_PKGSRCDIR.gcc3c?= ../../lang/gcc3-c
|
2004-02-05 01:28:35 +01:00
|
|
|
BUILDLINK_LIBDIRS.gcc3c?= \
|
|
|
|
lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc3c}\///}
|
2004-02-01 15:05:46 +01:00
|
|
|
|
|
|
|
# Packages that link against shared libraries need a full dependency.
|
2004-03-05 20:25:06 +01:00
|
|
|
.if defined(USE_GCC_SHLIB)
|
2004-02-01 15:05:46 +01:00
|
|
|
BUILDLINK_DEPMETHOD.gcc3c+= full
|
2004-03-05 20:25:06 +01:00
|
|
|
.else
|
2004-02-01 15:05:46 +01:00
|
|
|
BUILDLINK_DEPMETHOD.gcc3c?= build
|
2004-03-05 20:25:06 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-01 15:05:46 +01:00
|
|
|
.endif # GCC3C_BUILDLINK3_MK
|
|
|
|
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|