head 1.3; access; symbols pkgsrc-2023Q4:1.3.0.6 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.4 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.2 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.2.0.28 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.26 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.24 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.22 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.20 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.18 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.16 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.14 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.12 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.10 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.8 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.6 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.2 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.4 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.1.0.26 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.24 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.22 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.20 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.18 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.16 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.14 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.12 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.10 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.6 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.4 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.2 pkgsrc-2016Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2023.06.06.12.41.42; author riastradh; state Exp; branches; next 1.2; commitid xhspr6Z8JLQOWSrE; 1.2 date 2019.11.03.19.04.00; author rillig; state Exp; branches; next 1.1; commitid puQpdVbj8afCdrJB; 1.1 date 2016.12.13.01.19.20; author marino; state Exp; branches; next ; commitid 7fxwqLh0iwjXeLxz; desc @@ 1.3 log @Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/. Almost all uses, if not all of them, are wrong, according to the semantics of BUILD_DEPENDS (packages built for target available for use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for host available for use _as_ tools at build-time). No change to BUILD_DEPENDS as used correctly inside buildlink3. As proposed on tech-pkg: https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html @ text @# $NetBSD: options.mk,v 1.2 2019/11/03 19:04:00 rillig Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.gcc6-aux PKG_SUPPORTED_OPTIONS= fortran objc testsuite static bootstrap allstages PKG_SUGGESTED_OPTIONS= # fortran # fortran fails to build transfer.c, disable .include "../../mk/bsd.options.mk" # Bootstrap is essentially a maintainer option and it will ignore # all other options because it is intent on building a bootstrap compiler. ############################# ## ADD LANGUAGE: Fortran ## ############################# .if empty(PKG_OPTIONS:Mfortran) || !empty(PKG_OPTIONS:Mbootstrap) EXTRA_CONFARGS+= --disable-libquadmath .else LANGS+= fortran APPLY_DIFFS+= fortran . if ${OPSYS} == NetBSD EXTRA_CONFARGS+= --disable-libquadmath . else EXTRA_CONFARGS+= --enable-libquadmath . endif .endif ################################# ## ADD LANGUAGE: Objective-C ## ################################# .if !empty(PKG_OPTIONS:Mobjc) && empty(PKG_OPTIONS:Mbootstrap) LANGS+= objc .endif ######################### ## TESTSUITE SUPPORT ## ######################### .if !empty(PKG_OPTIONS:Mtestsuite) && empty(PKG_OPTIONS:Mbootstrap) TOOL_DEPENDS+= dejagnu>=1.4:../../devel/dejagnu APPLY_DIFFS+= ada-testsuite APPLY_DIFFS+= gcc-testsuite .endif ############################### ## STATICALLY BUILT OPTION ## ############################### .if !empty(PKG_OPTIONS:Mstatic) STATIC_BUILD = yes .endif .if defined(STATIC_BUILD) && empty(PKG_OPTIONS:Mbootstrap) . if ${OPSYS} == SunOS PKG_FAIL_REASON+= SunOS does not support static builds . else EXTRA_CONFARGS+= --with-stage1-ldflags=-static . endif .endif ################################# ## BOOTSTRAP COMPILER OPTION ## ################################# # Solaris does not support static linking system libraries, so bootstraps # on SunOS require gmp&co to be built with gcc. Also, OpenBSD x86-64 # fails configuration during the linking of -lmpc -lmpfr -lgmp in a contest; # it complains of missing references in libm. These libraries are built by # a different compiler (the base) so perhaps that's the problem. Building # gmp&co in the tree allows the configure step to succeed on OpenBSD. .if ${OPSYS} == OpenBSD || ${OPSYS} == MirBSD || \ (${OPSYS} == SunOS && !empty(PKG_OPTIONS:Mbootstrap)) .include "../../devel/gmp/inplace.mk" .include "../../math/mpcomplex/inplace.mk" .include "../../math/mpfr/inplace.mk" .else EXTRA_CONFARGS+= --with-gmp=${BUILDLINK_PREFIX.gmp} EXTRA_CONFARGS+= --with-mpfr=${BUILDLINK_PREFIX.mpfr} EXTRA_CONFARGS+= --with-mpc=${BUILDLINK_PREFIX.mpcomplex} .include "../../devel/gmp/buildlink3.mk" .include "../../math/mpfr/buildlink3.mk" .include "../../math/mpcomplex/buildlink3.mk" .endif .if !empty(PKG_OPTIONS:Mbootstrap) EXTRA_CONFARGS+= --disable-shared --disable-lto EXTRA_CONFARGS+= --disable-libstdcxx-pch . if ${OPSYS} != SunOS EXTRA_CONFARGS+= --with-stage1-ldflags=-static EXTRA_CONFARGS+= --with-boot-ldflags=-static EXTRA_CONFARGS+= --with-system-zlib . endif .else . if empty(PKG_OPTIONS:Mallstages) EXTRA_CONFARGS+= --disable-bootstrap EXTRA_CONFARGS+= --disable-libcc1 . endif EXTRA_CONFARGS+= --enable-shared .endif @ 1.2 log @lang: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.1 2016/12/13 01:19:20 marino Exp $ d47 1 a47 1 BUILD_DEPENDS+= dejagnu>=1.4:../../devel/dejagnu @ 1.1 log @Add lang/gcc6-aux to pkgsrc I had intended to migrate the ada framework to use gcc6-aux instead of lang/gcc5-aux, but unfortunately there's been a regression on NetBSD. It builds and tests perfectly on DragonFly and FreeBSD, but it only builds on NetBSD. All the ACAT tests that involve tasking fail, but the cause is unclear. All the modifications used on gcc5-aux for NetBSD are present in gcc6-aux but pthread destruction results in a segfault. Since then gcc5-aux support has been improved, so I'm putting this away for a while. NetBSD has been removed from the platform support list for now, but I'll review any patches I get to fix NetBSD tasking. This compiler is based on gcc 6.2 and is primarily used for the Ada frontend. @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.4 2016/11/26 16:12:18 marino Exp $ d4 2 a5 2 PKG_SUPPORTED_OPTIONS= fortran objc testsuite static bootstrap allstages PKG_SUGGESTED_OPTIONS= # fortran d21 1 a21 1 EXTRA_CONFARGS+= --disable-libquadmath d23 7 a29 7 LANGS+= fortran APPLY_DIFFS+= fortran .if ${OPSYS} == NetBSD EXTRA_CONFARGS+= --disable-libquadmath .else EXTRA_CONFARGS+= --enable-libquadmath .endif d38 1 a38 1 LANGS+= objc d47 3 a49 3 BUILD_DEPENDS+= dejagnu>=1.4:../../devel/dejagnu APPLY_DIFFS+= ada-testsuite APPLY_DIFFS+= gcc-testsuite d58 1 a58 1 STATIC_BUILD = yes d63 1 a63 1 PKG_FAIL_REASON+= SunOS does not support static builds d65 1 a65 1 EXTRA_CONFARGS+= --with-stage1-ldflags=-static d96 2 a97 2 EXTRA_CONFARGS+= --disable-shared --disable-lto EXTRA_CONFARGS+= --disable-libstdcxx-pch d99 3 a101 3 EXTRA_CONFARGS+= --with-stage1-ldflags=-static EXTRA_CONFARGS+= --with-boot-ldflags=-static EXTRA_CONFARGS+= --with-system-zlib d105 2 a106 2 EXTRA_CONFARGS+= --disable-bootstrap EXTRA_CONFARGS+= --disable-libcc1 d108 1 a108 1 EXTRA_CONFARGS+= --enable-shared @