b6bcd8cd34
* daemontools and dmraid is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
41 lines
1.5 KiB
Bash
41 lines
1.5 KiB
Bash
# Template file for 'darktable'
|
|
pkgname=darktable
|
|
version=3.4.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 libglade-devel libxslt-devel
|
|
dbus-glib-devel libcurl-devel libgphoto2-devel libwebp-devel libsoup-devel
|
|
lensfun-devel sqlite-devel librsvg-devel lua53-devel json-glib-devel
|
|
libgomp-devel libopenjpeg2-devel libopenexr-devel libgraphicsmagick-devel
|
|
libsecret-devel pugixml-devel libosmgpsmap-devel colord-gtk-devel
|
|
$(vopt_if gmic gmic-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="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=7fc3f851da9bcd7c5053ecd09f21aa3eb6103be98a6c58f52010b6f22174941e
|
|
|
|
build_options="gmic"
|
|
|
|
if [ ! "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gmic"
|
|
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
|