2009-03-20 20:23:50 +01:00
|
|
|
# $NetBSD: buildlink3.mk,v 1.18 2009/03/20 19:24:49 joerg Exp $
|
2004-02-01 15:05:46 +01:00
|
|
|
|
2006-12-12 22:52:34 +01:00
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
2004-02-01 15:05:46 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= gcc3-c
|
2004-02-05 04:45:13 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
.if !defined(GCC3_C_BUILDLINK3_MK)
|
|
|
|
GCC3_C_BUILDLINK3_MK:=
|
2004-03-05 20:25:06 +01:00
|
|
|
|
2007-02-15 15:35:13 +01:00
|
|
|
. include "../../mk/bsd.prefs.mk"
|
2004-02-01 15:05:46 +01:00
|
|
|
. 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
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.gcc3-c+= gcc3${GCC3_PKGMODIF}-c>=${_GCC_REQD}
|
2007-02-15 15:35:13 +01:00
|
|
|
BUILDLINK_ABI_DEPENDS.gcc3-c+= gcc3-c>=3.3.5nb1
|
2004-03-18 05:19:39 +01:00
|
|
|
BUILDLINK_PKGSRCDIR.gcc3-c?= ../../lang/gcc3-c
|
2004-08-13 20:30:29 +02:00
|
|
|
BUILDLINK_GCC3_LIBDIRS= lib
|
|
|
|
. if defined(GCC3_INSTALLTO_SUBPREFIX)
|
|
|
|
BUILDLINK_GCC3_LIBDIRS+= ${GCC3_INSTALLTO_SUBPREFIX}/lib
|
|
|
|
. else
|
|
|
|
BUILDLINK_GCC3_LIBDIRS+= gcc3/lib
|
|
|
|
. endif
|
|
|
|
BUILDLINK_GCC3_LIBDIRS+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc3-c}\///}
|
2007-02-15 15:35:13 +01:00
|
|
|
BUILDLINK_LIBDIRS.gcc3-c+= ${BUILDLINK_GCC3_LIBDIRS}
|
2004-02-01 15:05:46 +01:00
|
|
|
|
|
|
|
# Packages that link against shared libraries need a full dependency.
|
2004-11-22 23:24:46 +01:00
|
|
|
. if defined(_USE_GCC_SHLIB)
|
2004-03-18 05:19:39 +01:00
|
|
|
BUILDLINK_DEPMETHOD.gcc3-c+= full
|
2004-03-18 10:12:08 +01:00
|
|
|
. else
|
2004-03-18 05:19:39 +01:00
|
|
|
BUILDLINK_DEPMETHOD.gcc3-c?= build
|
2004-03-18 10:12:08 +01:00
|
|
|
. endif
|
2009-03-20 20:23:50 +01:00
|
|
|
.endif # GCC3_C_BUILDLINK3_MK
|
2004-02-01 15:05:46 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= -gcc3-c
|