2 # debian package for libcec
3 # Copyright Pulse-Eight 2011
5 # Uncomment this to turn on verbose mode.
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
)
12 confflags
+= --build
=$(DEB_BUILD_GNU_TYPE
) --host
=$(DEB_HOST_GNU_TYPE
)
21 rm -rf debian
/libcec-dev
24 override_dh_auto_clean
:
27 override_dh_auto_configure
:
28 [ -d build
] || mkdir build
29 cd build
&& ..
/configure
$(confflags
) CFLAGS
="$(CFLAGS)" \
30 LDFLAGS
="$(LDFLAGS)" --prefix=/usr
32 override_dh_auto_build
:
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
/.