File: rules

package info (click to toggle)
opencolorio 2.1.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 52,956 kB
  • sloc: cpp: 173,510; python: 10,991; java: 1,467; ansic: 1,380; sh: 271; objc: 211; javascript: 98; makefile: 33
file content (34 lines) | stat: -rwxr-xr-x 982 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
29
30
31
32
33
34
#!/usr/bin/make -f

export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
BLDDIR = debian/cmake
INSTDIR = debian/tmp

%:
	dh $@ -Scmake -B$(BLDDIR) --with python3

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
		-DCMAKE_CXX_STANDARD=17 \
		-DCMAKE_INSTALL_MESSAGE="ALWAYS" \
		-DCMAKE_SKIP_RPATH=ON \
		-DOCIO_BUILD_NUKE=OFF \
		-DOCIO_BUILD_STATIC=OFF \
		-DOCIO_BUILD_TESTS=OFF \
		-DOCIO_INSTALL_EXT_PACKAGES=NONE \
		-DOCIO_USE_SSE=OFF \
		-Dpystring_INCLUDE_DIR:PATH="/usr/include"

override_dh_auto_install:
	dh_auto_install
	rm -f $(INSTDIR)/usr/share/ocio/setup_ocio.sh
	rm -f $(INSTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/lib*.a

override_dh_auto_test: