diff options
author | thierry <thierry@FreeBSD.org> | 2015-03-20 04:53:01 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2015-03-20 04:53:01 +0800 |
commit | d213d06b273e65c9c0ff2918c6e3b8627fdf1401 (patch) | |
tree | 9814989ced61a8421e09e9bb7b000c433d6a422c /graphics/cimg | |
parent | dec11e1288f6499337b2f37a12db148ef2022ce7 (diff) | |
download | freebsd-ports-gnome-d213d06b273e65c9c0ff2918c6e3b8627fdf1401.tar.gz freebsd-ports-gnome-d213d06b273e65c9c0ff2918c6e3b8627fdf1401.tar.zst freebsd-ports-gnome-d213d06b273e65c9c0ff2918c6e3b8627fdf1401.zip |
Upgrade to 1.6.1.
Diffstat (limited to 'graphics/cimg')
-rw-r--r-- | graphics/cimg/Makefile | 5 | ||||
-rw-r--r-- | graphics/cimg/distinfo | 4 | ||||
-rw-r--r-- | graphics/cimg/files/patch-CImg.h | 12 | ||||
-rw-r--r-- | graphics/cimg/files/patch-examples__Makefile | 52 |
4 files changed, 47 insertions, 26 deletions
diff --git a/graphics/cimg/Makefile b/graphics/cimg/Makefile index e3ffebca4dfb..d0ac90abb851 100644 --- a/graphics/cimg/Makefile +++ b/graphics/cimg/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= cimg -PORTVERSION= 1.6.0 +PORTVERSION= 1.6.1 PORTEPOCH= 3 CATEGORIES= graphics devel MASTER_SITES= SF/${PORTNAME} \ @@ -122,8 +122,7 @@ pre-configure: -e 's|CIMG_XSHM_LDFLAGS = #|CIMG_XSHM_LDFLAGS =|' \ ${BUILD_WRKSRC}/Makefile . endif - ${REINPLACE_CMD} -e 's|-pedantic|${CFLAGS}|' \ - -e 's|-lpthread|${PTHREAD_LIBS}|' ${BUILD_WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|-pedantic|${CFLAGS}|' ${BUILD_WRKSRC}/Makefile do-install: ${INSTALL_DATA} ${WRKSRC}/CImg.h ${STAGEDIR}${PREFIX}/include diff --git a/graphics/cimg/distinfo b/graphics/cimg/distinfo index 17d3121842e9..a26322781d2a 100644 --- a/graphics/cimg/distinfo +++ b/graphics/cimg/distinfo @@ -1,2 +1,2 @@ -SHA256 (cimg-1.6.0_0/CImg_1.6.0.zip) = d11231b47a9a2822320d64b6afe2d3e3154b3eb926a5777b861d7c925a4fcc9a -SIZE (cimg-1.6.0_0/CImg_1.6.0.zip) = 3247671 +SHA256 (cimg-1.6.1_0/CImg_1.6.1.zip) = 08b34602175ad38cc6dacb2bad67b5efe9a17be6832b29b9278f73c7a2e505f2 +SIZE (cimg-1.6.1_0/CImg_1.6.1.zip) = 3250455 diff --git a/graphics/cimg/files/patch-CImg.h b/graphics/cimg/files/patch-CImg.h new file mode 100644 index 000000000000..45345545dcd1 --- /dev/null +++ b/graphics/cimg/files/patch-CImg.h @@ -0,0 +1,12 @@ +--- CImg.h.orig 2015-03-16 09:57:26 UTC ++++ CImg.h +@@ -2645,6 +2645,9 @@ namespace cimg_library_suffixed { + #endif + X11_info():nb_wins(0),events_thread(0),display(0), + nb_bits(0),is_blue_first(false),is_shm_enabled(false),byte_order(false) { ++#ifdef __FreeBSD__ ++ XInitThreads(); ++#endif + wins = new CImgDisplay*[1024]; + pthread_mutex_init(&wait_event_mutex,0); + pthread_cond_init(&wait_event,0); diff --git a/graphics/cimg/files/patch-examples__Makefile b/graphics/cimg/files/patch-examples__Makefile index c264cd82e13b..1eff395df761 100644 --- a/graphics/cimg/files/patch-examples__Makefile +++ b/graphics/cimg/files/patch-examples__Makefile @@ -1,17 +1,17 @@ ---- examples/Makefile.orig 2015-02-06 11:10:43.000000000 +0100 -+++ examples/Makefile 2015-02-07 19:42:00.000000000 +0100 -@@ -85,8 +85,8 @@ +--- examples/Makefile.orig 2015-03-16 09:57:24 UTC ++++ examples/Makefile +@@ -85,8 +85,8 @@ CIMG_EXTRA_FILES = use_tiff_stream use_j # Set correct variables and paths #--------------------------------- - CIMG_VERSION = 1.6.0 + CIMG_VERSION = 1.6.1 -X11PATH = /usr/X11R6 -CC = g++ +#X11PATH = $(X11PATH) +CC = $(CXX) EXEPFX = CCVER = $(CC) - ifeq ($(CC),g++) -@@ -100,7 +100,7 @@ + ifeq ($(notdir $(CC)),g++) +@@ -100,7 +100,7 @@ CCVER = "icpc \( `$(CC) -v 2>&1`\ CFLAGS = -I.. LIBS = else @@ -20,14 +20,14 @@ LIBS = -lm endif -@@ -124,12 +124,12 @@ +@@ -124,12 +124,12 @@ CIMG_VT100_CFLAGS = -Dcimg_use_vt100 # Flags to enable code optimization by the compiler. - ifeq ($(CC),g++) + ifeq ($(notdir $(CC)),g++) -CIMG_OPT_CFLAGS = -O2 -mtune=generic +CIMG_OPT_CFLAGS = -mtune=generic else - ifeq ($(CC),icpc) + ifeq ($(notdir $(CC)),icpc) CIMG_OPT_CFLAGS = -fast else -CIMG_OPT_CFLAGS = -O2 @@ -35,7 +35,7 @@ endif endif -@@ -141,7 +141,7 @@ +@@ -141,7 +141,7 @@ CIMG_OPENMP_CFLAGS = -Dcimg_use_openmp - endif # Flags to enable OpenCV support. @@ -44,7 +44,7 @@ CIMG_OPENCV_LIBS = -lopencv_core -lopencv_highgui #CIMG_OPENCV_LIBS = -lcv -lhighgui #-> Use this for OpenCV < 2.2.0 -@@ -152,7 +152,7 @@ +@@ -152,7 +152,7 @@ CIMG_NODISPLAY_CFLAGS = -Dcimg_display=0 # (X11 is used by CImg to handle display windows) # !!! For 64bits systems : replace -L$(X11PATH)/lib by -L$(X11PATH)/lib64 !!! CIMG_X11_CFLAGS = -I$(X11PATH)/include @@ -53,7 +53,7 @@ # Flags to enable fast image display, using the XSHM library (when using X11). # !!! Seems to randomly crash when used on MacOSX and 64bits systems, so use it only when necessary !!! -@@ -182,7 +182,7 @@ +@@ -182,7 +182,7 @@ CIMG_JPEG_LIBS = -ljpeg # Flags to enable native support for TIFF image files, using the TIFF library. # ( http://www.libtiff.org/ ) CIMG_TIFF_CFLAGS = -Dcimg_use_tiff @@ -62,7 +62,7 @@ # Flags to enable native support for MINC2 image files, using the MINC2 library. # ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide ) -@@ -191,12 +191,12 @@ +@@ -191,12 +191,12 @@ CIMG_MINC2_LIBS = -lminc_io -lvolume_io2 # Flags to enable native support for EXR image files, using the OpenEXR library. # ( http://www.openexr.com/ ) @@ -77,9 +77,9 @@ CIMG_FFMPEG_LIBS = -lavcodec -lavformat -lswscale # Flags to enable native support for compressed .cimgz files, using the Zlib library. -@@ -204,10 +204,10 @@ - CIMG_ZLIB_CFLAGS = -Dcimg_use_zlib - CIMG_ZLIB_LIBS = -lz +@@ -209,10 +209,10 @@ CIMG_ZLIB_LIBS = -lz + CIMG_CURL_CFLAGS = -Dcimg_use_curl + CIMG_CURL_LIBS = -lcurl -# Flags to enable native support of most classical image file formats, using the Magick++ library. +# Flags to enable native support of most classical image file formats, using the GraphicsMagick++ library. @@ -91,7 +91,7 @@ # Flags to enable faster Discrete Fourier Transform computation, using the FFTW3 library # ( http://www.fftw.org/ ) -@@ -220,14 +220,17 @@ +@@ -225,14 +225,17 @@ endif # Flags to enable the use of LAPACK routines for matrix computation # ( http://www.netlib.org/lapack/ ) @@ -112,18 +112,28 @@ # Flags to compile on Sun Solaris CIMG_SOLARIS_LIBS = -R$(X11PATH)/lib -lrt -lnsl -lsocket -@@ -372,6 +375,7 @@ - $(CIMG_ZLIB_CFLAGS) \ +@@ -335,7 +338,8 @@ $(CIMG_X11_CFLAGS) \ + $(CIMG_XSHM_CFLAGS)" \ + "CONF_LIBS = \ + $(CIMG_X11_LIBS) \ +-$(CIMG_XSHM_LIBS)" \ ++$(CIMG_XSHM_LIBS) \ ++$(PTHREAD_LIBS)" \ + all + + olinux: +@@ -378,6 +382,7 @@ $(CIMG_ZLIB_CFLAGS) \ + $(CIMG_CURL_CFLAGS) \ $(CIMG_OPENCV_CFLAGS) \ $(CIMG_MAGICK_CFLAGS) \ +$(CIMG_LAPACK_CFLAGS) \ $(CIMG_FFTW3_CFLAGS)" \ "CONF_LIBS = \ $(CIMG_X11_LIBS) \ -@@ -382,6 +386,7 @@ - $(CIMG_PNG_LIBS) \ +@@ -389,6 +394,7 @@ $(CIMG_PNG_LIBS) \ $(CIMG_JPEG_LIBS) \ $(CIMG_ZLIB_LIBS) \ + $(CIMG_CURL_LIBS) \ +$(CIMG_LAPACK_LIBS) \ $(CIMG_OPENCV_LIBS) \ $(CIMG_MAGICK_LIBS) \ |