[go: up one dir, main page]

File: rules

package info (click to toggle)
colmap 3.10-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,092 kB
  • sloc: cpp: 91,779; ansic: 17,774; python: 3,459; sh: 216; makefile: 154
file content (45 lines) | stat: -rwxr-xr-x 1,520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

# skip wasting 2.3 GB for dbgsym pkg
#export DH_BUILD_MAINT_OPTIONS=noddebs
export DEB_DH_STRIP_ARGS := --no-automatic-dbgsym

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# for src/ext/PBA/SparseBundleCPU.cpp
ifeq (,$(filter $(DEB_HOST_ARCH), arm64))
    DEB_CPPFLAGS_MAINT_APPEND += -DDISABLE_CPU_NEON
endif
#ifeq (,$(filter $(DEB_HOST_ARCH), amd64))
#    DEB_CPPFLAGS_MAINT_APPEND += -DDISABLE_CPU_SSE
#endif
export DEB_CPPFLAGS_MAINT_APPEND

%:
	dh $@

#override_dh_auto_configure:
#	dh_auto_configure -- \
#	-DSuiteSparse_AMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \
#	-DSuiteSparse_AMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \
#	-DSuiteSparse_CAMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \
#	-DSuiteSparse_CCOLAMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \
#	-DSuiteSparse_CHOLMOD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \
#	-DSuiteSparse_COLAMD_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \
#	-DSuiteSparse_Config_INCLUDE_DIR=/usr/include/suitesparse/suitesparse \
#	-DSuiteSparse_SPQR_INCLUDE_DIR=/usr/include/suitesparse/suitesparse

#override_dh_auto_test:
#	@echo skipping test

override_dh_auto_install:
	@echo skipping install