]> git.proxmox.com Git - libgit2.git/blob - debian/rules
66e8d0551cd91e61fb5255c5d63266e61d8f5ea0
[libgit2.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
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
6 # library.
7
8 # Uncomment this to turn on verbose mode.
9 #export DH_VERBOSE=1
10
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
16
17 override_dh_auto_configure:
18 dh_auto_configure --builddirectory=build-debian-release -- \
19 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
20 -DUSE_OPENSSL:BOOL=OFF \
21 -DUSE_HTTPS=mbedTLS \
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)
31
32 dh_auto_configure --builddirectory=build-debian-devel -- \
33 -DCMAKE_BUILD_TYPE:STRING=Release \
34 -DTHREADSAFE:BOOL=ON \
35 -DUSE_HTTPS=mbedTLS \
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)
45
46
47 override_dh_makeshlibs:
48 dh_makeshlibs -V
49
50 override_dh_auto_build:
51 dh_auto_build --builddirectory=build-debian-release
52 dh_auto_build --builddirectory=build-debian-devel
53
54 override_dh_auto_install:
55 dh_auto_install --builddirectory=build-debian-release
56 dh_auto_install --builddirectory=build-debian-devel
57
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
63
64 override_dh_installexamples:
65 dh_installexamples --exclude .gitignore
66
67 %:
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