2008-07-28 11:48:48 +02:00
|
|
|
# $NetBSD: buildlink3.mk,v 1.16 2008/07/28 09:48:48 obache Exp $
|
2004-06-29 20:01:24 +02:00
|
|
|
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
|
|
GCC34_BUILDLINK3_MK:= ${GCC34_BUILDLINK3_MK}+
|
|
|
|
BUILDLINK_PREFIX.gcc34:=${LOCALBASE}/gcc34
|
|
|
|
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
|
|
BUILDLINK_DEPENDS+= gcc34
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngcc34}
|
|
|
|
BUILDLINK_PACKAGES+= gcc34
|
2006-07-09 01:10:35 +02:00
|
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}gcc34
|
2004-06-29 20:01:24 +02:00
|
|
|
|
|
|
|
.if !empty(GCC34_BUILDLINK3_MK:M+)
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.gcc34+= gcc34>=${_GCC_REQD}
|
|
|
|
BUILDLINK_ABI_DEPENDS.gcc34?= gcc34>=3.4.5nb1
|
2004-06-29 20:01:24 +02:00
|
|
|
BUILDLINK_PKGSRCDIR.gcc34?= ../../lang/gcc34
|
2004-07-01 10:18:07 +02:00
|
|
|
. if exists(${BUILDLINK_PREFIX.gcc34}/bin/gcc)
|
2004-06-29 20:01:24 +02:00
|
|
|
_GNAT1!=${BUILDLINK_PREFIX.gcc34}/bin/gcc -print-prog-name=gnat1
|
2004-07-01 10:18:07 +02:00
|
|
|
. if exists(${_GNAT1})
|
2004-06-29 20:01:24 +02:00
|
|
|
BUILDLINK_ENV+= ADAC=${BUILDLINK_PREFIX.gcc34}/bin/gcc
|
2004-07-01 10:18:07 +02:00
|
|
|
. endif
|
2004-11-08 17:44:34 +01:00
|
|
|
BUILDLINK_LIBDIRS.gcc34+= lib
|
2004-06-29 20:01:24 +02:00
|
|
|
_GCC_ARCHDIR!= ${DIRNAME} `${BUILDLINK_PREFIX.gcc34}/bin/gcc --print-libgcc-file-name`
|
2004-07-01 10:18:07 +02:00
|
|
|
. if empty(_GCC_ARCHDIR:M*not_found*)
|
2004-11-08 17:44:34 +01:00
|
|
|
BUILDLINK_LIBDIRS.gcc34+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/
|
2004-07-01 10:18:07 +02:00
|
|
|
. if exists(${_GNAT1})
|
2004-06-29 20:01:24 +02:00
|
|
|
BUILDLINK_LIBDIRS.gcc34+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/adalib
|
2004-07-01 10:18:07 +02:00
|
|
|
. endif
|
2004-06-29 20:01:24 +02:00
|
|
|
BUILDLINK_INCDIRS.gcc34+= include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/include
|
2004-07-01 10:18:07 +02:00
|
|
|
. endif
|
2004-06-29 20:01:24 +02:00
|
|
|
. endif
|
|
|
|
.endif # GCC34_BUILDLINK3_MK
|
|
|
|
|
|
|
|
BUILDLINK_FILES_CMD.gcc34= \
|
|
|
|
(cd ${BUILDLINK_PREFIX.gcc34} && \
|
2004-10-29 16:57:03 +02:00
|
|
|
${FIND} bin libexec lib \( -type f -o -type l \) -print)
|
2007-01-17 04:11:18 +01:00
|
|
|
BUILDLINK_FNAME_TRANSFORM.gcc34= -e s:\buildlink:buildlink/gcc34:
|
2004-06-29 20:01:24 +02:00
|
|
|
|
|
|
|
# Packages that link against shared libraries need a full dependency.
|
2004-11-22 23:24:46 +01:00
|
|
|
. if defined(_USE_GCC_SHLIB)
|
2008-07-28 11:48:48 +02:00
|
|
|
BUILDLINK_DEPMETHOD.gcc34+= full
|
2004-10-30 12:35:34 +02:00
|
|
|
. else
|
2008-07-28 11:48:48 +02:00
|
|
|
BUILDLINK_DEPMETHOD.gcc34?= build
|
2004-10-30 12:35:34 +02:00
|
|
|
. endif
|
|
|
|
|
2004-06-29 20:01:24 +02:00
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2004-07-28 09:37:19 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2004-06-29 20:01:24 +02:00
|
|
|
|
2006-04-12 12:26:59 +02:00
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|