commit
adaf3bef65
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://gmic.eu
|
|||||||
TERMUX_PKG_DESCRIPTION="Full-featured framework for image processing"
|
TERMUX_PKG_DESCRIPTION="Full-featured framework for image processing"
|
||||||
TERMUX_PKG_LICENSE="CeCILL-2.1"
|
TERMUX_PKG_LICENSE="CeCILL-2.1"
|
||||||
TERMUX_PKG_VERSION=2.5.7
|
TERMUX_PKG_VERSION=2.5.7
|
||||||
TERMUX_PKG_REVISION=2
|
TERMUX_PKG_REVISION=3
|
||||||
TERMUX_PKG_SHA256=1cc71b48c1c3da928031b7f32cf3fe4757a07b4f21c3af4167389d54cf2dee5f
|
TERMUX_PKG_SHA256=1cc71b48c1c3da928031b7f32cf3fe4757a07b4f21c3af4167389d54cf2dee5f
|
||||||
TERMUX_PKG_SRCURL=https://gmic.eu/files/source/gmic_$TERMUX_PKG_VERSION.tar.gz
|
TERMUX_PKG_SRCURL=https://gmic.eu/files/source/gmic_$TERMUX_PKG_VERSION.tar.gz
|
||||||
TERMUX_PKG_DEPENDS="graphicsmagick++, libcurl, fftw, libpng, libjpeg-turbo, libtiff, zlib"
|
TERMUX_PKG_DEPENDS="graphicsmagick++, libcurl, fftw, libpng, libjpeg-turbo, libtiff, zlib"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
diff -u -r ../gmic-2.2.3/src/Makefile ./src/Makefile
|
--- ./src/Makefile.orig 2019-04-16 14:41:09.000000000 +0000
|
||||||
--- ../gmic-2.2.3/src/Makefile 2018-05-16 13:18:08.000000000 +0000
|
+++ ./src/Makefile 2019-05-07 01:09:58.583727894 +0000
|
||||||
+++ ./src/Makefile 2018-05-18 22:44:33.038378433 +0000
|
@@ -60,7 +60,7 @@
|
||||||
@@ -61,7 +61,7 @@
|
|
||||||
|
|
||||||
# Try to auto-detect target OS.
|
# Try to auto-detect target OS.
|
||||||
OS = $(shell uname)
|
OS = $(shell uname)
|
||||||
@ -10,7 +9,7 @@ diff -u -r ../gmic-2.2.3/src/Makefile ./src/Makefile
|
|||||||
LIB = lib
|
LIB = lib
|
||||||
BIN = bin
|
BIN = bin
|
||||||
INCLUDE = include
|
INCLUDE = include
|
||||||
@@ -136,9 +136,7 @@
|
@@ -146,9 +146,7 @@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef NOSTRIP
|
ifdef NOSTRIP
|
||||||
@ -21,7 +20,7 @@ diff -u -r ../gmic-2.2.3/src/Makefile ./src/Makefile
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef QMAKE
|
ifndef QMAKE
|
||||||
@@ -190,7 +188,7 @@
|
@@ -199,7 +197,7 @@
|
||||||
# Enable multi-threading support.
|
# Enable multi-threading support.
|
||||||
PARALLEL_CFLAGS = -Dgmic_is_parallel
|
PARALLEL_CFLAGS = -Dgmic_is_parallel
|
||||||
ifneq ($(OS),Windows)
|
ifneq ($(OS),Windows)
|
||||||
@ -30,9 +29,9 @@ diff -u -r ../gmic-2.2.3/src/Makefile ./src/Makefile
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Enable parallelization in CImg, using OpenMP.
|
# Enable parallelization in CImg, using OpenMP.
|
||||||
@@ -326,8 +324,8 @@
|
@@ -339,8 +337,8 @@
|
||||||
GMIC_CLI_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(FFTW_CFLAGS) $(CURL_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) $(TIFF_CFLAGS)
|
GMIC_CLI_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(EIGEN_CFLAGS) $(FFTW_CFLAGS) $(CURL_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) $(TIFF_CFLAGS)
|
||||||
GMIC_CLI_LIBS = $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(FFTW_LIBS) $(CURL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS)
|
GMIC_CLI_LIBS = $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(EIGEN_LIBS) $(FFTW_LIBS) $(CURL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS)
|
||||||
ifeq ($(OS),Unix) # Unix.
|
ifeq ($(OS),Unix) # Unix.
|
||||||
-GMIC_CLI_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS) # $(XSHM_CFLAGS) $(MAGICK_CFLAGS)
|
-GMIC_CLI_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS) # $(XSHM_CFLAGS) $(MAGICK_CFLAGS)
|
||||||
-GMIC_CLI_LIBS += $(OPENMP_LIBS) $(X11_LIBS) $(OPENEXR_LIBS) $(OPENCV_LIBS) # $(XSHM_LIBS) # $(MAGICK_LIBS)
|
-GMIC_CLI_LIBS += $(OPENMP_LIBS) $(X11_LIBS) $(OPENEXR_LIBS) $(OPENCV_LIBS) # $(XSHM_LIBS) # $(MAGICK_LIBS)
|
||||||
@ -41,7 +40,7 @@ diff -u -r ../gmic-2.2.3/src/Makefile ./src/Makefile
|
|||||||
else
|
else
|
||||||
ifeq ($(OS),Darwin) # MacOSX.
|
ifeq ($(OS),Darwin) # MacOSX.
|
||||||
GMIC_CLI_CFLAGS += $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS)
|
GMIC_CLI_CFLAGS += $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS)
|
||||||
@@ -339,8 +337,7 @@
|
@@ -352,15 +350,14 @@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cli:
|
cli:
|
||||||
@ -51,3 +50,11 @@ diff -u -r ../gmic-2.2.3/src/Makefile ./src/Makefile
|
|||||||
|
|
||||||
debug:
|
debug:
|
||||||
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
|
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
|
||||||
|
|
||||||
|
_cli: check_versions gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
||||||
|
$(CXX) -o gmic_cli.o -c gmic.cpp $(CFLAGS)
|
||||||
|
- $(CXX) -o gmic gmic_cli.cpp gmic_cli.o $(CFLAGS) $(LIBS)
|
||||||
|
+ $(CXX) -o gmic gmic_cli.cpp gmic_cli.o $(CFLAGS) $(LIBS) $(LDFLAGS)
|
||||||
|
|
||||||
|
# CLI (static)
|
||||||
|
#-------------
|
||||||
|
Loading…
Reference in New Issue
Block a user