]> git.proxmox.com Git - libgit2.git/blame - debian/rules
re-enable SSH support
[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 21 -DUSE_HTTPS=mbedTLS \
243e4247 22 -DUSE_SSH=ON \
1f5366ed 23 -DCERT_LOCATION=/etc/ssl/certs/ca-certificates.crt \
ce4209fd 24 -DUSE_CURL_SSL:BOOL=ON \
314db939 25 -DUSE_GSSAPI:BOOL=ON \
c2cf9f38
RS
26 -DTHREADSAFE:BOOL=ON \
27 -DBUILD_CLAR:BOOL=ON \
3b21c551 28 -DUSE_NTLMCLIENT=OFF \
c8e8b947 29 -DENABLE_REPRODUCIBLE_BUILDS=ON \
3b21c551 30 -DUSE_HTTP_PARSER=system \
a62d294c 31 -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
c2cf9f38
RS
32
33 dh_auto_configure --builddirectory=build-debian-devel -- \
34 -DCMAKE_BUILD_TYPE:STRING=Release \
35 -DTHREADSAFE:BOOL=ON \
fc7d64ff 36 -DUSE_HTTPS=mbedTLS \
243e4247 37 -DUSE_SSH=ON \
1f5366ed 38 -DCERT_LOCATION=/etc/ssl/certs/ca-certificates.crt \
ce4209fd 39 -DUSE_CURL_SSL:BOOL=ON \
314db939 40 -DUSE_GSSAPI:BOOL=ON \
c2cf9f38
RS
41 -DBUILD_CLAR:BOOL=OFF \
42 -DBUILD_SHARED_LIBS:BOOL=OFF \
3b21c551 43 -DUSE_NTLMCLIENT=OFF \
c8e8b947 44 -DENABLE_REPRODUCIBLE_BUILDS=ON \
3b21c551 45 -DUSE_HTTP_PARSER=system \
a62d294c
RS
46 -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
47
45adeafb
RS
48
49override_dh_makeshlibs:
53e01cae 50 dh_makeshlibs -V
f00d1952 51
c7d01cbc 52override_dh_auto_build:
f00d1952
RS
53 dh_auto_build --builddirectory=build-debian-release
54 dh_auto_build --builddirectory=build-debian-devel
55
c7d01cbc 56override_dh_auto_install:
f00d1952
RS
57 dh_auto_install --builddirectory=build-debian-release
58 dh_auto_install --builddirectory=build-debian-devel
961e6c53 59
c7d01cbc 60override_dh_auto_test:
903d97a7 61 mkdir -p build-debian-release/tmp
bee58334 62 dh_auto_test --builddirectory=build-debian-release
903d97a7 63 mkdir -p build-debian-devel/tmp
bee58334 64 dh_auto_test --builddirectory=build-debian-devel
c7d01cbc 65
61fb4ac9
RS
66override_dh_installexamples:
67 dh_installexamples --exclude .gitignore
2ab62c32
RS
68
69%:
1a6a91b7
PP
70 dh $@ --buildsystem cmake --dbgsym-migration='libgit2-dbg (<< 0.26.0+dfsg.1-1~)' --builddirectory=build-debian-release
71 dh $@ --buildsystem cmake --builddirectory=build-debian-devel