| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE = 1 |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
execute_before_dh_auto_install: |
| 11 |
cd imagequant-sys;cargo cinstall --prefix=/usr --destdir=../debian/tmp/ |
| 12 |
|
| 13 |
include /usr/share/dpkg/default.mk |
| 14 |
include /usr/share/rustc/architecture.mk |
| 15 |
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS |
| 16 |
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE |
| 17 |
export PATH := /usr/share/cargo/bin:$(PATH) |
| 18 |
export CARGO=/usr/share/cargo/bin/cargo |
| 19 |
export CARGO_HOME=$(CURDIR)/debian/cargo_home |
| 20 |
export CARGO_REGISTRY=$(CURDIR)/debian/cargo_registry |
| 21 |
export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) |
| 22 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow |
| 23 |
|
| 24 |
execute_after_dh_auto_clean: |
| 25 |
rm -rf debian/cargo_registry |
| 26 |
|
| 27 |
execute_before_dh_auto_configure: |
| 28 |
$(CARGO) prepare-debian debian/cargo_registry --link-from-system |
| 29 |
rm -f Cargo.lock |