diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-09 08:33:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 08:33:06 +0200 |
commit | 51c6438ff5abf0f40827d8278ecb847b80fd0997 (patch) | |
tree | 9363616aa9555cf22748a4115e800854301bce06 | |
parent | 29dc66896daef970cb1d03d0d01b7b7b35057a2a (diff) | |
parent | b12d1c8d7a337e8ff6e3fa207ee45822c4a075ab (diff) |
Merge pull request #95 from SolidHal/dev
Rework the debian/rules makefile to apply build flags to specific architectures, correct overrides
-rwxr-xr-x | debian/rules | 20 |
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 |
2 | export DH_VERBOSE = 1 | 2 | export DH_VERBOSE = 1 |
3 | export DEB_BUILD_MAINT_OPTIONS=hardening=-format | 3 | export DEB_BUILD_MAINT_OPTIONS=hardening=-format |
4 | export 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 | ||
7 | ifeq ($(DEB_BUILD_ARCH), amd64) | ||
8 | LAGRANGE_CMAKE_FLAGS += -DTFDN_ENABLE_SSE41=NO | ||
9 | else ifeq ($(DEB_BUILD_ARCH), i386) | ||
10 | LAGRANGE_CMAKE_FLAGS += -DTFDN_ENABLE_SSE41=NO | ||
11 | endif | ||
12 | |||
13 | # on non x86_64/x86, specifically armhf, arm64, arm, OpenGL hw acceleration under X11 is a bit too slow. | ||
14 | ifneq ($(DEB_BUILD_ARCH), amd64) | ||
15 | LAGRANGE_CMAKE_FLAGS += -DENABLE_KERNING=NO -DENABLE_X11_SWRENDER=YES | ||
16 | endif | ||
17 | |||
4 | 18 | ||
5 | %: | 19 | %: |
6 | dh $@ | 20 | dh $@ |
7 | 21 | ||
8 | override_dh_auto_configure: | 22 | override_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 | ||
11 | override_dh_build_configure: | 25 | override_dh_auto_build: |
12 | cmake --build . | 26 | cmake --build . |