cec: fix simplink reconnect via the TV source selector (after vendor command 0x03)
[deb_libcec.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian package for libcec
3 # Copyright Pulse-Eight 2011
4
5 # Uncomment this to turn on verbose mode.
6 export DH_VERBOSE=1
7
8 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
10 confflags += --build=$(DEB_HOST_GNU_TYPE)
11 else
12 confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
13 endif
14
15 %:
16 dh $@
17
18 override_dh_clean:
19 rm -rf build
20 rm -rf debian/libcec
21 rm -rf debian/libcec-dev
22 dh_clean
23
24 override_dh_auto_clean:
25 dh_clean
26
27 override_dh_auto_configure:
28 [ -d build ] || mkdir build
29 cd build && ../configure $(confflags) CFLAGS="$(CFLAGS)" \
30 LDFLAGS="$(LDFLAGS)" --prefix=/usr
31
32 override_dh_auto_build:
33 $(MAKE) -C build
34
35 override_dh_install:
36 $(MAKE) -C build DESTDIR=$(CURDIR)/debian/libcec install-exec
37 $(MAKE) -C build DESTDIR=$(CURDIR)/debian/libcec-dev install-data
38 mv -v $(CURDIR)/debian/libcec/usr/lib/*.a $(CURDIR)/debian/libcec-dev/usr/lib/.
39 mv -v $(CURDIR)/debian/libcec/usr/lib/*.la $(CURDIR)/debian/libcec-dev/usr/lib/.