| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddir build/ |
| 7 |
|
| 8 |
override_dh_auto_configure: |
| 9 |
dh_auto_configure -- \ |
| 10 |
-DCMAKE_BUILD_TYPE=Release \ |
| 11 |
-DNEO_DISABLE_MITIGATIONS=TRUE \ |
| 12 |
-DNEO_ENABLE_I915_PRELIM_DETECTION=TRUE \ |
| 13 |
-DNEO_ENABLE_XE_PRELIM_DETECTION=TRUE \ |
| 14 |
-DSKIP_UNIT_TESTS=1 \ |
| 15 |
-Wno-dev |
| 16 |
|
| 17 |
override_dh_makeshlibs: |
| 18 |
dh_makeshlibs -a -- -c4 |
| 19 |
|
| 20 |
override_dh_gencontrol: |
| 21 |
dh_gencontrol -- \ |
| 22 |
-V"igc:LLVM-Version=$(shell dpkg-query -f '$${Provides}' -W libigc2 | sed -rn 's/.*libigc2\+llvm([0-9]+).*/\1/p')" \ |
| 23 |
-V"igc:Upstream-Version=$(shell dpkg-query -f '$${source:Upstream-Version}' -W libigc2)" |
| 24 |
|
| 25 |
get-orig-source: SOURCE=intel-compute-runtime |
| 26 |
get-orig-source: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//') |
| 27 |
get-orig-source: |
| 28 |
tar --transform 's,^,$(SOURCE)-$(UV)/,' \ |
| 29 |
--exclude '^debian' --exclude-vcs \ |
| 30 |
-cJf ../$(SOURCE)_$(UV).orig.tar.xz . |