X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=debian%2Frules;h=bd93a4bbe79f271d385b4bcccb8c02c3cad99d18;hb=65126cae91204999509dd12f11039ba98ab6841f;hp=08084df05c730de6e21a145f6b072fd32d2737d4;hpb=0fd83d7b19315a985d47d912e9e3f88c5d270778;p=pkg-enblend.git diff --git a/debian/rules b/debian/rules index 08084df..bd93a4b 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,16 @@ else CFLAGS += -O2 endif -include /usr/share/dpatch/dpatch.make +CONFARGS=--host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr --mandir=\$${prefix}/share/man \ + --enable-gpu-support=yes \ + --with-boost-filesystem=yes \ + --with-openexr=yes + +# --disable-openmp \ +# --enable-image-cache=yes \ + get-orig-source: dh_testdir @@ -27,32 +36,54 @@ get-orig-source: chmod 755 debian/bin/uscan_repack.sh uscan --verbose --force-download --rename -config.status: configure $(DPATCH_STAMPFN) +# Hack: Since out of tree building of documentation is broken, make a out-tree +# build for mp versions and in-tree build for the regular binaries. Out of tree +# configure fails if in-tree configure run is detected, therefore force correct +# ordering by making config.status depend on build-tree-mp/config.status. +config.status: configure build-tree-mp/config.status dh_testdir - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \ - --build=$(DEB_BUILD_GNU_TYPE) \ - --prefix=/usr --mandir=\$${prefix}/share/man + CFLAGS="$(CFLAGS)" ./configure $(CONFARGS) \ + --disable-openmp \ + --enable-image-cache=yes + +build-tree-mp/config.status: configure + dh_testdir + if ! test -e build-tree-mp ; then mkdir build-tree-mp ; fi + cd build-tree-mp && CFLAGS="$(CFLAGS)" ../configure $(CONFARGS) \ + --enable-openmp \ + --disable-image-cache build: build-stamp -build-stamp: config.status +build-stamp: config.status build-tree-mp/config.status dh_testdir + cd build-tree-mp && $(MAKE) $(MAKE) + $(MAKE) pdf + + sed -e "s/manual page for enblend.*/combine images using a multiresolution spline/" \ + src/enblend.1 > src/enblend.1.tmp + mv src/enblend.1.tmp src/enblend.1 + sed -e "s/manual page for enfuse.*/poor man's HDR/" \ + src/enfuse.1 > src/enfuse.1.tmp + mv src/enfuse.1.tmp src/enfuse.1 + touch build-stamp -clean: unpatch +clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean rm -f doc/*.info + rm -rf build-tree-mp dh_clean -install: build +install: build-stamp dh_testdir dh_testroot dh_clean -k @@ -60,6 +91,10 @@ install: build $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install rm -f $(CURDIR)/debian/tmp/usr/share/info/dir + install -m755 build-tree-mp/src/enblend \ + $(CURDIR)/debian/tmp/usr/bin/enblend-mp + install -m755 build-tree-mp/src/enfuse \ + $(CURDIR)/debian/tmp/usr/bin/enfuse-mp binary-indep: # nothing to do here @@ -67,22 +102,22 @@ binary-indep: binary-arch: build install dh_testdir dh_testroot - dh_installchangelogs ChangeLog - dh_installdocs NEWS AUTHORS - dh_installexamples - dh_install --sourcedir=debian/tmp --fail-missing - dh_installman + dh_installchangelogs -a ChangeLog + dh_installdocs -A -a NEWS AUTHORS + dh_installexamples -a + dh_install -a --sourcedir=debian/tmp --fail-missing + dh_installman -a dh_installinfo -penblend doc/enblend.info dh_installinfo -penfuse doc/enfuse*.info - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a binary: binary-indep binary-arch .PHONY: get-orig-source build clean binary-indep binary-arch binary install