X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=debian%2Frules;h=ffb12542adecc9328e07909ccb5822aeaf6801fb;hb=7be497e28136be763861466ddbe6a321af63f73a;hp=84752e94a5b582a759594084f3d9053bbe4d13ef;hpb=c4f233e0641fb87b11fdd6ca0d84d1ee50adb4d2;p=pkg-pfstools.git diff --git a/debian/rules b/debian/rules index 84752e9..ffb1254 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,7 @@ #!/usr/bin/make -f # debian/rules for pfstools # -# Written by Sebastian Harl +# Written by Sebastian Harl # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -21,6 +21,20 @@ endif include /usr/share/octave/debian/defs.make +confflags = --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --with-moc=moc-qt3 \ + --with-octave-m-dir=$(MDIR)/pfstools \ + --with-octave-oct-dir=$(OCTDIR)/pfstools + +# Matlab is not available in Debian. +confflags += --disable-matlab + +# These libraries are not available / unusable in Debian. +confflags += --disable-jpeghdr --disable-gdal + config.status: configure dh_testdir @@ -31,12 +45,7 @@ config.status: configure fi \ done - CXXFLAGS="$(CXXFLAGS)" ./configure \ - --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ - --prefix=/usr --mandir=\$${prefix}/share/man \ - --with-moc=moc-qt3 \ - --with-octave-m-dir=$(MDIR)/pfstools \ - --with-octave-oct-dir=$(OCTDIR)/pfstools + ./configure $(confflags) CXXFLAGS="$(CXXFLAGS)" build: build-stamp @@ -50,7 +59,7 @@ build-stamp: config.status clean: dh_testdir dh_testroot - rm -f build-stamp + rm -f build-stamp [ ! -f Makefile ] || $(MAKE) clean [ ! -f Makefile ] || $(MAKE) distclean @@ -62,20 +71,21 @@ clean: fi \ done - dh_clean + dh_clean install: build dh_testdir dh_testroot - dh_clean -k + dh_clean -k dh_installdirs $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install - chmod 644 debian/tmp/usr/share/octave/site/api-v13/m/pfstools/* + chmod 644 debian/tmp/$(MDIR)/pfstools/* # these binaries are not available rm debian/tmp/usr/share/man/man1/pfs*jpeghdr.1 + rm debian/tmp/usr/share/man/man1/pfsingdal.1 binary-indep: build install # nothing to do here @@ -84,14 +94,15 @@ binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog - dh_installdocs AUTHORS README TODO doc/faq.txt doc/pfs_format_spec.pdf + dh_installdocs README TODO doc/faq.txt doc/pfs_format_spec.pdf + dh_installdocs -A AUTHORS dh_installexamples - dh_install --sourcedir=debian/tmp --list-missing - # these files have been installed twice + dh_install --sourcedir=debian/tmp --fail-missing + # these files have been installed twice by dh_install rm -f debian/pfstools/usr/bin/pfs*view debian/pfstools/usr/bin/pfsv \ debian/pfstools/usr/share/man/man1/pfsv.1 \ debian/pfstools/usr/share/man/man1/pfs*view.1 - dh_installman -ppfsglview debian/pfsglview.1 + dh_installman dh_link dh_strip --dbg-package=pfstools-dbg # mkoctfile removes any symbol table and relocation information from the @@ -102,10 +113,11 @@ binary-arch: build install dh_makeshlibs dh_installdeb dh_shlibdeps -Llibpfs-1.2-0 -ldebian/libpfs-1.2-0/usr/lib/ + octave3.0-depends -poctave-pfstools dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build clean binary-indep binary-arch binary install