File: rules

package info (click to toggle)
lensfun 0.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,008 kB
  • sloc: xml: 46,018; cpp: 7,830; ansic: 7,411; python: 1,725; sh: 17; ruby: 16; makefile: 12; javascript: 3
file content (18 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifeq ($(DEB_HOST_ARCH_CPU),amd64)
  EXTRA_CMAKE_ARGS += -DBUILD_FOR_SSE=ON -DBUILD_FOR_SSE2=ON
else
  EXTRA_CMAKE_ARGS += -DBUILD_FOR_SSE=OFF -DBUILD_FOR_SSE2=OFF
endif

%:
	dh $@ --with=python3

override_dh_auto_configure:
	dh_auto_configure -- -DBUILD_DOC=ON -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/liblensfun-doc/html" -DBUILD_TESTS=ON $(EXTRA_CMAKE_ARGS)

execute_before_dh_auto_clean:
	find -name "*.pyc" -exec rm -f '{}' \;