| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | include /usr/share/dpkg/architecture.mk |
| 4 | |
| 5 | # skip wasting 2.3 GB for dbgsym pkg |
| 6 | #export DH_BUILD_MAINT_OPTIONS=noddebs |
| 7 | export DEB_DH_STRIP_ARGS := --no-automatic-dbgsym |
| 8 | |
| 9 | # see FEATURE AREAS in dpkg-buildflags(1) |
| 10 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 11 | |
| 12 | # see ENVIRONMENT in dpkg-buildflags(1) |
| 13 | # package maintainers to append CFLAGS |
| 14 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 15 | # package maintainers to append LDFLAGS |
| 16 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 17 | |
| 18 | # for src/ext/PBA/SparseBundleCPU.cpp |
| 19 | ifeq (,$(filter $(DEB_HOST_ARCH), arm64)) |
| 20 | DEB_CPPFLAGS_MAINT_APPEND += -DDISABLE_CPU_NEON |
| 21 | endif |
| 22 | #ifeq (,$(filter $(DEB_HOST_ARCH), amd64)) |
| 23 | # DEB_CPPFLAGS_MAINT_APPEND += -DDISABLE_CPU_SSE |
| 24 | #endif |
| 25 | export DEB_CPPFLAGS_MAINT_APPEND |
| 26 | |
| 27 | %: |
| 28 | dh $@ |
| 29 | |
| 30 | override_dh_auto_configure: |
| 31 | dh_auto_configure -- \ |
| 32 | -DFETCH_FAISS=OFF \ |
| 33 | -DFETCH_POSELIB=OFF \ |
| 34 | -DFETCH_ONNX=OFF \ |
| 35 | -DCGAL_ENABLED=OFF \ |
| 36 | # -DSuiteSparse_AMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \ |
| 37 | # -DSuiteSparse_AMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \ |
| 38 | # -DSuiteSparse_CAMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \ |
| 39 | # -DSuiteSparse_CCOLAMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \ |
| 40 | # -DSuiteSparse_CHOLMOD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \ |
| 41 | # -DSuiteSparse_COLAMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \ |
| 42 | # -DSuiteSparse_Config_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \ |
| 43 | # -DSuiteSparse_SPQR_INCLUDE_DIR=/usr/include/suitesparse/suitesparse |
| 44 | |
| 45 | #override_dh_auto_test: |
| 46 | # @echo skipping test |
| 47 | |
| 48 | override_dh_auto_install: |
| 49 | @echo skipping install |