2025-02-12 15:47:32 +01:00

43 lines
1.6 KiB
Bash

# Template file for 'darktable'
pkgname=darktable
version=5.0.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
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 libjxl-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 <lemmi@nerd2nerd.org>"
license="GPL-3.0-or-later"
homepage="https://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=4a918d094ebba983ef67a10cc715c3d7e8ca738009920a9ff65d33417b6dd984
build_options="avif gmic sdl2"
build_options_default="avif sdl2"
case "${XBPS_TARGET_MACHINE}" in
aarch64) ;;
*) build_options_default+=" gmic" ;;
esac
# 2024-12-27 enabling openmp on anything but x86_64 causes linker errors
# e.g. undefined reference to `_ZGVnN2vv_powf'
case "${XBPS_TARGET_MACHINE}" in
x86_64) ;;
*) configure_args+=" -DUSE_OPENMP=OFF" ;;
esac