File: rules

package info (click to toggle)
libcompizconfig 2%3A0.8.18-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,300 kB
  • sloc: ansic: 6,420; sh: 4,159; cpp: 2,648; makefile: 125; xml: 7
file content (29 lines) | stat: -rwxr-xr-x 866 bytes parent folder | download
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
27
28
29
#!/usr/bin/make -f
# -*- makefile -*-
#
include /usr/share/dpkg/architecture.mk

# Detect which package is provided by compiz-core:
COMPIZCORE_DEPENDS := $(shell dpkg-query --showformat='$${Provides}\n' -W compiz-core)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-static --libdir=/usr/lib

override_dh_install:
# remove unneeded .la files
	find $(CURDIR)/debian/tmp -type f -name '*.la' -print0 | xargs -0 rm -f
	dh_install
	mkdir debian/libcompizconfig0-dev/usr/lib/$(DEB_HOST_MULTIARCH)
	mv debian/libcompizconfig0-dev/usr/lib/pkgconfig debian/libcompizconfig0-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig

override_dh_makeshlibs:
	dh_makeshlibs -plibcompizconfig0 -V'libcompizconfig0 (>= 2:0.8.14-0~)'

override_dh_gencontrol:
	dh_gencontrol -- -Vcompizcore:Depends=$(COMPIZCORE_DEPENDS)

override_dh_missing:
	dh_missing --fail-missing