From owner-svn-ports-all@FreeBSD.ORG Thu Mar 19 20:53:03 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 99CD5721; Thu, 19 Mar 2015 20:53:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8344C7C4; Thu, 19 Mar 2015 20:53:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2JKr3Jg072936; Thu, 19 Mar 2015 20:53:03 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2JKr2of072930; Thu, 19 Mar 2015 20:53:02 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <201503192053.t2JKr2of072930@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Thu, 19 Mar 2015 20:53:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381691 - in head/graphics/cimg: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2015 20:53:03 -0000 Author: thierry Date: Thu Mar 19 20:53:01 2015 New Revision: 381691 URL: https://svnweb.freebsd.org/changeset/ports/381691 QAT: https://qat.redports.org/buildarchive/r381691/ Log: Upgrade to 1.6.1. Added: head/graphics/cimg/files/patch-CImg.h (contents, props changed) Modified: head/graphics/cimg/Makefile head/graphics/cimg/distinfo head/graphics/cimg/files/patch-examples__Makefile Modified: head/graphics/cimg/Makefile ============================================================================== --- head/graphics/cimg/Makefile Thu Mar 19 20:46:51 2015 (r381690) +++ head/graphics/cimg/Makefile Thu Mar 19 20:53:01 2015 (r381691) @@ -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 Modified: head/graphics/cimg/distinfo ============================================================================== --- head/graphics/cimg/distinfo Thu Mar 19 20:46:51 2015 (r381690) +++ head/graphics/cimg/distinfo Thu Mar 19 20:53:01 2015 (r381691) @@ -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 Added: head/graphics/cimg/files/patch-CImg.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/cimg/files/patch-CImg.h Thu Mar 19 20:53:01 2015 (r381691) @@ -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); Modified: head/graphics/cimg/files/patch-examples__Makefile ============================================================================== --- head/graphics/cimg/files/patch-examples__Makefile Thu Mar 19 20:46:51 2015 (r381690) +++ head/graphics/cimg/files/patch-examples__Makefile Thu Mar 19 20:53:01 2015 (r381691) @@ -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) \