38
39
DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
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))
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) \
135
138
dh_clean debian/*.install debian/copyright
142
145
$(MAKE) install DESTDIR=$(INSTALLDIR)
147
# These scripts are intended to be sourced, not executed
144
148
chmod -x $(INSTALLDIR)$(_datadir)/globus/globus-build-env-*.sh
150
# Add -Wl,--as-needed to the libtool script
151
sed 's! -shared ! \\$${wl}--as-needed&!g' \
152
-i $(INSTALLDIR)$(_datadir)/globus/libtool-$(flavor)
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
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
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
161
169
# Generate package filelists
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
169
176
echo debian/tmp$(_datadir)/globus/globus-gpt2pkg-config \