File: rules

package info (click to toggle)
libwebp 1.5.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,768 kB
  • sloc: ansic: 76,987; cpp: 7,168; sh: 5,717; makefile: 597; python: 350
file content (26 lines) | stat: -rwxr-xr-x 744 bytes parent folder | download | duplicates (2)
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
# -*- makefile -*-

include /usr/share/dpkg/architecture.mk

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

%:
	dh $@ --buildsystem=cmake

execute_after_dh_auto_clean:
	rm -rf debian/tmp-static static

override_dh_auto_configure:
	dh_auto_configure                         -- -DCMAKE_INSTALL_RPATH="" -DBUILD_SHARED_LIBS=YES
	dh_auto_configure --builddirectory=static -- -DCMAKE_INSTALL_RPATH="" -DBUILD_SHARED_LIBS=NO

override_dh_auto_build:
	dh_auto_build
	dh_auto_build --builddirectory=static

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --builddirectory=static --destdir=debian/tmp-static
	cp debian/tmp-static/usr/lib/${DEB_HOST_MULTIARCH}/*.a debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/