# Template file for 'darktable' pkgname=darktable version=4.2.1 revision=1 # upstream only supports these archs: archs="x86_64* aarch64* ppc64le*" build_style=cmake # this makes sure to use -march=generic and -msse3 configure_args="-DBINARY_PACKAGE_BUILD=ON -DBUILD_NOISE_TOOLS=ON -DRAWSPEED_ENABLE_LTO=ON" hostmakedepends="pkg-config intltool libxslt-devel desktop-file-utils" makedepends="gtk+3-devel glib-devel exiv2-devel libxslt-devel dbus-glib-devel libcurl-devel libgphoto2-devel libwebp-devel libsoup-devel lensfun-devel sqlite-devel librsvg-devel lua54-devel json-glib-devel libgomp-devel libopenjpeg2-devel libopenexr-devel libgraphicsmagick-devel libsecret-devel pugixml-devel libosmgpsmap-devel colord-gtk-devel libheif-devel portmidi-devel $(vopt_if gmic gmic-devel) $(vopt_if avif libavif-devel) $(vopt_if sdl2 SDL2-devel)" depends="adwaita-icon-theme" short_desc="Virtual lighttable and darkroom for photographers" maintainer="lemmi " license="GPL-3.0-or-later" homepage="http://www.darktable.org/" changelog="https://github.com/darktable-org/darktable/releases" distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz" checksum=603a39c6074291a601f7feb16ebb453fd0c5b02a6f5d3c7ab6db612eadc97bac # 2022-01-05 # avif doesn't load correctly, disable avif by default for now: # [imageio_load_module_format] failed to open `avif': (null) build_options="avif gmic sdl2" if [ ! "$CROSS_BUILD" ]; then build_options_default+=" gmic sdl2" fi # Temporarily disable OpenMP for aarch64: # # see https://github.com/void-linux/void-packages/issues/21105 case $XBPS_TARGET_MACHINE in aarch64*) configure_args+=" -DUSE_OPENMP=OFF" ;; esac