38227f42d6
* cpio: update to 2.13 * gmic: update to 2.9.0 * ffsend: update to 0.2.59 * libgrpc: update to 1.28.0 * librsvg: update to 2.48.2 * perl: update to 5.30.2 * ruby: update to 2.7.1 * ripgrep: update to 12.0.1 * repology/excluded_packages: ignore aircrack-ng and guile18 * mpd: update to 0.21.22
40 lines
1.9 KiB
Diff
40 lines
1.9 KiB
Diff
--- ./src/Makefile.orig 2020-03-28 14:25:12.000000000 +0100
|
|
+++ ./src/Makefile 2020-04-03 21:01:21.744145133 +0200
|
|
@@ -206,7 +206,7 @@
|
|
# Enable multi-threading support.
|
|
PARALLEL_CFLAGS = -Dgmic_is_parallel
|
|
ifneq ($(OS),Windows)
|
|
-PARALLEL_LIBS = -lpthread
|
|
+#PARALLEL_LIBS = -lpthread
|
|
endif
|
|
|
|
# Enable parallelization in CImg, using OpenMP.
|
|
@@ -346,8 +346,8 @@
|
|
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) $(EIGEN_LIBS) $(FFTW_LIBS) $(CURL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS)
|
|
ifeq ($(OS),Unix) # Unix
|
|
-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_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)
|
|
else
|
|
ifeq ($(OS),Darwin) # MacOSX
|
|
GMIC_CLI_CFLAGS += $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS)
|
|
@@ -360,13 +360,15 @@
|
|
|
|
cli:
|
|
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(OPT_CLI_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS) $(OPT_LIBS)" _cli
|
|
- $(STRIP) gmic$(EXE)
|
|
+ $(STRIP) gmic$(EXE) gmic-gm$(EXE)
|
|
|
|
debug:
|
|
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
|
|
|
|
_cli: gmic_cli.o gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
|
$(CXX) -o gmic gmic_cli.cpp gmic_cli.o $(CFLAGS) $(LIBS)
|
|
+ $(CXX) -o gmic_cli_gm.o -c gmic.cpp $(CFLAGS) $(MAGICK_CFLAGS)
|
|
+ $(CXX) -o gmic-gm gmic_cli.cpp gmic_cli_gm.o $(CFLAGS) $(MAGICK_CFLAGS) $(LIBS) $(MAGICK_LIBS)
|
|
|
|
gmic_cli.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
|
$(CXX) -o gmic_cli.o -c gmic.cpp $(CFLAGS)
|