File: rules

package info (click to toggle)
bctoolbox 5.3.105-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,380 kB
  • sloc: ansic: 9,623; cpp: 5,550; sh: 26; makefile: 12
file content (25 lines) | stat: -rwxr-xr-x 813 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
#!/usr/bin/make -f
# See debhelper(7)
#export DH_VERBOSE = 1

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
	dh $@ --buildsystem=cmake

# As of version 0.4.0, upstream recommends CMake for configuration.
# Requires CUnit 3.x by default, which is not available in Debian as of Dec
# 2016.  Disable tests for now to avoid build configure failures.
#
# Upstream unconditionally sets CMAKE_INSTALL_RPATH. Make it ineffective by
# setting CMAKE_SKIP_RPATH
override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_SKIP_RPATH=ON -DENABLE_TESTS_COMPONENT=OFF \
	-DDEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM) \
	-DBUILD_SHARED_LIBS=ON \
	-DENABLE_STRICT=OFF \
	-DENABLE_DECAF=ON

execute_after_dh_install:
	dh_install debian/upstream-version-from-changelog usr/share/bctoolbox/