cec: send a keypress with 0 duration when a key is pressed and with a duration set...
[deb_libcec.git] / debian / rules
... / ...
CommitLineData
1#!/usr/bin/make -f
2# debian package for libcec
3# Copyright Pulse-Eight 2011
4
5# Uncomment this to turn on verbose mode.
6export DH_VERBOSE=1
7
8DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
10 confflags += --build=$(DEB_HOST_GNU_TYPE)
11else
12 confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
13endif
14
15%:
16 dh $@
17
18override_dh_clean:
19 rm -rf build
20 rm -rf debian/libcec
21 rm -rf debian/libcec-dev
22 dh_clean
23
24override_dh_auto_clean:
25 dh_clean
26
27override_dh_auto_configure:
28 [ -d build ] || mkdir build
29 cd build && ../configure $(confflags) CFLAGS="$(CFLAGS)" \
30 LDFLAGS="$(LDFLAGS)" --prefix=/usr
31
32override_dh_auto_build:
33 $(MAKE) -C build
34
35override_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/.