diff options
Diffstat (limited to 'graphics/cimg')
| -rw-r--r-- | graphics/cimg/Makefile | 24 | ||||
| -rw-r--r-- | graphics/cimg/distinfo | 6 | ||||
| -rw-r--r-- | graphics/cimg/files/patch-examples__Makefile | 60 |
3 files changed, 25 insertions, 65 deletions
diff --git a/graphics/cimg/Makefile b/graphics/cimg/Makefile index b881bd920b6d..6d0246cfa67c 100644 --- a/graphics/cimg/Makefile +++ b/graphics/cimg/Makefile @@ -1,6 +1,6 @@ PORTNAME= cimg DISTVERSIONPREFIX= v. -DISTVERSION= 3.5.5 +DISTVERSION= 3.6.5 PORTEPOCH= 3 CATEGORIES= graphics devel @@ -33,14 +33,6 @@ USES+= compiler:c11 gmake pkgconfig:build xorg .if ${PORT_OPTIONS:MDOCS} -.if !defined(WITHOUT_LAPACK) -. if defined(WITH_ATLAS) -USES+= blaslapack:atlas -. else -USES+= blaslapack -. endif -.endif - REINPLACE_ARGS= -i "" . if !defined(WITH_DEBUG) @@ -52,7 +44,6 @@ LIB_DEPENDS+= libcurl.so:ftp/curl \ libOpenEXR.so:graphics/openexr \ libfftw3.so:math/fftw3 \ libwebp.so:graphics/webp \ - libboard.so:graphics/libboard \ libopencv_core.so:graphics/opencv \ libGraphicsMagick.so:graphics/GraphicsMagick RUN_DEPENDS+= dcraw:graphics/dcraw @@ -62,7 +53,6 @@ ALL_TARGET= Mlinux ALL_TARGET= dlinux WITHOUT_MEDCON= yes WITHOUT_FFMPEG= yes -WITHOUT_LAPACK= yes . endif . if !defined(WITHOUT_MEDCON) @@ -72,11 +62,6 @@ RUN_DEPENDS+= medcon:graphics/xmedcon LIB_DEPENDS+= libavformat.so:multimedia/ffmpeg . endif -. if !defined(WITHOUT_LAPACK) -# Don't really need Fortran, but required to link with blas/lapack -USES+= fortran -. endif - USE_XORG+= x11 xrandr . if defined(WITH_XSHM) USE_XORG+= xext @@ -115,13 +100,6 @@ pre-configure: -e 's|#FFMPEG_LIBS|FFMPEG_LIBS|' \ ${BUILD_WRKSRC}/Makefile . endif -. if !defined(WITHOUT_LAPACK) - ${REINPLACE_CMD} -e 's|#LAPACK_CFLAGS|LAPACK_CFLAGS|' \ - -e 's|#LAPACK_DEFINE|LAPACK_DEFINE|' \ - -e 's|#LAPACK_LIBS|LAPACK_LIBS|' \ - -e 's|-lblas -llapack|-L${LOCALBASE}/lib ${BLASLIB} ${LAPACKLIB}|' \ - ${BUILD_WRKSRC}/Makefile -. endif . if defined(WITH_XSHM) ${REINPLACE_CMD} -e 's|XSHM_CFLAGS = #|XSHM_CFLAGS =|' \ -e 's|XSHM_LDFLAGS = #|XSHM_LDFLAGS =|' \ diff --git a/graphics/cimg/distinfo b/graphics/cimg/distinfo index 5ad7acb6713d..ef8f798035eb 100644 --- a/graphics/cimg/distinfo +++ b/graphics/cimg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1747931392 -SHA256 (GreycLab-CImg-v.3.5.5_GH0.tar.gz) = f202f71dd77a4434fc36725022912fb57098124b92c3c4f417155337dc1c57a0 -SIZE (GreycLab-CImg-v.3.5.5_GH0.tar.gz) = 12680423 +TIMESTAMP = 1765816325 +SHA256 (GreycLab-CImg-v.3.6.5_GH0.tar.gz) = 2a1877aa3bb26298a7b8c9cf2cf231e3656bd6ff0dee7ee2cc1d694f4fd07d75 +SIZE (GreycLab-CImg-v.3.6.5_GH0.tar.gz) = 12680881 diff --git a/graphics/cimg/files/patch-examples__Makefile b/graphics/cimg/files/patch-examples__Makefile index 9b42503d9232..a02bd41c1868 100644 --- a/graphics/cimg/files/patch-examples__Makefile +++ b/graphics/cimg/files/patch-examples__Makefile @@ -1,5 +1,14 @@ ---- examples/Makefile.orig 2025-05-02 13:41:33 UTC +--- examples/Makefile.orig 2025-11-21 07:26:29 UTC +++ examples/Makefile +@@ -78,7 +78,7 @@ FILES = CImg_demo \ + use_RGBclass \ + + # Files which requires external libraries to run. +-EXTRA_FILES = test_template_types use_tiff_stream use_jpeg_buffer ++EXTRA_FILES = use_tiff_stream use_jpeg_buffer + + #--------------------------------- + # Set correct variables and paths @@ -89,7 +89,7 @@ SVERSION = $(VERSION1).$(VERSION2).$(VERSION3) VERSION3 = $(shell grep 'cimg_version\ ' ../CImg.h | tail -c2 | head -c1) SVERSION = $(VERSION1).$(VERSION2).$(VERSION3) @@ -18,7 +27,7 @@ LIBS = -lm ifdef IS_GCC CXXVER = $(shell $(CXX) -v 2>&1 | tail -n 1) -@@ -151,7 +151,7 @@ VT100_CFLAGS = -Dcimg_use_vt100 +@@ -152,7 +152,7 @@ VT100_CFLAGS = -Dcimg_use_vt100 VT100_CFLAGS = -Dcimg_use_vt100 # Flags to enable code optimization by the compiler. @@ -27,19 +36,19 @@ ifdef IS_GCC # Add -mtune=generic for GCC if supported. NO_MTUNE_GENERIC = $(shell $(CXX) -mtune=generic -E - < /dev/null > /dev/null 2>&1; echo $$?) -@@ -176,9 +176,9 @@ OPENCV_DEFINE = -Dcimg_use_opencv +@@ -177,9 +177,9 @@ OPENCV_DEFINE = -Dcimg_use_opencv # Flags to enable OpenCV support. OPENCV_DEFINE = -Dcimg_use_opencv -OPENCV_INCDIR = $(shell pkg-config opencv --cflags || echo -I/usr/include/opencv) -I/usr/include/opencv -I/usr/include/opencv4 +OPENCV_INCDIR = $(shell pkg-config opencv4 --cflags || echo -I/usr/include/opencv) -I/usr/include/opencv -I/usr/include/opencv4 OPENCV_CFLAGS = $(OPENCV_DEFINE) $(OPENCV_INCDIR) --OPENCV_LIBS = $(shell pkg-config opencv --libs || echo -lopencv_core -lopencv_highgui) -+OPENCV_LIBS = $(shell pkg-config opencv4 --libs || echo -lopencv_core -lopencv_highgui) +-OPENCV_LIBS = $(shell pkg-config opencv --libs || echo -lopencv_core -lopencv_highgui -lopencv_videoio) ++OPENCV_LIBS = $(shell pkg-config opencv4 --libs || echo -lopencv_core -lopencv_highgui -lopencv_videoio) # Flags used to disable display capablities of CImg NODISPLAY_CFLAGS = -Dcimg_display=0 -@@ -241,7 +241,7 @@ TIFF_CFLAGS = $(TIFF_DEFINE) $(TIFF_INCDIR) +@@ -242,7 +242,7 @@ TIFF_CFLAGS = $(TIFF_DEFINE) $(TIFF_INCDIR) TIFF_DEFINE = -Dcimg_use_tiff TIFF_INCDIR = TIFF_CFLAGS = $(TIFF_DEFINE) $(TIFF_INCDIR) @@ -48,7 +57,7 @@ # Flags to enable native support for loading HEIF image files, using the libheif library. # ( https://github.com/strukturag/libheif ) -@@ -260,16 +260,16 @@ OPENEXR_DEFINE = -Dcimg_use_openexr +@@ -261,16 +261,16 @@ OPENEXR_DEFINE = -Dcimg_use_openexr # Flags to enable native support for EXR image files, using the OpenEXR library. # ( http://www.openexr.com/ ) OPENEXR_DEFINE = -Dcimg_use_openexr @@ -71,38 +80,15 @@ # Flags to enable native support for compressed .cimgz files, using the Zlib library. # ( http://www.zlib.net/ ) -@@ -305,17 +305,17 @@ endif - - # Flags to enable the use of LAPACK routines for matrix computation - # ( http://www.netlib.org/lapack/ ) --LAPACK_DEFINE = -Dcimg_use_lapack -+#LAPACK_DEFINE = -Dcimg_use_lapack - LAPACK_INCDIR = --LAPACK_CFLAGS = $(LAPACK_DEFINE) $(LAPACK_INCDIR) --LAPACK_LIBS = -lblas -llapack -+#LAPACK_CFLAGS = $(LAPACK_DEFINE) $(LAPACK_INCDIR) -+#LAPACK_LIBS = -lblas -llapack - - # Flags to enable the use of the Board library - # ( https://github.com/GreycLab/libboard ) - BOARD_DEFINE = -Dcimg_use_board --BOARD_INCDIR = -I/usr/include/board -+BOARD_INCDIR = -I$(LOCALBASE)/include/board - BOARD_CFLAGS = $(BOARD_DEFINE) $(BOARD_INCDIR) --BOARD_LIBS = -lboard -+BOARD_LIBS = -lboard -lMagick++-7 - - # Enable native support of WebP image files, using the WebP library. - # (https://chromium.googlesource.com/webm/libwebp/) -@@ -392,6 +392,7 @@ $(XSHM_LIBS)" \ +@@ -377,6 +377,7 @@ $(XSHM_LIBS)" \ + $(TIFF_LIBS) \ $(HEIF_LIBS) \ - $(LAPACK_LIBS) \ $(XSHM_LIBS)" \ +$(PTHREAD_LIBS)" \ all $(EXTRA_FILES) # Linux/BSD/Mac OSX targets, with X11 display. -@@ -470,6 +471,7 @@ $(OPT_CFLAGS) \ +@@ -455,6 +456,7 @@ $(OPT_CFLAGS) \ @$(MAKE) \ "CONF_CFLAGS = \ $(OPT_CFLAGS) \ @@ -110,12 +96,10 @@ $(VT100_CFLAGS) \ $(X11_CFLAGS) \ $(XSHM_CFLAGS) \ -@@ -483,8 +485,12 @@ $(MAGICK_CFLAGS) \ +@@ -468,8 +470,10 @@ $(MAGICK_CFLAGS) \ $(CURL_CFLAGS) \ $(OPENCV_CFLAGS) \ $(MAGICK_CFLAGS) \ -+$(LAPACK_CFLAGS) \ -+$(BOARD_CFLAGS) \ +$(WEBP_CFLAGS) \ $(FFTW3_CFLAGS)" \ "CONF_LIBS = \ @@ -123,12 +107,10 @@ $(X11_LIBS) \ $(XSHM_LIBS) \ $(XRANDR_LIBS) \ -@@ -497,6 +503,9 @@ $(MAGICK_LIBS) \ +@@ -482,6 +486,7 @@ $(MAGICK_LIBS) \ $(CURL_LIBS) \ $(OPENCV_LIBS) \ $(MAGICK_LIBS) \ -+$(LAPACK_LIBS) \ -+$(BOARD_LIBS) \ +$(WEBP_LIBS) \ $(FFTW3_LIBS)" \ "STRIP_EXE=true" \ |
