~jbicha/firefox/update-dependencies

« back to all changes in this revision

Viewing changes to debian/build/rules.mk

  • Committer: Rico Tzschichholz
  • Date: 2017-06-13 08:48:46 UTC
  • Revision ID: ricotz@ubuntu.com-20170613084846-h00yut2st5ttphsl
Disable ALSA backend for Firefox 55 because it makes the build failure.
This will remain disabled until somebody steps up to maintain it

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
$(error "Need to set MOZ_BRANDING_DIR")
37
37
endif
38
38
 
39
 
DEB_BUILD_DIR                   := $(MOZ_OBJDIR)
 
39
DEB_MAKE_MAKEFILE               := client.mk
40
40
# Without this, CDBS passes CFLAGS and CXXFLAGS options to client.mk, which breaks the build
41
41
DEB_MAKE_EXTRA_ARGS             :=
42
42
# These normally come from autotools.mk, which we no longer include (because we
43
43
# don't want to run configure)
44
 
DEB_MAKE_INSTALL_TARGET :=
 
44
DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/tmp
 
45
DEB_MAKE_CLEAN_TARGET   := cleansrcdir
45
46
# Prevent some files from being cleaned to avoid build failures
46
47
DEB_CLEAN_EXCLUDE               := Cargo.toml.orig
47
48
# Don't save debug symbols in firefox-dbg (rely on pkg-create-dbgsym to create
257
258
        @echo "* Building language pack xpi for $*"
258
259
        @echo ""
259
260
 
 
261
        rm -rf $(CURDIR)/debian/l10n-mergedirs/$*
 
262
        mkdir -p $(CURDIR)/debian/l10n-mergedirs/$*
 
263
 
260
264
        export PATH=$(VIRTENV_PATH)/bin/:$$PATH ; \
261
 
        export REAL_LOCALE_MERGEDIR=$(CURDIR)/debian/l10n-mergedirs/$* ; \
262
265
        cd $(MOZ_OBJDIR)/$(MOZ_APP)/locales ; \
263
 
                $(MAKE) langpack-$* BASE_MERGE=$(CURDIR)/debian/l10n-mergedirs REAL_LOCALE_MERGEDIR=$(CURDIR)/debian/l10n-mergedirs/$* || exit 1;
 
266
                $(MAKE) merge-$* LOCALE_MERGEDIR=$(CURDIR)/debian/l10n-mergedirs/$* || exit 1 ; \
 
267
                $(MAKE) langpack-$* LOCALE_MERGEDIR=$(CURDIR)/debian/l10n-mergedirs/$* || exit 1;
264
268
        @touch $@
265
269
 
266
 
common-configure-arch common-configure-indep:: common-configure-impl
267
 
common-configure-impl:: debian/stamp-mach-configure
268
 
debian/stamp-mach-configure:
269
 
        $(CURDIR)/mach configure && $(CURDIR)/mach build-backend
270
 
        touch $@
271
 
clean::
272
 
        rm -f debian/stamp-mach-configure
273
 
 
274
270
#common-build-arch:: make-langpack-xpis make-testsuite run-tests
275
271
common-build-arch:: make-langpack-xpis
276
272
 
286
282
        echo "app:Provides=$(subst $(subst $(MOZ_APP_NAME),,$(MOZ_PKG_NAME)),,$*)" >> debian/$*.substvars
287
283
endif
288
284
 
289
 
common-install-arch common-install-indep:: common-install-impl
290
 
common-install-impl:: debian/stamp-mach-install
291
 
debian/stamp-mach-install:
292
 
        DESTDIR=$(CURDIR)/debian/tmp $(CURDIR)/mach install
 
285
common-install-arch common-install-indep::
293
286
        $(foreach dir,$(MOZ_LIBDIR) $(MOZ_INCDIR) $(MOZ_IDLDIR) $(MOZ_SDKDIR), \
294
287
                if [ -d debian/tmp/$(dir)-$(MOZ_VERSION) ]; \
295
288
                then \
296
289
                        mv debian/tmp/$(dir)-$(MOZ_VERSION) debian/tmp/$(dir); \
297
290
                fi; )
298
 
        touch $@
299
 
clean::
300
 
        rm -f debian/stamp-mach-install
301
291
 
302
292
#common-install-arch:: install-testsuite
303
293
 
306
296
binary-install/$(MOZ_PKG_NAME)::
307
297
        install -m 0644 $(CURDIR)/debian/apport/blacklist $(CURDIR)/debian/$(MOZ_PKG_NAME)/etc/apport/blacklist.d/$(MOZ_PKG_NAME)
308
298
        install -m 0644 $(CURDIR)/debian/apport/native-origins $(CURDIR)/debian/$(MOZ_PKG_NAME)/etc/apport/native-origins.d/$(MOZ_PKG_NAME)
309
 
        # Monochrome/symbolic icon for gnome-shell
310
 
        install -m 0644 $(CURDIR)/browser/extensions/onboarding/content/img/watermark.svg $(CURDIR)/debian/$(MOZ_PKG_NAME)/usr/share/icons/hicolor/symbolic/apps/$(MOZ_PKG_NAME)-symbolic.svg
311
299
 
312
300
$(patsubst %,binary-post-install/%,$(MOZ_LOCALE_PKGS)):: binary-post-install/%: install-langpack-xpis-%
313
301