From owner-svn-ports-all@freebsd.org Fri Dec 30 17:01:51 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05FFFC96E32; Fri, 30 Dec 2016 17:01:51 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 BB1751976; Fri, 30 Dec 2016 17:01:50 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBUH1n6O089821; Fri, 30 Dec 2016 17:01:49 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBUH1nnW089820; Fri, 30 Dec 2016 17:01:49 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <201612301701.uBUH1nnW089820@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Fri, 30 Dec 2016 17:01:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r430006 - head/graphics/rawtherapee 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.23 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: Fri, 30 Dec 2016 17:01:51 -0000 Author: mandree Date: Fri Dec 30 17:01:49 2016 New Revision: 430006 URL: https://svnweb.freebsd.org/changeset/ports/430006 Log: Clean up, minor options fixes and shuffling. - drop -ffast-math from the compiler flags [1] - drop libc++ hacks for FreeBSD 9.x/10.1 and use the new gcc-c++11-lib [2] - be sure to optimize for packaging when PACKAGE_BUILDING [3] - simplify CMake OPTION_OMP passing [2] - bump PORTREVISION Reported by: Ingo Weyrich [1], jbeich@ [2], DrSlony Modified: head/graphics/rawtherapee/Makefile Modified: head/graphics/rawtherapee/Makefile ============================================================================== --- head/graphics/rawtherapee/Makefile Fri Dec 30 17:00:25 2016 (r430005) +++ head/graphics/rawtherapee/Makefile Fri Dec 30 17:01:49 2016 (r430006) @@ -3,7 +3,7 @@ PORTNAME= rawtherapee PORTVERSION= 4.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= http://rawtherapee.com/shared/source/ @@ -22,7 +22,8 @@ LIB_DEPENDS= libgtkmm-2.4.so:x11-toolkit libfftw3f.so:math/fftw3-float \ libcanberra-gtk3.so:audio/libcanberra-gtk3 -USES= cmake:outsource compiler:features desktop-file-utils dos2unix jpeg pkgconfig tar:xz +USES= cmake:outsource compiler:gcc-c++11-lib desktop-file-utils dos2unix \ + jpeg pkgconfig tar:xz DOS2UNIX_REGEX= .*\.(cc|h) USE_GNOME= gtk20 glib20 USE_LDCONFIG= yes @@ -43,6 +44,10 @@ SUB_FILES= rawtherapee SUB_LIST= RTDIR="${RTDIR}" INSTALLS_ICONS= yes +.if defined(PACKAGE_BUILDING) +CMAKE_ARGS+= -DPROC_TARGET_NUMBER="1" +.endif + RTDIR= ${PREFIX}/libdata/${PORTNAME} OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENMP @@ -50,41 +55,21 @@ OPTIONS_DEFAULT= OPTIMIZED_CFLAGS OPENMP OPENMP_DESC= Enable multicore processing using OpenMP OPTIMIZED_CFLAGS_DESC= Use extra compiler optimizations (requires SSE support) +OPENMP_CMAKE_BOOL= OPTION_OMP + .include # ------------------------------------------------------------------- -# USE_GCC must be late so the compiler feature checks work to detect -# that the base C++ standard library switched to libc++: -# We also must pin 4.8+ because 4.6 and 4.7 segfault on 10.0-RELEASE amd64 -# wwhen compiling improcfun.cc: -USE_GCC= yes - -.if ${COMPILER_FEATURES:Mlibc++} -LDFLAGS+= -L/usr/local/lib/c++ -CXXFLAGS+= -nostdinc++ -isystem /usr/local/include/c++/v1 -CFLAGS+= -isystem /usr/local/include/c++/v1 -BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++ -.endif .if ${ARCH} == "amd64" || ${ARCH} == "i386" .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 -ffast-math -fexpensive-optimizations \ +CFLAGS+= -O3 -fexpensive-optimizations \ -funroll-loops -msse -CXXFLAGS+= -O3 -ffast-math \ +CXXFLAGS+= -O3 \ -funroll-loops -msse .endif .endif -.if ${PORT_OPTIONS:MOPENMP} -CMAKE_ARGS+= -DOPTION_OMP:BOOL=ON -.else -CMAKE_ARGS+= -DOPTION_OMP:BOOL=OFF -.endif - -#.if ${OSVERSION} >= 1100000 -#BROKEN= rawtherapee is known to crash on -HEAD and requires debugging that the maintainer cannot provide. -#.endif - # ------------------------------------------------------------------- post-patch: