summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules20
1 files changed, 17 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index 9e306b0b..f85bd158 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,26 @@
1#!/usr/bin/make -f 1#!/usr/bin/make -f
2export DH_VERBOSE = 1 2export DH_VERBOSE = 1
3export DEB_BUILD_MAINT_OPTIONS=hardening=-format 3export DEB_BUILD_MAINT_OPTIONS=hardening=-format
4export LAGRANGE_CMAKE_FLAGS= -DCMAKE_BUILD_TYPE=Release -DENABLE_WINDOWPOS_FIX=YES
5
6# SSE4.1 support (or lack thereof) is only a concern on x86_64/x86 machines
7ifeq ($(DEB_BUILD_ARCH), amd64)
8 LAGRANGE_CMAKE_FLAGS += -DTFDN_ENABLE_SSE41=NO
9else ifeq ($(DEB_BUILD_ARCH), i386)
10 LAGRANGE_CMAKE_FLAGS += -DTFDN_ENABLE_SSE41=NO
11endif
12
13# on non x86_64/x86, specifically armhf, arm64, arm, OpenGL hw acceleration under X11 is a bit too slow.
14ifneq ($(DEB_BUILD_ARCH), amd64)
15 LAGRANGE_CMAKE_FLAGS += -DENABLE_KERNING=NO -DENABLE_X11_SWRENDER=YES
16endif
17
4 18
5%: 19%:
6 dh $@ 20 dh $@
7 21
8override_dh_auto_configure: 22override_dh_auto_configure:
9 cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_WINDOWPOS_FIX=YES -DTFDN_ENABLE_SSE41=NO -DCMAKE_INSTALL_PREFIX=$(pwd)/../usr 23 cmake . $(LAGRANGE_CMAKE_FLAGS) -DCMAKE_INSTALL_PREFIX=/usr/
10 24
11override_dh_build_configure: 25override_dh_auto_build:
12 cmake --build . 26 cmake --build .