File: rules

package info (click to toggle)
lensfun 0.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,228 kB
  • ctags: 1,429
  • sloc: xml: 25,796; cpp: 7,760; ansic: 7,411; python: 1,602; makefile: 19; sh: 17; ruby: 16
file content (28 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download
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
#!/usr/bin/make -f

DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)

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 $@ --parallel --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)

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

override_dh_install:
	dh_install --list-missing

override_dh_compress:
	dh_compress -Xexamples

override_dh_makeshlibs:
	dh_makeshlibs -V 'liblensfun1 (>= 0.3.2)'