From 078c5f2085f3a55541aa2f67c7b8512cde7bce67 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Tue, 7 Aug 2018 10:32:18 +0200 Subject: [PATCH] freeimage: disable ARM NEON --- .../freeimage/patches/disable_arm_neon.patch | 20 +++++++++++++++++++ srcpkgs/freeimage/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/freeimage/patches/disable_arm_neon.patch diff --git a/srcpkgs/freeimage/patches/disable_arm_neon.patch b/srcpkgs/freeimage/patches/disable_arm_neon.patch new file mode 100644 index 00000000000..4ecac0d410e --- /dev/null +++ b/srcpkgs/freeimage/patches/disable_arm_neon.patch @@ -0,0 +1,20 @@ +--- fi/Source/LibPNG/pngpriv.h.orig 2018-07-16 11:58:00.000000000 +0200 ++++ fi/Source/LibPNG/pngpriv.h 2018-08-07 10:15:53.827327997 +0200 +@@ -107,6 +107,7 @@ + * this in $(CC), e.g. "CC=gcc -mfpu=neon", but people who build libpng rarely + * do this. + */ ++#define PNG_ARM_NEON_OPT 0 + #ifndef PNG_ARM_NEON_OPT + /* ARM NEON optimizations are being controlled by the compiler settings, + * typically the target FPU. If the FPU has been set to NEON (-mfpu=neon +--- fip/Source/LibPNG/pngpriv.h.orig 2018-07-16 11:58:00.000000000 +0200 ++++ fip/Source/LibPNG/pngpriv.h 2018-08-07 10:15:53.827327997 +0200 +@@ -107,6 +107,7 @@ + * this in $(CC), e.g. "CC=gcc -mfpu=neon", but people who build libpng rarely + * do this. + */ ++#define PNG_ARM_NEON_OPT 0 + #ifndef PNG_ARM_NEON_OPT + /* ARM NEON optimizations are being controlled by the compiler settings, + * typically the target FPU. If the FPU has been set to NEON (-mfpu=neon diff --git a/srcpkgs/freeimage/template b/srcpkgs/freeimage/template index 9bc852ab2d7..0fb831db76c 100644 --- a/srcpkgs/freeimage/template +++ b/srcpkgs/freeimage/template @@ -1,7 +1,7 @@ # Template file for 'freeimage' pkgname=freeimage version=3.18.0 -revision=1 +revision=2 wrksrc=FreeImage build_style=gnu-makefile hostmakedepends="unzip"