From owner-svn-ports-all@freebsd.org Sat Sep 14 11:14:04 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4AC96F1146; Sat, 14 Sep 2019 11:14:04 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46VqdS1JVSz3Lms; Sat, 14 Sep 2019 11:14:04 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0FE5E1EF18; Sat, 14 Sep 2019 11:14:04 +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 x8EBE3Ng056575; Sat, 14 Sep 2019 11:14:03 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8EBE3C1056572; Sat, 14 Sep 2019 11:14:03 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <201909141114.x8EBE3C1056572@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Sat, 14 Sep 2019 11:14:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512005 - head/graphics/rawtherapee X-SVN-Group: ports-head X-SVN-Commit-Author: mandree X-SVN-Commit-Paths: head/graphics/rawtherapee X-SVN-Commit-Revision: 512005 X-SVN-Commit-Repository: ports 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.29 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: Sat, 14 Sep 2019 11:14:04 -0000 Author: mandree Date: Sat Sep 14 11:14:03 2019 New Revision: 512005 URL: https://svnweb.freebsd.org/changeset/ports/512005 Log: Update to new rawtherapee release 5.7. Quoting the webpage: + Film Negative tool, for easily developing raw photographs of film negatives. + Support for reading “rating” tags from Exif and XMP, shown in the File Browser/Filmstrip using RawTherapee’s star rating system. + Hundreds of bug fixes, speed optimizations and raw format support improvements. While here, simplify compiler choice and optimize the output: - always require GCC >= 9 and binutils - remove OPTIMIZED_CFLAGS option and always turn it on - always require SSE2 on i386 and amd64 - turn on LTO (link-time optimization/LTCG link-time code generation (I just tried one rawtherapee-cli conversion on a Sony ARW file, and CPU user time went down from 25 to 17 s) - add a note about lensfun data set downloads Modified: head/graphics/rawtherapee/Makefile head/graphics/rawtherapee/distinfo head/graphics/rawtherapee/pkg-message Modified: head/graphics/rawtherapee/Makefile ============================================================================== --- head/graphics/rawtherapee/Makefile Sat Sep 14 10:33:59 2019 (r512004) +++ head/graphics/rawtherapee/Makefile Sat Sep 14 11:14:03 2019 (r512005) @@ -2,9 +2,7 @@ # $FreeBSD$ PORTNAME= rawtherapee -PORTVERSION= 5.6 -PORTREVISION= 2 -#DISTNAME= ${PORTNAME}-${PORTVERSION:R}-rc2${DISTVERSIONSUFFIX} +PORTVERSION= 5.7 CATEGORIES= graphics MASTER_SITES= http://rawtherapee.com/shared/source/ @@ -28,17 +26,20 @@ LIB_DEPENDS= \ libsigc-2.0.so:devel/libsigc++20 \ libtiff.so:graphics/tiff -USES= cmake desktop-file-utils gnome dos2unix \ +USES= cmake desktop-file-utils compiler:gcc-c++11-lib gnome \ jpeg localbase:ldflags pkgconfig tar:xz DOS2UNIX_REGEX= .*\.(cc|h) LDFLAGS+= -Wl,--as-needed # fontconfig, freetype, gettext, libX11 USE_GNOME= gtkmm30 librsvg2 +USE_GCC= 9+ +USE_BINUTILS= yes -# The -D_GLIBCXX_USE_C99 works around stoi not being defined by default, -# because the GCC headers believe FreeBSD insufficiently C99 compliant. -CFLAGS+= -I${LOCALBASE}/include -fPIC -D_GLIBCXX_USE_C99 -Wno-deprecated-declarations -Wno-unused-result -Wno-overloaded-virtual -LDFLAGS+= -lpthread +_LTO_FLAGS= -flto=${_MAKE_JOBS_NUMBER} -fuse-linker-plugin +_AR= ${CC:S/gcc/gcc-ar/} +_RANLIB= ${CC:S/gcc/gcc-ranlib/} +CFLAGS+= -I${LOCALBASE}/include -fPIC ${_LTO_FLAGS} ${_OPT_FLAGS} +LDFLAGS+= -Wl,--as-needed -lpthread ${_LTO_FLAGS} ${_OPT_FLAGS} CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" \ -DCREDITSDIR="${DOCSDIR}" \ -DLICENCEDIR="${DOCSDIR}" \ @@ -46,6 +47,8 @@ CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" \ -DDATADIR="${DATADIR}" \ -DCACHE_NAME_SUFFIX="" \ -Wno-dev \ + -DCMAKE_AR:FILEPATH=${_AR} \ + -DCMAKE_RANLIB:FILEPATH=${_RANLIB} \ -DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW # 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default # any more. The CMP0056 policy must be explicitly set to NEW to ensure @@ -63,12 +66,11 @@ CMAKE_ARGS+= -DPROC_TARGET_NUMBER="1" RTDIR= ${PREFIX}/libdata/${PORTNAME} -OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS NATIVE -OPTIONS_DEFINE_i386= DOCS OPTIMIZED_CFLAGS NATIVE OPENMP -OPTIONS_DEFINE_amd64= DOCS OPTIMIZED_CFLAGS NATIVE OPENMP -OPTIONS_DEFAULT= OPTIMIZED_CFLAGS OPENMP +OPTIONS_DEFINE= DOCS NATIVE +OPTIONS_DEFINE_i386= DOCS NATIVE OPENMP +OPTIONS_DEFINE_amd64= DOCS NATIVE OPENMP +OPTIONS_DEFAULT= OPENMP OPENMP_DESC= Enable OpenMP parallel processing (i386/amd64 only) -OPTIMIZED_CFLAGS_DESC= Use extra optimizations (needs SSE2 on i386/amd64) NATIVE_DESC= Use -march=native (avoid for generic packages!) OPENMP_CMAKE_BOOL= OPTION_OMP @@ -76,7 +78,6 @@ OPENMP_CMAKE_BOOL= OPTION_OMP .include # ------------------------------------------------------------------- -# .if (${OPSYS} == FreeBSD) && (${OSVERSION} >= 1300000) # don't waste everybody's time with Tier-2 and moving targets. @@ -100,38 +101,19 @@ LDFLAGS+= ${OPENMP_FLAGS} STRIP= .endif -.if ${ARCH} == i386 -. if ${PORT_OPTIONS:MOPENMP} -# OpenMP + clang on i386 will miss atomic ops => use GCC -USES+= compiler:gcc-c++11-lib -. else -USES+= compiler:c++11-lib -. endif -# If we were to use GCC on i386, we'd need to use -mstackrealign or similar -# options, else we get SIGBUS when SSE2 is enabled due to improper alignment. -# Base clang is good enough though. Workaround implemented below. -.else -USES+= compiler:c++14-lang +_OPT_FLAGS= -O3 -funroll-loops +# GCC 5.4 includes -fexpensive-optimizations in -O2 already +.if (${ARCH} == i386) || (${ARCH} == amd64) +_OPT_FLAGS+= -msse2 .endif -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 -funroll-loops -# GCC 5.4 includes -fexpensive-optimizations in -O2 already -. if (${ARCH} == i386) || (${ARCH} == amd64) -CFLAGS+= -msse2 -. endif +.if ${ARCH} == i386 +_OPT_FLAGS+= -mstackrealign .endif # ------------------------------------------------------------------- .include - -.if ${CHOSEN_COMPILER_TYPE} == gcc -# work around compiler faults -.if ${ARCH} == i386 -CFLAGS+= -mstackrealign -.endif -.endif post-patch: @${REINPLACE_CMD} -e 's#DESTINATION "$${CMAKE_INSTALL_PREFIX}/share/man/man1"#DESTINATION "${MANPREFIX}/man/man1/"#' \ Modified: head/graphics/rawtherapee/distinfo ============================================================================== --- head/graphics/rawtherapee/distinfo Sat Sep 14 10:33:59 2019 (r512004) +++ head/graphics/rawtherapee/distinfo Sat Sep 14 11:14:03 2019 (r512005) @@ -1,3 +1,3 @@ -TIMESTAMP = 1555804282 -SHA256 (rawtherapee-5.6.tar.xz) = f9ea4b159580bd99aa7eaba9487c07e9dc7c095405f310f243400e67ae630d74 -SIZE (rawtherapee-5.6.tar.xz) = 12083264 +TIMESTAMP = 1568321120 +SHA256 (rawtherapee-5.7.tar.xz) = dbd7c7cf7488fb97c520821eee2c745291637644b391e3ec0ed3a29701f1a9c7 +SIZE (rawtherapee-5.7.tar.xz) = 12092496 Modified: head/graphics/rawtherapee/pkg-message ============================================================================== --- head/graphics/rawtherapee/pkg-message Sat Sep 14 10:33:59 2019 (r512004) +++ head/graphics/rawtherapee/pkg-message Sat Sep 14 11:14:03 2019 (r512005) @@ -1,6 +1,12 @@ [ { type: install message: <