head 1.2; access; symbols pkgsrc-2024Q1:1.1.0.44 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.42 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.40 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.38 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.36 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.34 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.32 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.30 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.28 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.26 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.24 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.22 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.20 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.18 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.16 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.14 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.10 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.12 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.8 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.6 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.4 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2024.06.05.06.40.59; author nia; state dead; branches; next 1.1; commitid 9HDU644QOLsEeLcF; 1.1 date 2018.12.16.08.29.48; author ryoon; state Exp; branches; next ; commitid 9U981SqXmmFQ304B; desc @@ 1.2 log @gc old unbuildable thunderbirds @ text @$NetBSD: patch-mozilla_mozglue_build_arm.cpp,v 1.1 2018/12/16 08:29:48 ryoon Exp $ --- mozilla/mozglue/build/arm.cpp.orig 2017-04-14 04:53:21.000000000 +0000 +++ mozilla/mozglue/build/arm.cpp @@@@ -13,10 +13,13 @@@@ // we don't compile one of these detection methods. The detection code here is // based on the CPU detection in libtheora. -# if defined(__linux__) || defined(ANDROID) +# if defined(__linux__) || defined(ANDROID) || defined(__NetBSD__) # include # include # include +# if defined(__NetBSD__) +# include +# endif enum{ MOZILLA_HAS_EDSP_FLAG=1, @@@@ -25,6 +28,29 @@@@ enum{ MOZILLA_HAS_NEON_FLAG=8 }; +# if defined(__NetBSD__) +static unsigned +get_arm_cpu_flags(void) +{ + unsigned flags = 0; + size_t len; + int flag; + + len = sizeof(flag); + if (sysctlbyname("machdep.simdex_present", &flag, &len, NULL, 0) == 0 && flag) { + flags |= MOZILLA_HAS_ARMV6_FLAG; + flags |= MOZILLA_HAS_EDSP_FLAG; + } + + len = sizeof(flag); + if (sysctlbyname("machdep.neon_present", &flag, &len, NULL, 0) == 0 && flag) { + flags |= MOZILLA_HAS_ARMV7_FLAG; + flags |= MOZILLA_HAS_NEON_FLAG; + } + + return flags; +} +# else static unsigned get_arm_cpu_flags(void) { @@@@ -89,6 +115,7 @@@@ get_arm_cpu_flags(void) } return flags; } +# endif // Cache a local copy so we only have to read /proc/cpuinfo once. static unsigned arm_cpu_flags = get_arm_cpu_flags(); @ 1.1 log @mail/thunderbird52: import thunderbird52-52.9.1nb3 Mozilla Thunderbird is a redesign of the Mozilla mail component. The goal is to produce a cross platform stand alone mail application using the XUL user interface language. This version uses the gtk2 toolkit. @ text @d1 1 a1 1 $NetBSD: patch-mozilla_mozglue_build_arm.cpp,v 1.2 2017/04/27 13:32:41 ryoon Exp $ @