Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/dpkg/pkg-info.mk
8
9 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
10
11 features += -DBUILD_SHARED_LIBS=ON
12
13 # Upstream unconditionally sets CMAKE_INSTALL_RPATH. Make it ineffective by
14 # setting CMAKE_SKIP_RPATH
15 options += -DCMAKE_SKIP_RPATH=ON
16 options += -DDEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM)
17 options += -DDEB_SOVERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | cut -d. -f1)
18 # To avoid a conflict with libebml-dev and libmatroska-dev we have to
19 # place the headers into its own subdirectory. Doing it here obviates
20 # the need for patching any cmake and source files.
21 options += -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/bcmatroska2
22
23 %:
24 dh $@ --buildsystem=cmake
25
26 override_dh_auto_configure:
27 dh_auto_configure -O--buildsystem=cmake -- \
28 ${features} \
29 ${options}