summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 06eb09b7881adb19b6ebc2142e80c0fed6cb919d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	DESTDIR="$(CURDIR)/debian/lz4" dh_auto_configure \
		--buildsystem=cmake -- \
		-DCMAKE_INSTALL_PREFIX="/usr" \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		../cmake_unofficial

override_dh_auto_install:
	dh_auto_install \
		--destdir="$(CURDIR)/debian/lz4"
		--buildsystem=cmake

override_dh_clean:
	dh_clean

override_dh_makeshlibs:
	dh_makeshlibs -V "lz4 (>= $(shell dpkg-parsechangelog | sed -n -r -e 's/^Version: ([^.]+\.[^.]+).*/\1/p'))"

override_dh_strip:
	#dh_strip --dbg-package=lz4-dbg