head 1.9; access; symbols pkgsrc-2023Q4:1.8.0.8 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.6 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.4 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.2 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.7.0.20 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.18 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.16 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.14 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.12 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.10 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.8 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.6 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.4 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.2 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.5.0.6 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.2 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.4 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.4.0.4 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.2 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.3.0.64 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.62 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.60 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.58 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.56 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.54 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.52 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.48 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.46 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.44 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.42 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.40 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.38 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.36 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.34 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.32 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.30 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.28 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.26 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.24 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.22 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.20 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.18 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.16 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.14 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.12 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.10 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.8 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.6 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.4 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.2 pkgsrc-2011Q3-base:1.3; locks; strict; comment @# @; 1.9 date 2024.01.13.20.07.33; author riastradh; state Exp; branches; next 1.8; commitid tXCKNfIoMbcmkkUE; 1.8 date 2023.01.09.13.25.11; author wiz; state Exp; branches; next 1.7; commitid yDkH0lPUheaHXR8E; 1.7 date 2020.09.03.08.58.42; author prlw1; state Exp; branches; next 1.6; commitid jPaagPi568cG3AmC; 1.6 date 2020.08.24.08.20.14; author wiz; state Exp; branches; next 1.5; commitid roVPaeurbR7WailC; 1.5 date 2019.11.02.16.16.20; author rillig; state Exp; branches; next 1.4; commitid 8i1eJQVJcj8NjiJB; 1.4 date 2019.05.31.08.36.12; author dholland; state Exp; branches; next 1.3; commitid zwTlQRhgBXiRKkpB; 1.3 date 2011.09.14.17.18.29; author hans; state Exp; branches; next 1.2; 1.2 date 2011.07.14.18.06.59; author drochner; state Exp; branches; next 1.1; 1.1 date 2011.07.08.09.40.57; author drochner; state Exp; branches; next ; desc @@ 1.9 log @*/builtin.mk: Use ${_CROSS_DESTDIR:U} for build-time file checks. These are questions about the target system, whose files at build-time are all relative to ${_CROSS_DESTDIR} if it is defined, i.e., if USE_CROSS_COMPILE is set to yes. No change to native builds because ${_CROSS_DESTDIR:U} is empty in them. (Possible minor change by adding :Q to ${H_FOO} in command lines, but if this makes a difference it likely fixes problems.) @ text @# $NetBSD: builtin.mk,v 1.8 2023/01/09 13:25:11 wiz Exp $ BUILTIN_PKG:= mpfr BUILTIN_FIND_HEADERS_VAR:= H_MPFR BUILTIN_FIND_HEADERS.H_MPFR= mpfr.h mpfr/mpfr.h BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \ '/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \ v = substr($$3, 2, length($$3)-2) } \ END { gsub("-p",".",v); print v }' .include "../../mk/buildlink3/bsd.builtin.mk" ### ### Determine if there is a built-in implementation of the package and ### set IS_BUILTIN. appropriately ("yes" or "no"). ### .if !defined(IS_BUILTIN.mpfr) IS_BUILTIN.mpfr= no . if empty(H_MPFR:M__nonexistent__) && empty(H_MPFR:M${LOCALBASE}/*) IS_BUILTIN.mpfr= yes . endif .endif MAKEVARS+= IS_BUILTIN.mpfr ### ### If there is a built-in implementation, then set BUILTIN_PKG. to ### a package name to represent the built-in package. ### .if !defined(BUILTIN_PKG.mpfr) && \ ${IS_BUILTIN.mpfr:tl} == yes && \ empty(H_MPFR:M__nonexistent__) BUILTIN_VERSION.mpfr!= \ ${BUILTIN_VERSION_SCRIPT.mpfr} ${_CROSS_DESTDIR:U:Q}${H_MPFR:Q} BUILTIN_PKG.mpfr= mpfr-${BUILTIN_VERSION.mpfr} .endif MAKEVARS+= BUILTIN_PKG.mpfr ### ### Determine whether we should use the built-in implementation if it ### exists, and set USE_BUILTIN. appropriate ("yes" or "no"). ### .if !defined(USE_BUILTIN.mpfr) . if ${PREFER.mpfr} == "pkgsrc" USE_BUILTIN.mpfr= no . else USE_BUILTIN.mpfr= ${IS_BUILTIN.mpfr} . if defined(BUILTIN_PKG.mpfr) && ${IS_BUILTIN.mpfr:tl} == yes USE_BUILTIN.mpfr= yes . for _dep_ in ${BUILDLINK_API_DEPENDS.mpfr} . if ${USE_BUILTIN.mpfr:tl} == yes USE_BUILTIN.mpfr!= \ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mpfr:Q}; then \ ${ECHO} yes; \ else \ ${ECHO} no; \ fi . endif . endfor . endif . endif # PREFER.mpfr .endif MAKEVARS+= USE_BUILTIN.mpfr CHECK_BUILTIN.mpfr?= no .if ${CHECK_BUILTIN.mpfr:tl} == no . if ${USE_BUILTIN.mpfr:tl} == yes MPFR_INCLUDE= ${H_MPFR:H} BUILDLINK_INCDIRS.mpfr= ${MPFR_INCLUDE} BUILDLINK_LIBDIRS.mpfr= lib${LIBABISUFFIX} CPPFLAGS+= -I${MPFR_INCLUDE} CFLAGS+= -I${MPFR_INCLUDE} . endif .endif # CHECK_BUILTIN.mpfr @ 1.8 log @mpfr: update to 4.2.0. Changes from versions 4.1.* to version 4.2.0: - The "fondue savoyarde" release. - Binary compatible with MPFR 4.0.* and 4.1.*, though some minor changes in the behavior of the formatted output functions may be visible, regarded as underspecified behavior or bug fixes (see below). - New functions mpfr_cosu, mpfr_sinu, mpfr_tanu, mpfr_acosu, mpfr_asinu, mpfr_atanu and mpfr_atan2u. - New functions mpfr_cospi, mpfr_sinpi, mpfr_tanpi, mpfr_acospi, mpfr_asinpi, mpfr_atanpi and mpfr_atan2pi. - New functions mpfr_log2p1, mpfr_log10p1, mpfr_exp2m1, mpfr_exp10m1 and mpfr_compound_si. - New functions mpfr_fmod_ui, mpfr_powr, mpfr_pown, mpfr_pow_uj, mpfr_pow_sj and mpfr_rootn_si (mpfr_pown is actually a macro defined as an alias for mpfr_pow_sj). - Bug fixes. In particular, for the formatted output functions (mpfr_printf, etc.), the case where the precision consists only of a period has been fixed to be like ".0" as specified in the ISO C standard, and the manual has been corrected and clarified. The macros of the custom interface have also been fixed: they now behave like functions (except a minor limitation for mpfr_custom_init_set). @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.7 2020/09/03 08:58:42 prlw1 Exp $ d34 2 a35 1 BUILTIN_VERSION.mpfr!= ${BUILTIN_VERSION_SCRIPT.mpfr} ${H_MPFR} @ 1.7 log @gmp,mpfr: Remove CONFIGURE_ARGS flags from builtin.mk as it assumes that all recursively depending packages can deal with them. Those packages that need them already add those CONFIGURE_ARGS, at least pbulk hasn't revealed any issues (thanks jperkin@@). XXX libiconv is in a similar position, so should receive similar treatment, but at least it only adds the flags if GNU_CONFIGURE=yes Fixes PR pkg/55487 @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.6 2020/08/24 08:20:14 wiz Exp $ d32 1 a32 1 !empty(IS_BUILTIN.mpfr:M[yY][eE][sS]) && \ d48 1 a48 1 . if defined(BUILTIN_PKG.mpfr) && !empty(IS_BUILTIN.mpfr:M[yY][eE][sS]) d51 1 a51 1 . if !empty(USE_BUILTIN.mpfr:M[yY][eE][sS]) d66 2 a67 2 .if !empty(CHECK_BUILTIN.mpfr:M[Nn][Oo]) . if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss]) @ 1.6 log @mpfr: update to 4.1.0. Changes from versions 4.0.* to version 4.1.0: - The "épinards à la crème" release. - Binary compatible with MPFR 4.0.*, though some minor changes in the behavior of the formatted output functions may be visible, regarded as underspecified behavior or bug fixes (see below). - New --enable-formally-proven-code configure option, to use (when available) formally proven code. - Improved __GMP_CC and __GMP_CFLAGS retrieval (in particular for MS Windows). - Option -pedantic is now always removed from __GMP_CFLAGS (see INSTALL). - Changed __float128 to the type _Float128 specified in ISO/IEC TS 18661. __float128 is used as a fallback if _Float128 is not supported. - New function mpfr_get_str_ndigits about conversion to a string of digits. - New function mpfr_dot for the dot product (incomplete, experimental). - New functions mpfr_get_decimal128 and mpfr_set_decimal128 (available only when MPFR has been built with decimal float support). - New function mpfr_cmpabs_ui. - New function mpfr_total_order_p for the IEEE 754 totalOrder predicate. - The mpfr_out_str function now accepts bases from -2 to -36, in order to follow mpfr_get_str and GMP's mpf_out_str functions (these cases gave an assertion failure, as with other invalid bases). - Shared caches: cleanup; really detect lock failures (abort in this case). - The behavior of the formatted output functions (mpfr_printf, etc.) with an empty precision field has improved: trailing zeros are kept in a way similar to the formatted output functions from C. - Improved mpfr_add and mpfr_sub when all operands have a precision equal to twice the number of bits per word, e.g., 128 bits on a 64-bit platform. - Optimized the tuning parameters for various architectures. - Improved test coverage to 98.6% of code for x86_64. - Bug fixes. - MPFR manual: corrected/completed the mpfr_get_str description in order to follow the historical behavior and GMP's mpf_get_str function. - New: optional "make check-exported-symbols", mainly for the MPFR developers and binary distributions, to check that MPFR does not define symbols with a GMP reserved prefix (experimental). - Mini-gmp support: replaced --enable-mini-gmp configure option by --with-mini-gmp (still experimental, read doc/mini-gmp). - A GCC bug on Sparc (present at least in old GCC 4.5.3 and 5.5.0 versions), which made several tests fail when TLS was enabled, is now avoided in the tests. The MPFR library itself was not affected and normal code using the MPFR library should not be affected either. Users and distributions that disabled TLS just because of the test failures can safely re-enable it. @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.5 2019/11/02 16:16:20 rillig Exp $ a68 1 CONFIGURE_ARGS+= --with-mpfr-include=${MPFR_INCLUDE} a69 1 CONFIGURE_ARGS+= --with-mpfr-lib=${BUILDLINK_PREFIX.mpfr}/lib${LIBABISUFFIX} @ 1.5 log @math: align variable assignments pkglint -Wall -F --only aligned -r Manual correction in R/Makefile.extension for the MASTER_SITES continuation line. @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.4 2019/05/31 08:36:12 dholland Exp $ d9 3 a11 3 '/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \ v = substr($$3, 2, length($$3)-2) } \ END { gsub("-p",".",v); print v }' d53 1 a53 1 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mpfr:Q}; then \ d55 1 a55 1 else \ d57 1 a57 1 fi @ 1.4 log @Replace mpfr's builtin.mk. The old one was abusive and wrong. Thanks to Joern Clausen for testing this one (something like a year ago...) Relevant to (at least) PR 52250 and PR 52244. @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.3 2011/09/14 17:18:29 hans Exp $ d8 1 a8 1 BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \ d25 1 a25 1 MAKEVARS+= IS_BUILTIN.mpfr d37 1 a37 1 MAKEVARS+= BUILTIN_PKG.mpfr d63 1 a63 1 MAKEVARS+= USE_BUILTIN.mpfr @ 1.3 log @Fix detection of builtin mpfr on SunOS. @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.2 2011/07/14 18:06:59 drochner Exp $ d5 2 a6 2 PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h /usr/include/mpfr/mpfr.h PKGCONFIG_BASE.mpfr= /usr d13 1 a13 1 .include "../../mk/buildlink3/pkgconfig-builtin.mk" d15 9 a23 2 .if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss]) CONFIGURE_ARGS+= --with-mpfr-include=${FIND_FILES_mpfr:S/\/mpfr.h//} d25 52 @ 1.2 log @in the awk code to extract the version number from a header, avoid the non-standard "gensub" function, from Alexander Nasonov per PM @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.1 2011/07/08 09:40:57 drochner Exp $ d5 1 a5 1 PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h d14 4 @ 1.1 log @allow to use gmp/mpfr/mpc which comes with the system (eg on NetBSD-current with gcc45) @ text @d1 1 a1 1 # $NetBSD: builtin.mk,v 1.1 2008/10/12 20:49:19 ahoka Exp $ d10 2 a11 2 v = substr($$3, 2, length($$3)-2); } \ END { print gensub("-p",".",0,v); }' @