File: rules

package info (click to toggle)
crystalhd 1:0.0~git20110715.fdd2f19-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,416 kB
  • sloc: ansic: 66,858; sh: 11,306; cpp: 9,812; makefile: 136
file content (30 lines) | stat: -rwxr-xr-x 874 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
27
28
29
30
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

EXTRA_INCLUDES = -I$(CURDIR)/include \
	-I$(CURDIR)/linux_lib/libcrystalhd

EXTRA_LD_PATH = -L$(CURDIR)/linux_lib/libcrystalhd

%:
	dh $@ --with autoreconf

override_dh_auto_build:
	make -C linux_lib/libcrystalhd
	cd filters/gst/gst-plugin && \
		./configure --prefix=/usr CFLAGS="$(EXTRA_INCLUDES)" \
		LDFLAGS="$(EXTRA_LD_PATH)" \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
	make -C filters/gst/gst-plugin

override_dh_auto_install:
	make install -C linux_lib/libcrystalhd DESTDIR=$(CURDIR)/debian/tmp \
		LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
	make install -C filters/gst/gst-plugin DESTDIR=$(CURDIR)/debian/tmp

override_dh_auto_clean:
	dh_clean
	make clean -C linux_lib/libcrystalhd
	[ ! -f filters/gst/gst-plugin/Makefile ] || \
		make clean distclean -C filters/gst/gst-plugin