~ubuntu-branches/ubuntu/trusty/globus-core/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Mattias Ellert
  • Date: 2009-06-22 09:35:51 UTC
  • mfrom: (2.1.2 karmic)
  • Revision ID: james.westby@ubuntu.com-20090622093551-p1w745mo6p0u5eip
Tags: 5.15-8
Make globus-core work with automake 1.11.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
version = 5.15
25
25
 
26
26
INSTALLDIR = $(CURDIR)/debian/tmp
 
27
GLOBUSPACKAGEDIR = $(INSTALLDIR)$(_datadir)/globus/packages
27
28
 
28
29
_prefix = /usr
29
30
_bindir = $(_prefix)/bin
37
38
 
38
39
DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
39
40
 
40
 
ifneq (, $(filter $(DEB_HOST_ARCH_CPU), amd64 alpha ia64 s390x ppc64 sparc64))
 
41
ifneq (,$(filter $(DEB_HOST_ARCH_CPU), amd64 alpha ia64 s390x ppc64 sparc64))
41
42
flavor = gcc64pthr
42
43
enable64 = yes
43
44
else
48
49
configure: configure-stamp
49
50
        :
50
51
 
51
 
configure-stamp: patch
 
52
configure-stamp: $(QUILT_STAMPFN)
52
53
        dh_testdir
53
54
 
54
55
        ./bootstrap
61
62
        done
62
63
 
63
64
        CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)" FFLAGS="$(CFLAGS)" \
64
 
        LDFLAGS="-Wl,-z,defs" ./configure \
 
65
        LDFLAGS="$(LDFLAGS) -Wl,-z,defs" ./configure \
65
66
           --host=$(DEB_HOST_GNU_TYPE) \
66
67
           --build=$(DEB_BUILD_GNU_TYPE) \
67
68
           --prefix=$(_prefix) \
90
91
build: build-stamp
91
92
        :
92
93
 
93
 
build-stamp: configure
 
94
build-stamp: configure-stamp
94
95
        dh_testdir
95
96
 
96
97
        $(MAKE)
97
98
 
98
99
        touch $@
99
100
 
100
 
clean: cleanup unpatch
 
101
unpatch: cleanup
 
102
 
 
103
clean: unpatch
101
104
        :
102
105
 
103
106
cleanup:
134
137
 
135
138
        dh_clean debian/*.install debian/copyright
136
139
 
137
 
install: build
 
140
install: build-stamp
138
141
        dh_testdir
139
142
        dh_testroot
140
143
        dh_clean -k
141
144
 
142
145
        $(MAKE) install DESTDIR=$(INSTALLDIR)
143
146
 
 
147
        # These scripts are intended to be sourced, not executed
144
148
        chmod -x $(INSTALLDIR)$(_datadir)/globus/globus-build-env-*.sh
145
149
 
 
150
        # Add -Wl,--as-needed to the libtool script
 
151
        sed 's! -shared ! \\$${wl}--as-needed&!g' \
 
152
          -i $(INSTALLDIR)$(_datadir)/globus/libtool-$(flavor)
 
153
 
 
154
        # Install the GPT metadata to pkg-config file converter
146
155
        install debian/globus-gpt2pkg-config \
147
156
          $(INSTALLDIR)$(_datadir)/globus/globus-gpt2pkg-config
148
157
 
 
158
        # Generate pkg-config file from GPT metadata
149
159
        mkdir -p $(INSTALLDIR)$(_libdir)/pkgconfig
150
160
        $(INSTALLDIR)$(_datadir)/globus/globus-gpt2pkg-config \
151
161
          pkgdata/pkg_data_$(flavor)_dev.gpt > \
152
162
          $(INSTALLDIR)$(_libdir)/pkgconfig/$(name).pc
153
163
 
154
 
        rm $(INSTALLDIR)/GLOBUS_LICENSE
155
 
        grep -v GLOBUS_LICENSE \
156
 
          $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/noflavor_data.filelist > \
157
 
          $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/noflavor_data.filelist.new
158
 
        mv $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/noflavor_data.filelist.new \
159
 
          $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/noflavor_data.filelist
 
164
        # Remove license file installed directly in the buildroot
 
165
        rm -f $(INSTALLDIR)/GLOBUS_LICENSE
 
166
        sed /GLOBUS_LICENSE/d \
 
167
          -i $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_data.filelist
160
168
 
161
169
        # Generate package filelists
162
 
 
163
 
        cat $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/$(flavor)_pgm.filelist \
164
 
            $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/$(flavor)_dev.filelist \
165
 
            $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/$(flavor)_rtl.filelist \
166
 
            $(INSTALLDIR)$(_datadir)/globus/packages/$(_name)/noflavor_data.filelist \
 
170
        cat $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_pgm.filelist \
 
171
            $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_dev.filelist \
 
172
            $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_rtl.filelist \
 
173
            $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_data.filelist \
167
174
          | sed s!^!debian/tmp$(_prefix)! > debian/$(name).install
168
175
 
169
176
        echo debian/tmp$(_datadir)/globus/globus-gpt2pkg-config \
188
195
binary-indep:
189
196
        :
190
197
 
191
 
binary-arch: build install
 
198
binary-arch: install
192
199
        dh_testdir
193
200
        dh_testroot
194
201
        dh_installchangelogs