~ubuntu-branches/ubuntu/maverick/rrdtool/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2010-07-22 08:07:01 UTC
  • mfrom: (1.2.8 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100722080701-k46mgdfz6euxwqsm
Tags: 1.4.3-1ubuntu1
* Merge from debian unstable, Remaining changes:
  - debian/control: Don't build against ruby1.9 as we don't want
    it in main.
* require libdbi >= 0.8.3 to prevent aborts when using dbi datasources

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#we use quilt
8
8
include /usr/share/quilt/quilt.make
9
9
 
 
10
#needed to build with Python 2.6
 
11
-include /usr/share/python/python.mk
 
12
ifeq (,$(py_sitename))
 
13
  py_sitename = site-packages
 
14
  py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
 
15
  py_sitename_sh = $(py_sitename)
 
16
  py_libdir_sh = $(py_libdir)
 
17
  py_setup_install_args = 
 
18
endif
 
19
 
 
20
 
10
21
 
11
22
#Ruby versions to build for
12
23
RUBY_VERS := 1.8
18
29
TCL_VERS := $(shell dpkg -s tcl-dev | grep '^Depends' \
19
30
        | sed 's,.*\<tcl\([0-9.]*\)-dev\>.*,\1,')
20
31
 
21
 
 
22
32
#let's help configure to figure out our host/build system
23
33
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
24
34
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
35
DEB_HOST_ARCH_CPU   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
36
 
25
37
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
26
38
  CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
27
39
else
46
58
        CFLAGS += -O0
47
59
else
48
60
#don't optimize on arm for now - #447041
49
 
ifneq ($(DEB_HOST_GNU_TYPE), arm)
 
61
ifneq ($(DEB_HOST_ARCH_CPU), arm)
50
62
        CFLAGS += -O2
51
63
endif
52
64
endif
117
129
        rm -rf src/.libs src/.deps doc/*.html doc/*.1 doc/*.txt
118
130
        rm -f intltool-extract intltool-merge intltool-update
119
131
        rm -f src/librrd.sym
 
132
        rm -f config.h
120
133
 
121
134
        dh_clean
122
135
 
141
154
        # we don't want .txt and .pod documentation in the package
142
155
        rm -rf debian/tmp/usr/share/doc/rrdtool/txt
143
156
        dh_install --sourcedir=$(CURDIR)/debian/tmp --fail-missing
 
157
        # remove duplicates
 
158
        rm debian/rrdtool/usr/bin/rrdcached
 
159
        rm debian/rrdtool/usr/share/man/man1/rrdcached.1
 
160
        rm debian/rrdtool/usr/share/doc/rrdtool/html/rrdcached.html
144
161
 
145
162
        touch $@
146
163
 
157
174
        done
158
175
 
159
176
        dh_installexamples -s
 
177
        chmod 644 debian/rrdcached/usr/share/doc/rrdcached/examples/RRDCached.pm
160
178
 
161
179
install-python%: install-common-stamp
162
180
        dh_testdir
163
181
        dh_testroot
164
182
        set -e ;\
165
183
         cd bindings/python ;\
166
 
         python$* setup.py install --root=$(CURDIR)/debian/python-rrdtool ;\
167
 
         python$*-dbg setup.py install --root=$(CURDIR)/debian/rrdtool-dbg
 
184
         python$* setup.py install --root=$(CURDIR)/debian/python-rrdtool \
 
185
                $(py_setup_install_args) ;\
 
186
         python$*-dbg setup.py install --root=$(CURDIR)/debian/rrdtool-dbg \
 
187
                $(py_setup_install_args)
 
188
 
168
189
        find $(CURDIR)/debian/rrdtool-dbg -type f -name '*.egg-info' -print0 |\
169
190
                 xargs -0r rm -f
170
191
 
197
218
        dh_pysupport -prrdtool-dbg
198
219
        dh_perl -a
199
220
        dh_installman -a
 
221
        dh_installinit -prrdcached
200
222
        dh_link -a
201
223
        dh_strip -a --dbg-package=rrdtool-dbg
202
224
        dh_compress -a
203
225
        dh_fixperms -a
204
 
        dh_makeshlibs -a
 
226
        dh_makeshlibs -a -Nliblua5.1-rrd0 -Nliblua5.1-rrd-dev
 
227
        dh_makeshlibs -pliblua5.1-rrd0 -pliblua5.1-rrd-dev -n
205
228
        dh_installdeb -a
206
229
        dh_shlibdeps -a
207
230
        dh_gencontrol -a