pkgsrc/lang/gcc34/buildlink3.mk

46 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: buildlink3.mk,v 1.18 2011/04/22 13:41:55 obache Exp $
2004-06-29 20:01:24 +02:00
BUILDLINK_PREFIX.gcc34:=${LOCALBASE}/gcc34
BUILDLINK_TREE+= gcc34
2004-06-29 20:01:24 +02:00
.if !defined(GCC34_BUILDLINK3_MK)
GCC34_BUILDLINK3_MK:=
2004-06-29 20:01:24 +02:00
BUILDLINK_API_DEPENDS.gcc34+= gcc34>=${_GCC_REQD}
BUILDLINK_ABI_DEPENDS.gcc34?= gcc34>=3.4.6nb4
2004-06-29 20:01:24 +02:00
BUILDLINK_PKGSRCDIR.gcc34?= ../../lang/gcc34
. 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
. if exists(${_GNAT1})
2004-06-29 20:01:24 +02:00
BUILDLINK_ENV+= ADAC=${BUILDLINK_PREFIX.gcc34}/bin/gcc
. endif
BUILDLINK_LIBDIRS.gcc34+= lib
2004-06-29 20:01:24 +02:00
_GCC_ARCHDIR!= ${DIRNAME} `${BUILDLINK_PREFIX.gcc34}/bin/gcc --print-libgcc-file-name`
. if empty(_GCC_ARCHDIR:M*not_found*)
BUILDLINK_LIBDIRS.gcc34+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/
. if exists(${_GNAT1})
2004-06-29 20:01:24 +02:00
BUILDLINK_LIBDIRS.gcc34+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/adalib
. endif
2004-06-29 20:01:24 +02:00
BUILDLINK_INCDIRS.gcc34+= include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/include
. endif
2004-06-29 20:01:24 +02:00
. endif
BUILDLINK_FILES_CMD.gcc34= \
(cd ${BUILDLINK_PREFIX.gcc34} && \
${FIND} bin libexec lib \( -type f -o -type l \) -print)
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.
. if defined(_USE_GCC_SHLIB)
BUILDLINK_DEPMETHOD.gcc34+= full
. else
BUILDLINK_DEPMETHOD.gcc34?= build
. endif
2004-06-29 20:01:24 +02:00
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.endif # GCC34_BUILDLINK3_MK
2004-06-29 20:01:24 +02:00
BUILDLINK_TREE+= -gcc34