From bc3bb34c286b0f1522353ff7f307d944c4033da1 Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Tue, 23 Apr 2024 15:18:27 -0400 Subject: [PATCH] rawtherapee: enable sse2 and LTO --- srcpkgs/rawtherapee/template | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/srcpkgs/rawtherapee/template b/srcpkgs/rawtherapee/template index d60821a1d1c8d7..8732e39b4fcf78 100644 --- a/srcpkgs/rawtherapee/template +++ b/srcpkgs/rawtherapee/template @@ -1,13 +1,15 @@ # Template file for 'rawtherapee' pkgname=rawtherapee version=5.10 -revision=1 +revision=2 build_style=cmake -configure_args="-DCACHE_NAME_SUFFIX=\"\"" +configure_args="-DCACHE_NAME_SUFFIX=\"\" + -DWITH_LTO=ON + -DENABLE_TCMALLOC=ON" hostmakedepends="pkg-config" makedepends="fftw-devel gtkmm-devel lensfun-devel libcanberra-devel libgomp-devel libiptcdata-devel librsvg-devel - exiv2-devel" + exiv2-devel gperftools-devel" depends="desktop-file-utils hicolor-icon-theme" short_desc="Free RAW converter and digital photo processing software" maintainer="Daniel Martinez " @@ -17,5 +19,9 @@ changelog="https://github.com/Beep6581/RawTherapee/blob/${version}/RELEASE_NOTES distfiles="https://rawtherapee.com/shared/source/rawtherapee-${version}.tar.xz" checksum=a799b53cd54dba4a211479e342ffc9c5db1c44d3d6c3a27d5cc13adf0debd2da -CFLAGS="-O3" -CXXFLAGS="-O3" +case "$XBPS_TARGET_MACHINE" in + i686*|x86_64*) configure_args+=" -DHAVE_X86_SSE_MATH=ON" +esac + +CFLAGS+=" -O3" +CXXFLAGS+=" -O3"