# Template file for 'rawtherapee'
pkgname=rawtherapee
version=5.12
revision=2
build_style=cmake
configure_args="-DCACHE_NAME_SUFFIX=\"\" -DWITH_LTO=ON -DWITH_SYSTEM_LIBRAW=ON"
hostmakedepends="pkg-config"
makedepends="fftw-devel gtkmm-devel lensfun-devel libcanberra-devel libgomp-devel
 libiptcdata-devel librsvg-devel exiv2-devel libraw-devel libjxl-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Free RAW converter and digital photo processing software"
maintainer="Daniel Martinez <danielmartinez@cock.li>"
license="GPL-3.0-or-later"
homepage="https://rawtherapee.com/"
changelog="https://raw.githubusercontent.com/Rawtherapee/RawTherapee/${version}/RELEASE_NOTES.txt"
distfiles="https://rawtherapee.com/shared/source/rawtherapee-${version}.tar.xz"
checksum=d9a6c10537d64a285bc465675fe59aaa94ce3223823dfbecf0ae2c9599082d57

case "$XBPS_TARGET_MACHINE" in
	i686*|x86_64*) configure_args+=" -DHAVE_X86_SSE_MATH=ON"
esac

CFLAGS+=" -O3"
CXXFLAGS+=" -O3"
