| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = reproducible=+fixfilepath hardening=+all |
| 6 |
|
| 7 |
# Let timing tests run long in case we're testing on slow hardware |
| 8 |
# (like HPPA) |
| 9 |
|
| 10 |
export CMARK_TIMING_SCALE = 10 |
| 11 |
|
| 12 |
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 13 |
|
| 14 |
DEB_CMAKE_EXTRA_FLAGS=\ |
| 15 |
-DCMAKE_INSTALL_LIBDIR="/usr/lib/$(DEB_HOST_MULTIARCH)" \ |
| 16 |
-DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \ |
| 17 |
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \ |
| 18 |
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 |
| 19 |
|
| 20 |
%: |
| 21 |
dh $@ --buildsystem=cmake |
| 22 |
|
| 23 |
clean: debian/control |
| 24 |
|
| 25 |
execute_after_dh_clean: |
| 26 |
rm -rf test/__pycache__/ |
| 27 |
|
| 28 |
override_dh_auto_configure: |
| 29 |
dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS) |
| 30 |
|
| 31 |
debian/control: debian/control-in |
| 32 |
sed 's/%DEB_VERSION_UPSTREAM%/$(DEB_VERSION_UPSTREAM)/g' $< > $@ |
| 33 |
echo 'usr/lib/*/libcmark-gfm.so.*' > debian/libcmark-gfm$(DEB_VERSION_UPSTREAM).install |
| 34 |
echo 'usr/lib/*/libcmark-gfm-extensions.so.*' > debian/libcmark-gfm-extensions$(DEB_VERSION_UPSTREAM).install |
| 35 |
|
| 36 |
override_dh_auto_install: |
| 37 |
dh_auto_install |
| 38 |
*/src/cmark-gfm test/spec.txt > debian/tmp/spec.html |