]> git.proxmox.com Git - libgit2.git/blame - debian/rules
Upload to experimental
[libgit2.git] / debian / rules
CommitLineData
7618a9d9
RS
1#!/usr/bin/make -f
2# -*- makefile -*-
7618a9d9 3
c2cf9f38
RS
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
7618a9d9
RS
8# Uncomment this to turn on verbose mode.
9#export DH_VERBOSE=1
10
c2cf9f38 11DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
c7d01cbc 12TEST_TMPDIR := $(CURDIR)/tmp-test
27a99ed5
RS
13export DEB_BUILD_MAINT_OPTIONS = hardening=+all
14DPKG_EXPORT_BUILDFLAGS = 1
15include /usr/share/dpkg/buildflags.mk
b06de9b0
RS
16
17override_dh_auto_configure:
c2cf9f38
RS
18 dh_auto_configure --builddirectory=build-debian-release -- \
19 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
79f33a63 20 -DUSE_OPENSSL:BOOL=OFF \
1f5366ed
DN
21 -DUSE_HTTPS=mbedTLS \
22 -DCERT_LOCATION=/etc/ssl/certs/ca-certificates.crt \
ce4209fd 23 -DUSE_CURL_SSL:BOOL=ON \
314db939 24 -DUSE_GSSAPI:BOOL=ON \
c2cf9f38
RS
25 -DTHREADSAFE:BOOL=ON \
26 -DBUILD_CLAR:BOOL=ON \
3b21c551 27 -DUSE_NTLMCLIENT=OFF \
c8e8b947 28 -DENABLE_REPRODUCIBLE_BUILDS=ON \
3b21c551 29 -DUSE_HTTP_PARSER=system \
a62d294c 30 -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
c2cf9f38
RS
31
32 dh_auto_configure --builddirectory=build-debian-devel -- \
33 -DCMAKE_BUILD_TYPE:STRING=Release \
34 -DTHREADSAFE:BOOL=ON \
fc7d64ff 35 -DUSE_HTTPS=mbedTLS \
1f5366ed 36 -DCERT_LOCATION=/etc/ssl/certs/ca-certificates.crt \
ce4209fd 37 -DUSE_CURL_SSL:BOOL=ON \
314db939 38 -DUSE_GSSAPI:BOOL=ON \
c2cf9f38
RS
39 -DBUILD_CLAR:BOOL=OFF \
40 -DBUILD_SHARED_LIBS:BOOL=OFF \
3b21c551 41 -DUSE_NTLMCLIENT=OFF \
c8e8b947 42 -DENABLE_REPRODUCIBLE_BUILDS=ON \
3b21c551 43 -DUSE_HTTP_PARSER=system \
a62d294c
RS
44 -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
45
45adeafb
RS
46
47override_dh_makeshlibs:
53e01cae 48 dh_makeshlibs -V
f00d1952 49
c7d01cbc 50override_dh_auto_build:
f00d1952
RS
51 dh_auto_build --builddirectory=build-debian-release
52 dh_auto_build --builddirectory=build-debian-devel
53
c7d01cbc 54override_dh_auto_install:
f00d1952
RS
55 dh_auto_install --builddirectory=build-debian-release
56 dh_auto_install --builddirectory=build-debian-devel
961e6c53 57
c7d01cbc 58override_dh_auto_test:
903d97a7 59 mkdir -p build-debian-release/tmp
bee58334 60 dh_auto_test --builddirectory=build-debian-release
903d97a7 61 mkdir -p build-debian-devel/tmp
bee58334 62 dh_auto_test --builddirectory=build-debian-devel
c7d01cbc 63
61fb4ac9
RS
64override_dh_installexamples:
65 dh_installexamples --exclude .gitignore
2ab62c32
RS
66
67%:
1a6a91b7
PP
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