X-Git-Url: https://git.piment-noir.org/?p=deb_x265.git;a=blobdiff_plain;f=debian%2Frules;h=30cd9d127e8524951d0ae0e5fe8fdb306b380382;hp=33f9531765fb5d77eb7f1e2803a9fe93ddd09704;hb=e2e7a0aa019812e0b1f7db9f9558f80939628fb7;hpb=5c9b45285dd64723ad1dac380b98a7b1f3095674 diff --git a/debian/rules b/debian/rules index 33f9531..30cd9d1 100755 --- a/debian/rules +++ b/debian/rules @@ -1,15 +1,12 @@ #!/usr/bin/make -f -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) -DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -API ?= $(shell debian/getapi.sh) -LIB = $(CURDIR)/debian/install/usr/lib/$(DEB_HOST_MULTIARCH) - include debian/confflags +API = $(shell debian/getapi.sh) +LIB = $(CURDIR)/debian/install/usr/lib/$(DEB_HOST_MULTIARCH) + builddir = compiling -x265-clean = rm -rf $(builddir) && mkdir $(builddir) +x265-clean = rm -rf $(builddir) && mkdir -p $(builddir) x265-install = $(MAKE) -C $(builddir) install DESTDIR=$(CURDIR)/debian/install x265-build = dh_auto_build -D$(builddir) test-build = \ @@ -22,19 +19,21 @@ test-build = \ override_dh_auto_clean: dh_auto_clean - rm -rf $(builddir) doc/reST/build debian/install debian/test.y4m + dh_auto_clean -Ddoc/reST || true + rm -rf $(builddir) debian/install debian/libx265-$(API).* \ + debian/test.y4m x265_2pass.log* test.hevc override_dh_auto_build: sed -e 's/@API@/$(API)/g' debian/control.in > debian/control cp -f debian/libx265N.install debian/libx265-$(API).install unxz -fk debian/test.y4m.xz # build x265 8-bit - mkdir $(builddir) + mkdir -p $(builddir) cd $(builddir) && cmake $(8bit_confflags) ../source $(x265-build) $(x265-install) # test x265 8-bit -# $(test-build) + $(test-build) # build x265 10-bit $(x265-clean) cd $(builddir) && cmake $(10bit_confflags) ../source @@ -44,7 +43,7 @@ override_dh_auto_build: debian/x265-10bit.in > $(builddir)/x265-10bit install -c -D -m755 $(builddir)/x265-10bit $(CURDIR)/debian/install/usr/bin # test x265 10-bit -# $(test-build) + $(test-build) # build x265 8-bit static $(x265-clean) rm -f $(LIB)/libx265.a @@ -54,11 +53,14 @@ override_dh_auto_build: # build x265 10-bit static $(x265-clean) rm -f $(LIB)/x265-10bit/libx265.a - cd $(builddir) && cmake $(10bit_static_confflags) ../source + cd $(builddir) && cmake $(10bit_static_confflags) -DENABLE_TESTS=ON ../source $(x265-build) install -c -D -m644 $(builddir)/libx265.a $(LIB)/x265-10bit # build documentation - $(MAKE) -C doc/reST pickle html + $(MAKE) -C doc/reST pickle html man + +override_dh_auto_test: + $(builddir)/test/TestBench override_dh_install: dh_install --list-missing --sourcedir=$(CURDIR)/debian/install