File:
[cvs.NetBSD.org] /
pkgsrc /
lang /
gcc44 /
Attic /
buildlink3.mk
Revision
1.12:
download - view:
text,
annotated -
select for diffs
Sun Nov 3 19:03:58 2019 UTC (5 years ago) by
rillig
Branches:
MAIN
CVS tags:
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2,
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
pkgsrc-2020Q2-base,
pkgsrc-2020Q2,
pkgsrc-2020Q1-base,
pkgsrc-2020Q1,
pkgsrc-2019Q4-base,
pkgsrc-2019Q4,
HEAD
lang: align variable assignments
pkglint -Wall -F --only aligned --only indent -r
No manual corrections.
# $NetBSD: buildlink3.mk,v 1.12 2019/11/03 19:03:58 rillig Exp $
BUILDLINK_TREE+= gcc44
.if !defined(GCC44_BUILDLINK3_MK)
GCC44_BUILDLINK3_MK:=
_GCC44_SUBDIR= gcc44
_GCC44_PREFIX= ${BUILDLINK_PREFIX.gcc44}/${_GCC44_SUBDIR}
BUILDLINK_API_DEPENDS.gcc44+= gcc44>=4.4
BUILDLINK_ABI_DEPENDS.gcc44+= gcc44>=4.4.5nb2
BUILDLINK_PKGSRCDIR.gcc44?= ../../lang/gcc44
.if exists(${_GCC44_PREFIX}/bin/gcc)
# logic for detecting the ADA compiler (not yet supported)
#gcc44_GNAT1!= ${_GCC44_PREFIX}/bin/gcc -print-prog-name=gnat1
#. if exists(${gcc44_GNAT1})
#CONFIGURE_ENV+= ADAC=${_GCC44_PREFIX}/bin/gcc
#MAKE_ENV+= ADAC=${_GCC44_PREFIX}/bin/gcc
#. endif
# add libraries
BUILDLINK_LIBDIRS.gcc44+= ${_GCC44_SUBDIR}/lib
# find the gcc architecture
gcc44_GCC_ARCHDIR!= ${DIRNAME} `${_GCC44_PREFIX}/bin/gcc --print-libgcc-file-name`
# add the architecture dep libraries
. if empty(gcc44_GCC_ARCHDIR:M*not_found*)
BUILDLINK_LIBDIRS.gcc44+= ${gcc44_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc44}\///}/
# add the ada libraries (not yet supported)
#. if exists(${gcc44_GNAT1})
#BUILDLINK_LIBDIRS.gcc44+= ${gcc44_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc44}\///}/adalib
#. endif
# add the header files
BUILDLINK_INCDIRS.gcc44+= ${_GCC44_SUBDIR}/include ${gcc44_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc44}\///}/include
. endif
.endif
BUILDLINK_FILES_CMD.gcc44= \
(cd ${BUILDLINK_PREFIX.gcc44} && \
${FIND} ${_GCC44_SUBDIR}/bin ${_GCC44_SUBDIR}/include ${_GCC44_SUBDIR}/libexec ${_GCC44_SUBDIR}/lib \( -type f -o -type l \) -print)
# When not using the GNU linker, gcc will always link shared libraries
# against the shared version of libgcc. Always enable _USE_GCC_SHILB on
# platforms that don't use the GNU linker, such as SunOS.
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} == "SunOS"
_USE_GCC_SHLIB= yes
.endif
# Packages that link against shared libraries need a full dependency.
.if defined(_USE_GCC_SHLIB)
BUILDLINK_DEPMETHOD.gcc44+= full
.else
BUILDLINK_DEPMETHOD.gcc44?= build
.endif
.include "../../mk/pthread.buildlink3.mk"
pkgbase := gcc44
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.gcc44:Mnls)
.include "../../devel/gettext-lib/buildlink3.mk"
.endif
.endif # GCC44_BUILDLINK3_MK
BUILDLINK_TREE+= -gcc44
CVSweb <webmaster@jp.NetBSD.org>