head 1.2; access; symbols pkgsrc-2019Q1:1.1.0.18 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.16 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.14 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.12 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.10 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.8 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.6 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.2 pkgsrc-2017Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2019.06.12.18.23.11; author ryoon; state dead; branches; next 1.1; commitid Ccvi5ZUA6DttCVqB; 1.1 date 2017.04.27.13.38.19; author ryoon; state Exp; branches; next ; commitid JyrvbkrB9GSqZaPz; desc @@ 1.2 log @Remove thunderbird45* www/firefox45/mozilla-common.mk is no longer provided. @ text @$NetBSD: patch-mozilla_mozglue_build_arm.cpp,v 1.1 2017/04/27 13:38:19 ryoon Exp $ --- mozilla/mozglue/build/arm.cpp.orig 2016-04-07 21:33:29.000000000 +0000 +++ mozilla/mozglue/build/arm.cpp @@@@ -102,10 +102,13 @@@@ check_neon(void) } # endif // !MOZILLA_PRESUME_NEON -# elif defined(__linux__) || defined(ANDROID) +# elif defined(__linux__) || defined(ANDROID) || defined(__NetBSD__) # include # include # include +# if defined(__NetBSD__) +# include +# endif enum{ MOZILLA_HAS_EDSP_FLAG=1, @@@@ -114,6 +117,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) { @@@@ -178,6 +204,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 @Import thunderbird45-45.8.0 as mail/thunderbird45. 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.1 2016/04/17 18:33:50 ryoon Exp $ @