~ubuntu-branches/debian/squeeze/tasks/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ross Burton, Loic Minier
  • Date: 2008-02-20 17:24:42 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080220172442-rso0p0yngsf414dy
Tags: 0.13-1
[ Loic Minier ]

* New upstream release.
* Bump up Standards-Version to 3.7.3.
* Rework to build a Hildon flavour of the package.
  - New binary package tasks-hildon; add conflicts with tasks and update
    descriptions; add install file; this package must be the first in the
    control file as to permit the dbg symbols for the standard tasks package
    to be in tasks-dbg instead of the tasks-hildon ones.
  - Add build hooks for configure, build, and install to add flavour /
    package specific rules and configure flags.
  - Build-dep on libhildon-1-dev, libdbus-1-dev, libhildonmime-dev for the
    Hildon flavour.
* Add explicit Copyright statement to debian/copyright.
* Use ${binary:Version} instead of ${Source-Version}; build-dep on dpkg-dev
  >= 1.13.19.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
# build each flavor in a different dir
 
4
BUILDBASEDIR := $(CURDIR)/debian/build
 
5
DEB_BUILDDIR := $(BUILDBASEDIR)/standard
 
6
DEB_BUILDDIR_tasks-hildon := $(BUILDBASEDIR)/hildon
 
7
 
3
8
include /usr/share/cdbs/1/rules/debhelper.mk
4
9
include /usr/share/cdbs/1/class/gnome.mk
5
10
include /usr/share/cdbs/1/rules/simple-patchsys.mk
7
12
 
8
13
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-O1 -Wl,--as-needed"
9
14
 
10
 
DEB_DH_INSTALL_ARGS := --sourcedir=debian/tmp
 
15
# install each build flavor into a different dir
 
16
INSTALLBASEDIR := $(CURDIR)/debian/tmp
 
17
DEB_DESTDIR := $(INSTALLBASEDIR)/standard
 
18
DEB_DESTDIR_tasks-hildon := $(INSTALLBASEDIR)/hildon
 
19
# and teach dh_install about it
 
20
DEB_DH_INSTALL_ARGS = --sourcedir=$(if $(findstring tasks-hildon,$(cdbs_curpkg)),$(DEB_DESTDIR_tasks-hildon),$(DEB_DESTDIR))
 
21
 
 
22
# Hildon flavor flags
 
23
DEB_CONFIGURE_HILDON_FLAGS += --enable-hildon
 
24
 
 
25
configure/tasks-hildon:: $(DEB_BUILDDIR_tasks-hildon)/config.status
 
26
$(DEB_BUILDDIR_tasks-hildon)/config.status:
 
27
        cd $(DEB_BUILDDIR_tasks-hildon) && \
 
28
                $(DEB_CONFIGURE_SCRIPT_ENV) \
 
29
                        $(DEB_CONFIGURE_SCRIPT) \
 
30
                                $(DEB_CONFIGURE_NORMAL_ARGS) \
 
31
                                $(cdbs_configure_flags) \
 
32
                                $(DEB_CONFIGURE_EXTRA_FLAGS) \
 
33
                                $(DEB_CONFIGURE_USER_FLAGS) \
 
34
                                $(DEB_CONFIGURE_HILDON_FLAGS)
 
35
 
 
36
build/tasks-hildon::
 
37
        make -C $(DEB_BUILDDIR_tasks-hildon)
 
38
 
 
39
install/tasks-hildon::
 
40
        make -C $(DEB_BUILDDIR_tasks-hildon) install DESTDIR=$(DEB_DESTDIR_tasks-hildon)
 
41
 
 
42
clean::
 
43
        rm -rf $(BUILDBASEDIR)
11
44
 
12
45
common-binary-predeb-arch:: list-missing
 
46