diff options
author | manu <manu@FreeBSD.org> | 2018-11-27 14:49:25 +0800 |
---|---|---|
committer | manu <manu@FreeBSD.org> | 2018-11-27 14:49:25 +0800 |
commit | 005f01000b43a971ed1e08a1bcc69cbb5f718aa7 (patch) | |
tree | 484088bebaa5f6ccd535b30ecb5e9a6eafc3448a /www | |
parent | 362b613cbf317031bb2937d4a24baa3db1be0b88 (diff) | |
download | freebsd-ports-gnome-005f01000b43a971ed1e08a1bcc69cbb5f718aa7.tar.gz freebsd-ports-gnome-005f01000b43a971ed1e08a1bcc69cbb5f718aa7.tar.zst freebsd-ports-gnome-005f01000b43a971ed1e08a1bcc69cbb5f718aa7.zip |
Revert r485933
It was based on an older version of the port, revert until I work on it again
Approved by: bapt (mentor, implicit)
Diffstat (limited to 'www')
-rw-r--r-- | www/chromium/Makefile | 10 | ||||
-rw-r--r-- | www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c | 47 | ||||
-rw-r--r-- | www/chromium/files/patch-third__party_zlib_BUILD.gn | 13 | ||||
-rw-r--r-- | www/chromium/files/patch-third__party_zlib_arm__features.c | 58 | ||||
-rw-r--r-- | www/chromium/pkg-plist | 4 |
5 files changed, 42 insertions, 90 deletions
diff --git a/www/chromium/Makefile b/www/chromium/Makefile index f0f2b6e48e5a..637beb61cc50 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -204,14 +204,6 @@ TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX} \ .include <bsd.port.options.mk> -# swiftshader/lib/{libEGL.so,libGLESv2.so} is x86 only -.if ${ARCH} == aarch64 -PLIST_SUB+= NOT_AARCH64="@comment " -.else -PLIST_SUB+= NOT_AARCH64="" -.endif - - BUILD_DEPENDS+= ${LOCALBASE}/bin/ar:devel/binutils EXTRA_PATCHES+= ${FILESDIR}/extra-patch-llvm-base @@ -305,13 +297,11 @@ do-install: .endfor # SwiftShader -.if ${ARCH} != aarch64 @${MKDIR} ${STAGEDIR}${DATADIR}/swiftshader .for g in libEGL.so libGLESv2.so ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/swiftshader/${g} \ ${STAGEDIR}${DATADIR}/swiftshader .endfor -.endif post-install-DEBUG-on: ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/*.so \ diff --git a/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c b/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c index 5a74a63af739..4182692c8710 100644 --- a/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c +++ b/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c @@ -1,11 +1,40 @@ ---- third_party/boringssl/src/crypto/cpu-aarch64-linux.c.orig 2018-09-11 22:58:51 UTC -+++ third_party/boringssl/src/crypto/cpu-aarch64-linux.c -@@ -60,3 +60,8 @@ void OPENSSL_cpuid_setup(void) { - } +--- third_party/boringssl/src/crypto/cpu-aarch64-linux.c.orig 2017-09-11 03:00:27.842983000 +0200 ++++ third_party/boringssl/src/crypto/cpu-aarch64-linux.c 2017-09-11 03:02:56.830632000 +0200 +@@ -16,7 +16,9 @@ + + #if defined(OPENSSL_AARCH64) && !defined(OPENSSL_STATIC_ARMCAP) + ++#if defined(OPENSSL_LINUX) + #include <sys/auxv.h> ++#endif + + #include <openssl/arm_arch.h> + +@@ -26,6 +28,7 @@ + extern uint32_t OPENSSL_armcap_P; - #endif // OPENSSL_AARCH64 && !OPENSSL_STATIC_ARMCAP -+ -+#ifdef __FreeBSD__ -+void OPENSSL_cpuid_setup(void) { -+} + void OPENSSL_cpuid_setup(void) { ++#if defined(OPENSSL_LINUX) + unsigned long hwcap = getauxval(AT_HWCAP); + + /* See /usr/include/asm/hwcap.h on an aarch64 installation for the source of +@@ -41,9 +44,11 @@ + * either. */ + return; + } ++#endif + + OPENSSL_armcap_P |= ARMV7_NEON; + ++#if defined(OPENSSL_LINUX) + if (hwcap & kAES) { + OPENSSL_armcap_P |= ARMV8_AES; + } +@@ -56,6 +61,7 @@ + if (hwcap & kSHA256) { + OPENSSL_armcap_P |= ARMV8_SHA256; + } +#endif + } + + #endif /* OPENSSL_AARCH64 && !OPENSSL_STATIC_ARMCAP */ diff --git a/www/chromium/files/patch-third__party_zlib_BUILD.gn b/www/chromium/files/patch-third__party_zlib_BUILD.gn index 3d511223600f..70ed07a6777c 100644 --- a/www/chromium/files/patch-third__party_zlib_BUILD.gn +++ b/www/chromium/files/patch-third__party_zlib_BUILD.gn @@ -1,14 +1,5 @@ ---- third_party/zlib/BUILD.gn.orig 2018-08-08 21:11:58.000000000 +0200 -+++ third_party/zlib/BUILD.gn 2018-09-12 01:00:34.445630000 +0200 -@@ -68,7 +68,7 @@ - if (is_android) { - defines += [ "ARMV8_OS_ANDROID" ] - } else if (is_linux || is_chromeos) { -- defines += [ "ARMV8_OS_LINUX" ] -+# defines += [ "ARMV8_OS_LINUX" ] - } - } - } +--- third_party/zlib/BUILD.gn.orig 2018-06-13 00:11:08.000000000 +0200 ++++ third_party/zlib/BUILD.gn 2018-07-19 21:36:13.071700000 +0200 @@ -327,7 +327,7 @@ ] } diff --git a/www/chromium/files/patch-third__party_zlib_arm__features.c b/www/chromium/files/patch-third__party_zlib_arm__features.c deleted file mode 100644 index ce753367d1c0..000000000000 --- a/www/chromium/files/patch-third__party_zlib_arm__features.c +++ /dev/null @@ -1,58 +0,0 @@ ---- third_party/zlib/arm_features.c.orig 2018-09-11 22:58:25 UTC -+++ third_party/zlib/arm_features.c -@@ -16,12 +16,13 @@ - #include <asm/hwcap.h> - #include <sys/auxv.h> - #else --#error ### No ARM CPU features detection in your platform/OS -+/* #error ### No ARM CPU features detection in your platform/OS */ - #endif - - int ZLIB_INTERNAL arm_cpu_enable_crc32 = 0; - int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; - -+#ifdef ARMV8_OS_LINUX - static pthread_once_t cpu_check_inited_once = PTHREAD_ONCE_INIT; - - static void init_arm_features(void) -@@ -53,8 +54,11 @@ static void init_arm_features(void) - if (capabilities & flag_pmull) - arm_cpu_enable_pmull = 1; - } -+#endif - - void ZLIB_INTERNAL arm_check_features(void) - { -+#ifdef ARMV8_OS_LINUX - pthread_once(&cpu_check_inited_once, init_arm_features); -+#endif - } ---- third_party/zlib/arm_features.c.orig 2018-09-11 22:58:25 UTC -+++ third_party/zlib/arm_features.c -@@ -16,12 +16,13 @@ - #include <asm/hwcap.h> - #include <sys/auxv.h> - #else --#error ### No ARM CPU features detection in your platform/OS -+/* #error ### No ARM CPU features detection in your platform/OS */ - #endif - - int ZLIB_INTERNAL arm_cpu_enable_crc32 = 0; - int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; - -+#ifdef ARMV8_OS_LINUX - static pthread_once_t cpu_check_inited_once = PTHREAD_ONCE_INIT; - - static void init_arm_features(void) -@@ -53,8 +54,11 @@ static void init_arm_features(void) - if (capabilities & flag_pmull) - arm_cpu_enable_pmull = 1; - } -+#endif - - void ZLIB_INTERNAL arm_check_features(void) - { -+#ifdef ARMV8_OS_LINUX - pthread_once(&cpu_check_inited_once, init_arm_features); -+#endif - } diff --git a/www/chromium/pkg-plist b/www/chromium/pkg-plist index 3e13c49be3cc..810878ab77ce 100644 --- a/www/chromium/pkg-plist +++ b/www/chromium/pkg-plist @@ -313,8 +313,8 @@ bin/chrome %%DATADIR%%/resources/inspector/worker_app.js %%DATADIR%%/resources/inspector/workspace_diff/workspace_diff_module.js %%DATADIR%%/snapshot_blob.bin -%%NOT_AARCH64%%%%DATADIR%%/swiftshader/libEGL.so -%%NOT_AARCH64%%%%DATADIR%%/swiftshader/libGLESv2.so +%%DATADIR%%/swiftshader/libEGL.so +%%DATADIR%%/swiftshader/libGLESv2.so %%DATADIR%%/v8_context_snapshot.bin %%DATADIR%%/views_mus_resources.pak %%DEBUG%%%%DATADIR%%/character_data_generator |