summaryrefslogtreecommitdiffstats
path: root/debian/_base
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2025-01-03 14:23:27 +0100
committerSlávek Banko <slavek.banko@axis.cz>2025-01-03 14:23:27 +0100
commitfa031c5be8c5ad8ef6089d01912adda763e5d7c4 (patch)
treed68c265d028e3c69b40666147ee81cfd3f5e730e /debian/_base
parent72a9c8077251bc56e72734c4bb3a06d80788e900 (diff)
downloadtde-packaging-fa031c5be8c5ad8ef6089d01912adda763e5d7c4.tar.gz
tde-packaging-fa031c5be8c5ad8ef6089d01912adda763e5d7c4.zip
DEB libkdcraw: Build without OpenMP on i386 architecture.HEADmaster
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'debian/_base')
-rw-r--r--debian/_base/libraries/libkdcraw/debian/control2
-rwxr-xr-xdebian/_base/libraries/libkdcraw/debian/rules5
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/_base/libraries/libkdcraw/debian/control b/debian/_base/libraries/libkdcraw/debian/control
index 7c51c5b46..be6f6e763 100644
--- a/debian/_base/libraries/libkdcraw/debian/control
+++ b/debian/_base/libraries/libkdcraw/debian/control
@@ -6,7 +6,7 @@ XSBC-Original-Maintainer: Debian KDE Extras Team <pkg-kde-extras@lists.alioth.de
Uploaders: Mark Purcell <msp@debian.org>, Achim Bohnet <ach@mpe.mpg.de>, Fathi Boudra <fabo@debian.org>
Build-Depends: cdbs, debhelper (>= 10~), quilt, tde-cmake, ninja-build, tdelibs14-trinity-dev,
liblcms2-dev | liblcms1-dev, libjpeg-dev, pkg-config,
- libomp-dev [amd64 arm64 armhf i386 mips64el ppc64el] | libiomp-dev [amd64 arm64 armhf i386 mips64el ppc64el]
+ libomp-dev [amd64 arm64 armhf mips64el ppc64el riscv64]
Standards-Version: 3.8.4
Homepage: http://www.kipi-plugins.org/
diff --git a/debian/_base/libraries/libkdcraw/debian/rules b/debian/_base/libraries/libkdcraw/debian/rules
index f69d1ece9..6a83cc74c 100755
--- a/debian/_base/libraries/libkdcraw/debian/rules
+++ b/debian/_base/libraries/libkdcraw/debian/rules
@@ -4,6 +4,8 @@ include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
include debian/cdbs/debian-tde.mk
+HAVE_OPENMP= $(if $(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/libomp*.so),ON,OFF)
+
DEB_CMAKE_EXTRA_FLAGS := \
-DCMAKE_EXPORT_COMPILE_COMMANDS="ON" \
-DCMAKE_INSTALL_PREFIX="/opt/trinity" \
@@ -14,7 +16,8 @@ DEB_CMAKE_EXTRA_FLAGS := \
-DCMAKE_VERBOSE_MAKEFILE="ON" \
-DCMAKE_SKIP_RPATH="OFF" \
-DBUILD_ALL="ON" \
- -DWITH_ALL_OPTIONS="ON"
+ -DWITH_ALL_OPTIONS="ON" \
+ -DWITH_OPENMP="$(HAVE_OPENMP)"
# add installed liblcms*-dev to libkdcraw3-trinity-dev depends
common-binary-arch::