~ubuntu-branches/ubuntu/quantal/libgail-gnome/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2008-11-21 19:46:18 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20081121194618-p6cv7rzalopafnq6
Tags: 1.20.1-1
* New upstream bugfix release.
* Link with -Wl,-Bsymbolic to avoid encountering bugs similar to the 
  one fixed upstream.
* Also pass -Wl,-O1 -Wl,-z,defs -Wl,--as-needed.
* 90_relibtoolize.patch: relibtoolize to avoid the amd64 rpath issue.
* 99_ltmain_as-needed.patch: make --as-needed work.
* Standards version is 3.8.0.
* Don’t call dh_makeshlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
17
17
 
 
18
LDFLAGS += -Wl,-Bsymbolic -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
 
19
 
18
20
DEBVERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
19
21
VERSION := $(shell echo $(DEBVERSION) | sed -e 's/-[^-]*$$//')
20
22
SONAME := 0
49
51
 
50
52
$(STAMP_DIR)/configure-stamp: $(STAMP_DIR)/patch-stamp
51
53
        dh_testdir
52
 
        CFLAGS="$(CFLAGS)" ./configure $(configure_flags)
 
54
        CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure $(configure_flags)
53
55
        touch $@
54
56
 
55
57
configure: $(STAMP_DIR)/configure-stamp
90
92
clean:: debian/control
91
93
        dh_testdir
92
94
        dh_testroot
93
 
        -$(MAKE) distclean
 
95
        [ ! -f Makefile ] || $(MAKE) distclean
94
96
        # restore files from backup (before unpatching)
95
97
        -test -r config.sub.orig && mv -f config.sub.orig config.sub
96
98
        -test -r config.guess.orig && mv -f config.guess.orig config.guess
115
117
        dh_strip -a --dbg-package=libgail-gnome-dbg
116
118
        dh_compress -a
117
119
        dh_fixperms -a
118
 
        dh_makeshlibs -plibgail-gnome-module \
119
 
                -V "libgail-gnome-module (>= $(VERSION))"
120
120
        dh_installdeb -a
121
121
        # override shlibs for libraries from this source before computing
122
122
        # dependencies of packages generated from this source; we already have