]>
Commit | Line | Data |
---|---|---|
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 | 11 | DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
b06de9b0 RS |
12 | |
13 | override_dh_auto_configure: | |
c2cf9f38 RS |
14 | dh_auto_configure --builddirectory=build-debian-release -- \ |
15 | -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | |
16 | -DTHREADSAFE:BOOL=ON \ | |
17 | -DBUILD_CLAR:BOOL=ON \ | |
a62d294c | 18 | -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH) |
c2cf9f38 RS |
19 | |
20 | dh_auto_configure --builddirectory=build-debian-devel -- \ | |
21 | -DCMAKE_BUILD_TYPE:STRING=Release \ | |
22 | -DTHREADSAFE:BOOL=ON \ | |
23 | -DBUILD_CLAR:BOOL=OFF \ | |
24 | -DBUILD_SHARED_LIBS:BOOL=OFF \ | |
a62d294c RS |
25 | -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH) |
26 | ||
45adeafb RS |
27 | |
28 | override_dh_makeshlibs: | |
c2cf9f38 | 29 | dh_makeshlibs -V 'libgit2-0 (>= 0.19.0)' |
f00d1952 RS |
30 | |
31 | override_dh_auto_build : | |
32 | dh_auto_build --builddirectory=build-debian-release | |
33 | dh_auto_build --builddirectory=build-debian-devel | |
34 | ||
35 | override_dh_auto_install : | |
36 | dh_auto_install --builddirectory=build-debian-release | |
37 | dh_auto_install --builddirectory=build-debian-devel | |
961e6c53 | 38 | |
c2cf9f38 RS |
39 | override_dh_strip: |
40 | dh_strip --dbg-package=libgit2-dbg | |
41 | ||
61fb4ac9 RS |
42 | override_dh_installexamples: |
43 | dh_installexamples --exclude .gitignore | |
2ab62c32 RS |
44 | |
45 | %: | |
c2cf9f38 RS |
46 | dh $@ --parallel --buildsystem cmake --dbg-package=libgit2-dbg --builddirectory=build-debian-release |
47 | dh $@ --parallel --buildsystem cmake --builddirectory=build-debian-devel |