~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-12-19 20:16:49 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081219201649-drt97guwl2ryt0cn

* New upstream version.
  - patches/nifti-versioning.patch: Remove.  Applied upstream.
  - control:
  - rules: Update version numbers, package names.

* control: Build-depend on uuid-dev (gdcm uses it).

* copyright: Update download URL.

* rules: Adhere to parallel=N in DEB_BUILD_OPTIONS by setting MAKEFLAGS.

* compat: Set to 7.
* control: Update build-dep on debhelper to version >= 7.

* CMakeCache.txt.debian: Set CMAKE_BUILD_TYPE to "RELEASE" so that we
  build with -O3 (not -O2), necessary to optimize the templated code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
include /usr/share/cdbs/1/class/makefile.mk
5
5
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
6
6
 
7
 
pkg_lib = libinsighttoolkit3.6
8
 
pkg_dev = libinsighttoolkit3-dev
9
 
pkg_python = python-insighttoolkit3
10
 
pkg_tcl = tcl8.4-insighttoolkit3
11
 
pkg_examples = insighttoolkit3-examples
 
7
VER_MAJOR = 3
 
8
VER_MINOR = 10
 
9
VER_PATCH = 1
 
10
 
 
11
UPSTREAM_SRC = InsightToolkit-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
 
12
DEBIAN_SRC_DIR = insighttoolkit-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
 
13
DEBIAN_SRC_TAR = insighttoolkit_$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH).orig.tar.gz
 
14
 
 
15
pkg_lib = libinsighttoolkit$(VER_MAJOR).$(VER_MINOR)
 
16
pkg_dev = libinsighttoolkit$(VER_MAJOR)-dev
 
17
pkg_python = python-insighttoolkit$(VER_MAJOR)
 
18
pkg_tcl = tcl8.4-insighttoolkit$(VER_MAJOR)
 
19
pkg_examples = insighttoolkit$(VER_MAJOR)-examples
12
20
 
13
21
PYVERS = $(shell pyversions -r debian/control)
14
22
PYMODDIR = usr/share/python-support/$(pkg_python)
15
23
PYEXTDIR = usr/lib/python-support/$(pkg_python)/$(PYVERS)
16
24
 
17
25
TCLVERS = 8.4
18
 
TCLMODDIR = usr/share/tcltk/tcl8.4/insighttoolkit3
 
26
TCLMODDIR = usr/share/tcltk/tcl$(TCLVERS)/insighttoolkit$(VER_MAJOR)
19
27
 
20
28
DEB_BUILDDIR = $(CURDIR)/Build
21
29
DEB_DESTDIR = $(CURDIR)/debian/tmp
22
30
DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR)
23
31
 
 
32
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
33
        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
34
        DEB_MAKE_BUILD_TARGET = -j$(NUMJOBS) all
 
35
endif
 
36
 
 
37
 
24
38
clean::
25
39
        rm -rf $(DEB_BUILDDIR)
26
40
 
43
57
        echo "$(pkg_tcl): non-dev-pkg-with-shlib-symlink" > debian/$(pkg_tcl).lintian-overrides
44
58
        echo "$(pkg_tcl): package-name-doesnt-match-sonames" >> debian/$(pkg_tcl).lintian-overrides
45
59
        echo "$(pkg_python): non-dev-pkg-with-shlib-symlink" > debian/$(pkg_python).lintian-overrides
46
 
        echo "$(pkg_python): package-name-doesnt-match-sonames" > debian/$(pkg_python).lintian-overrides
 
60
        echo "$(pkg_python): package-name-doesnt-match-sonames" >> debian/$(pkg_python).lintian-overrides
47
61
        echo "$(pkg_lib): package-name-doesnt-match-sonames" > debian/$(pkg_lib).lintian-overrides
48
62
        dh_lintian
49
63
 
51
65
        dh_install -p$(pkg_lib) -XPython -XTcl debian/tmp/usr/lib/InsightToolkit/lib*.so.* usr/lib
52
66
 
53
67
install/$(pkg_dev)::
54
 
        dh_installman -p$(pkg_dev) debian/insighttoolkit.3
 
68
        dh_installman -p$(pkg_dev) debian/insighttoolkit.$(VER_MAJOR)
55
69
        dh_installdocs -p$(pkg_dev) Documentation/*
56
70
        dh_install -p$(pkg_dev) -XPython -XTcl debian/tmp/usr/lib/InsightToolkit/lib*.so usr/lib
57
71
        dh_install -p$(pkg_dev) --autodest debian/tmp/usr/include/InsightToolkit/*
74
88
        dh_installexamples -p$(pkg_examples) Examples/*
75
89
        find debian/$(pkg_examples)/usr/share/doc/$(pkg_examples)/examples \
76
90
            -type f -print0 | xargs -0 chmod 644
 
91
 
 
92
$(UPSTREAM_SRC).tar.gz:
 
93
        wget http://voxel.dl.sourceforge.net/sourceforge/itk/$@
 
94
 
 
95
get-orig-source: $(UPSTREAM_SRC).tar.gz
 
96
        tar xzf $(UPSTREAM_SRC).tar.gz
 
97
        find $(UPSTREAM_SRC) -name CVS -o -name Patented | xargs rm -rf
 
98
        rm -rf $(UPSTREAM_SRC)/Code/Review
 
99
        mv $(UPSTREAM_SRC) $(DEBIAN_SRC_DIR)
 
100
        tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR)
 
101