File: rules

package info (click to toggle)
bcmatroska2 5.3.101-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,012 kB
  • sloc: ansic: 70,674; asm: 3,191; cpp: 3,011; makefile: 562; pascal: 457; xml: 227; sh: 189; php: 182
file content (29 lines) | stat: -rwxr-xr-x 887 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

features += -DBUILD_SHARED_LIBS=ON

# Upstream unconditionally sets CMAKE_INSTALL_RPATH. Make it ineffective by
# setting CMAKE_SKIP_RPATH
options += -DCMAKE_SKIP_RPATH=ON
options += -DDEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM)
options += -DDEB_SOVERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | cut -d. -f1)
# To avoid a conflict with libebml-dev and libmatroska-dev we have to
# place the headers into its own subdirectory.  Doing it here obviates
# the need for patching any cmake and source files.
options += -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/bcmatroska2

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=cmake -- \
	${features} \
	${options}