summaryrefslogtreecommitdiffstats
path: root/ubuntu
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:35:48 +0100
commit34a4b68cbe4877a7f45285aa50fdae49d955ade2 (patch)
tree0facdabbf6705b1f06fae89bac441dac94683e3c /ubuntu
parent1e34ee190cd2ef7cc3793ee16f8c7e2c2944b775 (diff)
downloadtde-packaging-34a4b68cbe4877a7f45285aa50fdae49d955ade2.tar.gz
tde-packaging-34a4b68cbe4877a7f45285aa50fdae49d955ade2.zip
DEB libkdcraw: Build without OpenMP on i386 architecture.r14.1.x
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit fa031c5be8c5ad8ef6089d01912adda763e5d7c4)
Diffstat (limited to 'ubuntu')
-rw-r--r--ubuntu/_base/libraries/libkdcraw/debian/control2
-rwxr-xr-xubuntu/_base/libraries/libkdcraw/debian/rules5
2 files changed, 5 insertions, 2 deletions
diff --git a/ubuntu/_base/libraries/libkdcraw/debian/control b/ubuntu/_base/libraries/libkdcraw/debian/control
index 26cb1d4ef..eafecaec3 100644
--- a/ubuntu/_base/libraries/libkdcraw/debian/control
+++ b/ubuntu/_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/ubuntu/_base/libraries/libkdcraw/debian/rules b/ubuntu/_base/libraries/libkdcraw/debian/rules
index f69d1ece9..6a83cc74c 100755
--- a/ubuntu/_base/libraries/libkdcraw/debian/rules
+++ b/ubuntu/_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::