From 00fd204d2e923c88ffcb2868759626787202bf84 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Wed, 12 Jul 2023 19:47:02 +0300 Subject: [PATCH] fix i386 --- debian/control | 6 +++--- debian/rules | 40 +++++++++++++++++++++++++++------------- 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/debian/control b/debian/control index 69e3a05..f40f3d4 100644 --- a/debian/control +++ b/debian/control @@ -14,8 +14,8 @@ Build-Depends: debhelper-compat (= 13), python3-mako, python3-setuptools, python3-wheel, - python3-numpy, - python3-matplotlib, + python3-numpy [!i386], + python3-matplotlib [!i386], pkg-config, glslang-tools, mesa-common-dev, @@ -25,7 +25,7 @@ Build-Depends: debhelper-compat (= 13), libglew-dev, libopengl-dev, nlohmann-json3-dev, - libnvidia-ml-dev, + libnvidia-ml-dev [!i386], libglfw3-dev, libspdlog-dev, libx11-dev, diff --git a/debian/rules b/debian/rules index d4027e7..9c26374 100755 --- a/debian/rules +++ b/debian/rules @@ -4,16 +4,30 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ - -override_dh_auto_configure: - dh_auto_configure -- \ - --wrap-mode=default \ - -Dwith_nvml=enabled \ - -Dinclude_doc=true \ - -Dwith_xnvctrl=enabled \ - -Dwith_x11=enabled \ - -Dwith_wayland=enabled \ - -Dwith_dbus=enabled \ - -Dmangoapp=true \ - -Dmangohudctl=true \ - -Dmangoapp_layer=true +ifeq (i386,$(DEB_HOST_ARCH)) + override_dh_auto_configure: + dh_auto_configure -- \ + --wrap-mode=default \ + -Dwith_nvml=false \ + -Dinclude_doc=true \ + -Dwith_xnvctrl=enabled \ + -Dwith_x11=enabled \ + -Dwith_wayland=enabled \ + -Dwith_dbus=enabled \ + -Dmangoapp=true \ + -Dmangohudctl=true \ + -Dmangoapp_layer=true +else + override_dh_auto_configure: + dh_auto_configure -- \ + --wrap-mode=default \ + -Dwith_nvml=enabled \ + -Dinclude_doc=true \ + -Dwith_xnvctrl=enabled \ + -Dwith_x11=enabled \ + -Dwith_wayland=enabled \ + -Dwith_dbus=enabled \ + -Dmangoapp=true \ + -Dmangohudctl=true \ + -Dmangoapp_layer=true +endif \ No newline at end of file