| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
include /usr/share/dpkg/architecture.mk |
| 5 |
|
| 6 |
# Uncomment this to turn on verbose mode. |
| 7 |
export DH_VERBOSE=1 |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --buildsystem=cmake |
| 11 |
|
| 12 |
execute_after_dh_auto_clean: |
| 13 |
rm -rf debian/tmp-static static |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
dh_auto_configure -- -DCMAKE_INSTALL_RPATH="" -DBUILD_SHARED_LIBS=YES |
| 17 |
dh_auto_configure --builddirectory=static -- -DCMAKE_INSTALL_RPATH="" -DBUILD_SHARED_LIBS=NO |
| 18 |
|
| 19 |
override_dh_auto_build: |
| 20 |
dh_auto_build |
| 21 |
dh_auto_build --builddirectory=static |
| 22 |
|
| 23 |
override_dh_auto_install: |
| 24 |
dh_auto_install |
| 25 |
dh_auto_install --builddirectory=static --destdir=debian/tmp-static |
| 26 |
cp debian/tmp-static/usr/lib/${DEB_HOST_MULTIARCH}/*.a debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/ |