freeimage: improve patches and disable PNG optimisation for arm arch's only
This commit is contained in:
parent
b782c7da0e
commit
2821bdc9ba
@ -1,13 +1,15 @@
|
|||||||
--- FreeImage/Makefile.gnu 2021-08-20 21:04:25.244999878 +0530
|
--- FreeImage/Makefile.gnu 2015-03-10 09:04:00.000000000 +0530
|
||||||
+++ FreeImage-patch/Makefile.gnu 2021-08-21 10:28:21.714786780 +0530
|
+++ FreeImage-patch/Makefile.gnu 2021-08-26 23:29:19.300999788 +0530
|
||||||
@@ -5,19 +5,19 @@
|
@@ -5,17 +5,20 @@
|
||||||
|
|
||||||
# General configuration variables:
|
# General configuration variables:
|
||||||
DESTDIR ?= /
|
DESTDIR ?= /
|
||||||
-INCDIR ?= $(DESTDIR)/usr/include
|
-INCDIR ?= $(DESTDIR)/usr/include
|
||||||
-INSTALLDIR ?= $(DESTDIR)/usr/lib
|
-INSTALLDIR ?= $(DESTDIR)/usr/lib
|
||||||
+INCDIR ?= @TERMUX_PREFIX@/include
|
+INCDIR ?= @TERMUX_PREFIX@/usr/include
|
||||||
+INSTALLDIR ?= @TERMUX_PREFIX@/lib
|
+INSTALLDIR ?= @TERMUX_PREFIX@/usr/lib
|
||||||
|
+
|
||||||
|
+SRCS += Source/LibRawLite/internal/swab.cpp
|
||||||
|
|
||||||
# Converts cr/lf to just lf
|
# Converts cr/lf to just lf
|
||||||
DOS2UNIX = dos2unix
|
DOS2UNIX = dos2unix
|
||||||
@ -18,14 +20,22 @@
|
|||||||
MODULES = $(SRCS:.c=.o)
|
MODULES = $(SRCS:.c=.o)
|
||||||
MODULES := $(MODULES:.cpp=.o)
|
MODULES := $(MODULES:.cpp=.o)
|
||||||
-CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden
|
-CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden
|
||||||
+CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -fstack-protector-strong -Oz
|
+CFLAGS ?=
|
||||||
|
+CFLAGS += -O3 -fPIC -fexceptions -fvisibility=hidden
|
||||||
# OpenJPEG
|
# OpenJPEG
|
||||||
-CFLAGS += -DOPJ_STATIC
|
CFLAGS += -DOPJ_STATIC
|
||||||
+CFLAGS += -DOPJ_STATIC -DPNG_ARM_NEON_OPT=0
|
|
||||||
# LibRaw
|
# LibRaw
|
||||||
CFLAGS += -DNO_LCMS
|
@@ -23,7 +26,8 @@
|
||||||
# LibJXR
|
# LibJXR
|
||||||
@@ -71,9 +71,9 @@
|
CFLAGS += -DDISABLE_PERF_MEASUREMENT -D__ANSI__
|
||||||
|
CFLAGS += $(INCLUDE)
|
||||||
|
-CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
|
||||||
|
+CXXFLAGS ?=
|
||||||
|
+CXXFLAGS += -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
|
||||||
|
# LibJXR
|
||||||
|
CXXFLAGS += -D__ANSI__
|
||||||
|
CXXFLAGS += $(INCLUDE)
|
||||||
|
@@ -71,9 +75,9 @@
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -d $(INCDIR) $(INSTALLDIR)
|
install -d $(INCDIR) $(INSTALLDIR)
|
||||||
|
File diff suppressed because one or more lines are too long
@ -11,8 +11,9 @@ TERMUX_PKG_BUILD_IN_SRC=true
|
|||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
cp -f "${TERMUX_PKG_BUILDER_DIR}/license-bsd-2-clause.txt" "${TERMUX_PKG_SRCDIR}"
|
cp -f "${TERMUX_PKG_BUILDER_DIR}/license-bsd-2-clause.txt" "${TERMUX_PKG_SRCDIR}"
|
||||||
}
|
|
||||||
|
|
||||||
termux_step_make() {
|
if [ "${TERMUX_ARCH}" = "aarch64" ] || [ "${TERMUX_ARCH}" = "arm" ]; then
|
||||||
make LDFLAGS="${LDFLAGS}"
|
CFLAGS+=" -DPNG_ARM_NEON_OPT=0"
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user