X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=debian%2Frules;h=b4bd2b63b263b836b4388cd0d9c4ed9bc150a258;hb=d9de2aae6b2f47b8e1faacc69adba7406b9d85f0;hp=5205032cbaedd6a5078634b4261170dc96385f95;hpb=e1a123a864d0960fabe880298139b78508c1d040;p=deb_libcec.git diff --git a/debian/rules b/debian/rules index 5205032..b4bd2b6 100755 --- a/debian/rules +++ b/debian/rules @@ -1,39 +1,8 @@ #!/usr/bin/make -f -# debian package for libcec -# Copyright Pulse-Eight 2011 # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) - confflags += --build=$(DEB_HOST_GNU_TYPE) -else - confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) -endif - %: - dh $@ - -override_dh_clean: - rm -rf build - rm -rf debian/libcec - rm -rf debian/libcec-dev - dh_clean - -override_dh_auto_clean: - dh_clean - -override_dh_auto_configure: - [ -d build ] || mkdir build - cd build && ../configure $(confflags) CFLAGS="$(CFLAGS)" \ - LDFLAGS="$(LDFLAGS)" --prefix=/usr - -override_dh_auto_build: - $(MAKE) -C build + dh $@ --parallel -override_dh_install: - $(MAKE) -C build DESTDIR=$(CURDIR)/debian/libcec install-exec - $(MAKE) -C build DESTDIR=$(CURDIR)/debian/libcec-dev install-data - mv -v $(CURDIR)/debian/libcec/usr/lib/*.a $(CURDIR)/debian/libcec-dev/usr/lib/. - mv -v $(CURDIR)/debian/libcec/usr/lib/*.la $(CURDIR)/debian/libcec-dev/usr/lib/.