diff options
| author | 2001-08-01 12:30:48 +0000 | |
|---|---|---|
| committer | 2001-08-01 12:30:48 +0000 | |
| commit | 4c165f62dbd1d7bb882eea3f1dfa1f43df62701c (patch) | |
| tree | 9a4709004f95c8a3ecab797b6256a9786fb59f8e /debian/rules | |
| parent | Reworked some paragraphs. (diff) | |
Add raw1394_get_local_id, _irm_id, _nodecount refentry.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@73 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'debian/rules')
| -rw-r--r-- | debian/rules | 51 |
1 files changed, 22 insertions, 29 deletions
diff --git a/debian/rules b/debian/rules index eec72ec..7fd378c 100644 --- a/debian/rules +++ b/debian/rules @@ -1,37 +1,34 @@ #!/usr/bin/make -f -export DH_COMPAT=1 - -potato-build = no +export DH_COMPAT=3 majorname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 2) fullversionname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 1) -major = $(shell echo $(majorname) | cut -d"." -f 3) +major = 5 libraw = libraw1394-$(major) -source-version = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f 2) -autoclean-files: - echo $@ >$@ +# maintainer files for the so package (of the name $(libraw)) +somaint = postinst config templates + build: build-stamp build-stamp: dh_testdir - ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + ./configure --prefix=/usr --mandir=\$${prefix}/share/man $(MAKE) touch build-stamp -clean: autoclean-files +clean: dh_testdir dh_testroot - rm -f build-stamp + rm -f build-stamp $(somaint:%=debian/$(libraw).%) -$(MAKE) distclean dh_clean - xargs <autoclean-files rm -f install: build dh_testdir @@ -44,38 +41,34 @@ install: build binary-indep: build install # Nothing to do here -binary-arch: build install autoclean-files +binary-arch: build install dh_testdir dh_testroot + for i in $(somaint); do \ + ln -sf libraw1394.$$i.in debian/$(libraw).$$i; \ + done + dh_movefiles -p$(libraw) \ usr/lib/$(majorname) \ usr/lib/$(fullversionname) - echo >>autoclean-files \ - debian/$(libraw).postinst \ - debian/$(libraw).substvars - - if [ "$(potato-build)" = "yes" ]; then \ - cp debian/libraw1394-potato.postinst.in \ - debian/$(libraw).postinst; \ - echo "makedev-depend=" >>debian/$(libraw).substvars; \ - else \ - cp debian/libraw1394.postinst.in \ - debian/$(libraw).postinst; \ - echo "makedev-depend=, makedev (>= 2.3.1-49)" \ - >>debian/$(libraw).substvars; \ - fi - - dh_installmanpages -plibraw1394-dev + dh_movefiles -plibraw1394-dev \ + usr/lib \ + usr/bin \ + usr/include/libraw1394 \ + usr/share/aclocal/libraw1394.m4 + + dh_installman dh_installdocs dh_installchangelogs + dh_installdebconf dh_strip dh_compress dh_fixperms dh_makeshlibs -V dh_installdeb - dh_shlibdeps -ldebian/$(libraw)/usr/lib + LD_PRELOAD='' dh_shlibdeps -v -ldebian/$(libraw)/usr/lib dh_gencontrol dh_md5sums dh_builddeb |
