4 # This rules file has 2 streams, the build-debian-devel stream builds
5 # the static library and the bulid-debian-release builds the dynamic
8 # Uncomment this to turn on verbose mode.
11 DEB_HOST_MULTIARCH ?
= $(shell dpkg-architecture
-qDEB_HOST_MULTIARCH
)
12 TEST_TMPDIR
:= $(CURDIR
)/tmp-test
13 export DEB_BUILD_MAINT_OPTIONS
= hardening
=+all
14 DPKG_EXPORT_BUILDFLAGS
= 1
15 include /usr
/share
/dpkg
/buildflags.mk
17 override_dh_auto_configure
:
18 dh_auto_configure
--builddirectory
=build-debian-release
-- \
19 -DCMAKE_BUILD_TYPE
:STRING
=RelWithDebInfo \
20 -DUSE_OPENSSL
:BOOL
=OFF \
22 -DCERT_LOCATION
=/etc
/ssl
/certs
/ca-certificates.crt \
23 -DUSE_CURL_SSL
:BOOL
=ON \
24 -DUSE_GSSAPI
:BOOL
=ON \
25 -DTHREADSAFE
:BOOL
=ON \
26 -DBUILD_CLAR
:BOOL
=ON \
27 -DUSE_NTLMCLIENT
=OFF \
28 -DENABLE_REPRODUCIBLE_BUILDS
=ON \
29 -DUSE_HTTP_PARSER
=system \
30 -DLIB_INSTALL_DIR
:STRING
=lib
/$(DEB_HOST_MULTIARCH
)
32 dh_auto_configure
--builddirectory
=build-debian-devel
-- \
33 -DCMAKE_BUILD_TYPE
:STRING
=Release \
34 -DTHREADSAFE
:BOOL
=ON \
36 -DCERT_LOCATION
=/etc
/ssl
/certs
/ca-certificates.crt \
37 -DUSE_CURL_SSL
:BOOL
=ON \
38 -DUSE_GSSAPI
:BOOL
=ON \
39 -DBUILD_CLAR
:BOOL
=OFF \
40 -DBUILD_SHARED_LIBS
:BOOL
=OFF \
41 -DUSE_NTLMCLIENT
=OFF \
42 -DENABLE_REPRODUCIBLE_BUILDS
=ON \
43 -DUSE_HTTP_PARSER
=system \
44 -DLIB_INSTALL_DIR
:STRING
=lib
/$(DEB_HOST_MULTIARCH
)
47 override_dh_makeshlibs
:
50 override_dh_auto_build
:
51 dh_auto_build
--builddirectory
=build-debian-release
52 dh_auto_build
--builddirectory
=build-debian-devel
54 override_dh_auto_install
:
55 dh_auto_install
--builddirectory
=build-debian-release
56 dh_auto_install
--builddirectory
=build-debian-devel
58 override_dh_auto_test
:
59 mkdir
-p build-debian-release
/tmp
60 dh_auto_test
--builddirectory
=build-debian-release
61 mkdir
-p build-debian-devel
/tmp
62 dh_auto_test
--builddirectory
=build-debian-devel
64 override_dh_installexamples
:
65 dh_installexamples
--exclude .gitignore
68 dh
$@
--buildsystem cmake
--dbgsym-migration
='libgit2-dbg (<< 0.26.0+dfsg.1-1~)' --builddirectory
=build-debian-release
69 dh
$@
--buildsystem cmake
--builddirectory
=build-debian-devel