]> git.proxmox.com Git - libgit2.git/blob - debian/rules
Revert "Use pcre2 as REGEX_BACKEND"
[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 -DUSE_HTTP_PARSER=system \
29 -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
30
31 dh_auto_configure --builddirectory=build-debian-devel -- \
32 -DCMAKE_BUILD_TYPE:STRING=Release \
33 -DTHREADSAFE:BOOL=ON \
34 -DUSE_HTTPS=mbedTLS \
35 -DCERT_LOCATION=/etc/ssl/certs/ca-certificates.crt \
36 -DUSE_CURL_SSL:BOOL=ON \
37 -DUSE_GSSAPI:BOOL=ON \
38 -DBUILD_CLAR:BOOL=OFF \
39 -DBUILD_SHARED_LIBS:BOOL=OFF \
40 -DUSE_NTLMCLIENT=OFF \
41 -DUSE_HTTP_PARSER=system \
42 -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
43
44
45 override_dh_makeshlibs:
46 dh_makeshlibs -V
47
48 override_dh_auto_build:
49 dh_auto_build --builddirectory=build-debian-release
50 dh_auto_build --builddirectory=build-debian-devel
51
52 override_dh_auto_install:
53 dh_auto_install --builddirectory=build-debian-release
54 dh_auto_install --builddirectory=build-debian-devel
55
56 override_dh_auto_test:
57 mkdir -p build-debian-release/tmp
58 dh_auto_test --builddirectory=build-debian-release
59 mkdir -p build-debian-devel/tmp
60 dh_auto_test --builddirectory=build-debian-devel
61
62 override_dh_strip:
63 dh_strip --dbgsym-migration='libgit2-dbg (<< 0.26.0+dfsg.1-1~)'
64
65 override_dh_installexamples:
66 dh_installexamples --exclude .gitignore
67
68 %:
69 dh $@ --buildsystem cmake --dbgsym-migration='libgit2-dbg (<< 0.26.0+dfsg.1-1~)' --builddirectory=build-debian-release
70 dh $@ --buildsystem cmake --builddirectory=build-debian-devel