~jbboehr/+junk/exiv2-precise-package

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: John Boehr
  • Date: 2014-09-12 20:36:39 UTC
  • Revision ID: jbboehr@gmail.com-20140912203639-qjqnhr8ru6qhvkvy
Import package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
4
 
 
5
%:
 
6
        dh $@ --parallel --with autotools_dev
 
7
 
 
8
override_dh_auto_configure:
 
9
        dh_auto_configure -- --disable-rpath
 
10
 
 
11
override_dh_clean:
 
12
        dh_clean
 
13
        rm -rf doc/html
 
14
        -rm Makefile xmpsdk/src/.libs/libxmpsdk.la  # why? debuild complains of diff.
 
15
 
 
16
override_dh_strip:
 
17
        dh_strip -a --dbg-package=libexiv2-dbg
 
18
 
 
19
override_dh_install:
 
20
        # no need for libtool .la files
 
21
        rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
 
22
        dh_install --list-missing
 
23
        find $(CURDIR)/debian -type f -name exiv2 | xargs /usr/bin/chrpath -d
 
24
 
 
25
override_dh_auto_build-indep:
 
26
        $(MAKE) -C doc doxygen
 
27
 
 
28
override_dh_installdocs:
 
29
        dh_installdocs -A -Xcmd.txt -XMakefile -Xtemplates -XChangeLog
 
30
        find $(CURDIR)/debian -name jquery.js -exec ln -sfv /usr/share/javascript/jquery/jquery.js {} \;
 
31
        find $(CURDIR)/debian \( -name '*.map' -o -name '*.md5' \) -delete
 
32
 
 
33
override_dh_installchangelogs:
 
34
        dh_installchangelogs -A doc/ChangeLog
 
35
 
 
36
override_dh_compress:
 
37
        dh_compress -X.xls -X.js -X.idx -X.xml -X.php -X.cpp