~ubuntu-branches/ubuntu/maverick/libtorrent-rasterbar/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2009-05-13 12:08:59 UTC
  • mfrom: (3.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090513120859-b5qqlwi43aai3pq3
Tags: 0.14.3-1
* New Upstream Version
  - new package libtorrent-rasterbar3 (bump up library soname).
* debian/control:
  - add Vcs-* stuff (switch to git-buildpackage) and bump up
    Standards-Version to 3.8.1 (no changes required);
  - build-depends on debhelper (>= 7.0.50) and use override_dh_command;
  - move -dbg package to the new 'debug' section;
  - build-depends on autotools-dev and overwrite config.{sub,guess} with a
    recent version in debian/rules.
  - build-depends on quilt and python-docutils:
    + debian/patches/fix_html_docs.patch: fix html documentation for offline
      browsing and add another missing doc file;
    + rebuild docs at build time in debian/rules;
* debian/example.makefile: install a simple makefile for example programs
  included in -doc package.
* debian/rules, debian/python-libtorrent.install: don't rely on hardcoded
  python version, use --install-layout=deb when building python bindings,
  and install to '*-packages' instead of 'site-packages' (this should
  prepare for python2.6 and minimize Ubuntu diff).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
include /usr/share/quilt/quilt.make
4
4
 
 
5
PYVERSION = $(shell pyversions -v -r | tr -d . )
 
6
 
5
7
CONFIGUREFLAGS = \
6
 
        --prefix=/usr \
7
 
        --disable-dependency-tracking \
8
 
        --disable-fast-install \
9
8
        --enable-static \
10
9
        --enable-shared \
11
10
        --disable-debug \
20
19
        --with-boost-system=boost_system-mt \
21
20
        --with-boost-filesystem=boost_filesystem-mt \
22
21
        --with-boost-thread=boost_thread-mt \
23
 
        --with-boost-python=boost_python-mt-py26
 
22
    --with-boost-python=boost_python-mt-py$(PYVERSION)
24
23
 
25
 
build: build-stamp
26
 
build-stamp:    $(QUILT_STAMPFN)
27
 
        dh build --before configure
 
24
# override dh targets
 
25
override_dh_auto_configure:
 
26
        # overwrite config.{sub,guess} from autotools-dev
 
27
        cp -f /usr/share/misc/config.sub config.sub
 
28
        cp -f /usr/share/misc/config.guess config.guess
 
29
        # generate html docs
 
30
        (cd docs/ && $(MAKE) -f makefile)
28
31
        dh_auto_configure -- PTHREAD_LIBS="-lpthread" CFLAGS="$(CFLAGS)" \
 
32
                PYTHON_INSTALL_PARAMS="--root=$(CURDIR)/debian/tmp --install-layout=deb" \
29
33
                LDFLAGS="-Wl,--as-needed -lrt" $(CONFIGUREFLAGS)
30
 
        dh build --after configure
 
34
 
 
35
override_dh_compress:
 
36
        dh_compress -Xcpp
 
37
 
 
38
override_dh_strip:
 
39
        dh_strip -a --dbg-package=libtorrent-rasterbar-dbg
 
40
 
 
41
override_dh_makeshlibs:
 
42
        dh_makeshlibs -a -V
 
43
 
 
44
 
 
45
build: build-stamp
 
46
build-stamp: $(QUILT_STAMPFN)
 
47
        dh build
31
48
        touch $@
32
49
 
33
 
clean:  unpatch
 
50
clean: unpatch
 
51
        rm -f config.sub config.guess
 
52
        # delete the specific missing doc page added by fix_html_docs.patch
 
53
        # (fixed upstream, remove this line in next release)
 
54
        rm -f docs/libtorrent_plugins.html
34
55
        dh $@
35
56
 
36
57
install: build install-stamp
37
58
install-stamp:
38
 
        dh install --before dh_compress
39
 
        dh_compress -Xcpp
40
 
        dh install --after dh_compress
 
59
        dh install
41
60
        touch $@
42
61
 
43
62
binary-arch: install
44
 
        dh binary-arch --before dh_strip
45
 
        dh_strip -a --dbg-package=libtorrent-rasterbar-dbg
46
 
        dh binary-arch --after dh_strip --before dh_makeshlibs
47
 
        dh_makeshlibs -a -V
48
 
        dh binary-arch --after dh_makeshlibs
 
63
        dh $@
49
64
 
50
65
binary-indep: install
51
66
        dh $@