2021-08-26 19:27:20 +02:00
|
|
|
--- FreeImage/Makefile.gnu 2015-03-10 09:04:00.000000000 +0530
|
2021-08-27 07:11:57 +02:00
|
|
|
+++ FreeImage-patch/Makefile.gnu 2021-08-27 10:38:11.313999758 +0530
|
2021-09-17 11:19:17 +02:00
|
|
|
@@ -5,17 +5,18 @@
|
2021-08-21 12:12:10 +02:00
|
|
|
|
|
|
|
# General configuration variables:
|
|
|
|
DESTDIR ?= /
|
|
|
|
-INCDIR ?= $(DESTDIR)/usr/include
|
|
|
|
-INSTALLDIR ?= $(DESTDIR)/usr/lib
|
2021-08-26 22:03:05 +02:00
|
|
|
+INCDIR ?= @TERMUX_PREFIX@/include
|
|
|
|
+INSTALLDIR ?= @TERMUX_PREFIX@/lib
|
2021-08-21 12:12:10 +02:00
|
|
|
|
|
|
|
# Converts cr/lf to just lf
|
|
|
|
DOS2UNIX = dos2unix
|
|
|
|
|
|
|
|
-LIBRARIES = -lstdc++
|
|
|
|
+LIBRARIES = -lstdc++ -lm
|
|
|
|
|
|
|
|
MODULES = $(SRCS:.c=.o)
|
|
|
|
MODULES := $(MODULES:.cpp=.o)
|
|
|
|
-CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden
|
2021-08-26 19:27:20 +02:00
|
|
|
+CFLAGS ?=
|
2021-08-27 07:11:57 +02:00
|
|
|
+CFLAGS += -O3 -fPIC -fexceptions -fvisibility=hidden -DTEMP_DIRECTORY=@TERMUX_PREFIX@/tmp
|
2021-08-21 12:12:10 +02:00
|
|
|
# OpenJPEG
|
2021-08-26 19:27:20 +02:00
|
|
|
CFLAGS += -DOPJ_STATIC
|
2021-08-21 12:12:10 +02:00
|
|
|
# LibRaw
|
2021-08-26 19:27:20 +02:00
|
|
|
@@ -23,7 +26,8 @@
|
2021-08-21 12:12:10 +02:00
|
|
|
# LibJXR
|
2021-08-26 19:27:20 +02:00
|
|
|
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 @@
|
2020-08-03 23:57:54 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
install -d $(INCDIR) $(INSTALLDIR)
|
|
|
|
- install -m 644 -o root -g root $(HEADER) $(INCDIR)
|
|
|
|
- install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
|
|
|
|
- install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
|
|
|
|
+ install -m 644 $(HEADER) $(INCDIR)
|
|
|
|
+ install -m 644 $(STATICLIB) $(INSTALLDIR)
|
|
|
|
+ install -m 755 $(SHAREDLIB) $(INSTALLDIR)
|
|
|
|
ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
|
|
|
|
ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)
|
|
|
|
# ldconfig
|