201
206
ifeq ($(MOZ_APP_BASENAME), $(MOZ_APP_NAME))
207
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1004" && echo "1"))
208
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.10.04.1), adobe-flashplugin (<= 11.1.102.63-0lucid1)
209
PLUGIN_CONFLICTS := gcu-plugin (<= 0.10.12-2ubuntu1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.04.1), \
210
mozilla-gtk-vnc (<= 0.3.10-2ubuntu2.1), mozilla-opensc (<= 0.11.12-1ubuntu3.2), \
211
mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.13.3-1ubuntu1), \
212
xine-plugin (<= 1.0.2-1ubuntu2), mozilla-virt-viewer (<= 0.0.3-6ubuntu7.xul191.1)
214
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1010" && echo "1"))
215
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.10.10.1), adobe-flashplugin (<= 11.1.102.63-0maverick1)
216
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.3-1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.10.1), \
217
mozilla-gtk-vnc (<= 0.4.1-3ubuntu2), mozilla-opensc (<= 0.11.13-1ubuntu2.1), \
218
mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.14.1-2~exp3ubuntu1), \
219
xine-plugin (<= 1.0.2-2ubuntu1)
221
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1104" && echo "1"))
222
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.11.04.1), adobe-flashplugin (<= 11.1.102.63-0natty1)
223
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.7-1ubuntu1)
225
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1110" && echo "1"))
226
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.11.10.1), adobe-flashplugin (<= 11.1.102.63-0oneiric1)
227
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.8-1ubuntu3)
229
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu1), adobe-flashplugin (<= 11.1.102.63-0precise1)
230
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.10-1ubuntu1)
202
235
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -ge "1010" && echo "1"))
203
236
APP_CONTROL_ARGS := -Vapp:Replaces="abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer" \
204
237
-Vapp:Breaks="abrowser (<= 4.0~b11+build3+nobinonly-0ubuntu1), abrowser-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), \
205
firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1)"
238
firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), $(PLUGIN_BREAKS)" \
239
-Vapp:Conflicts="$(PLUGIN_CONFLICTS)"
207
241
APP_CONTROL_ARGS := -Vapp:Provides="firefox-3.6, firefox-3.5, firefox-3.0, firefox-2, firefox-2-dom-inspector, firefox-2-libthai" \
208
242
-Vapp:Conflicts="firefox-3.6 (<< 3.6~hg20100117r33523), firefox-3.5 (<< 3.6~hg20100117r33523), \
209
243
firefox-3.0 (<< 3.6~hg20100117r33523), firefox-3.6-gnome-support (<< 3.6~hg20100117r33523), \
210
244
firefox-2 (<< 3), firefox-2-libthai (<< 3), firefox-2-dom-inspector (<< 3), \
211
245
abrowser (<= 4.0~b11+build3+nobinonly-0ubuntu1), abrowser-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), \
212
firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1)" \
246
firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), $(PLUGIN_CONFLICTS)" \
213
247
-Vapp:Replaces="firefox-3.6, firefox-3.5, firefox-3.0, firefox-3.6-gnome-support, firefox-2, firefox-2-libthai, \
214
firefox-2-dom-inspector, abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer"
248
firefox-2-dom-inspector, abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer" \
249
-Vapp:Breaks="(PLUGIN_BREAKS)"
215
250
DEV_CONTROL_ARGS := -Vdev:Provides="firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev" \
216
251
-Vdev:Replaces="firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev" \
217
252
-Vdev:Conflicts="firefox-3.6-dev (<< 3.6~hg20100117r33523+nobinonly), firefox-3.5-dev (<< 3.6~hg20100117r33523), \
300
335
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -ge "1104" && echo "1"))
301
336
DEB_DEFINES += -DMOZ_NEW_SYSPREF
303
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -ge "1110" && echo "1"))
338
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1110" && echo "1"))
304
339
DEB_DEFINES += -DMOZ_SYMLINKED_DIST
341
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -ge "1204" && echo "1"))
342
DEB_DEFINES += -DMOZ_NO_MORE_SYMLINKED_DIST
306
345
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -lt "1204" && echo "1"))
307
346
DEB_DEFINES += -DMOZ_LIBXUL_PKGCONFIG
444
common-build-arch:: debian/stamp-testsuite $(pkgconfig_files)
446
common-build-indep:: debian/stamp-langpack-xpi-build
448
common-binary-arch:: debian/stamp-buildsymbols
450
common-binary-post-install-indep::
452
@echo "**********************************"
453
@echo "* Installing language pack xpi's *"
454
@echo "**********************************"
459
line=`echo $$line | sed 's/#.*//' | sed '/^$$/d'` ; \
460
if [ ! -z "$$line" ] ; \
486
common-build-arch:: run-tests $(pkgconfig_files)
488
common-build-indep:: make-langpack-xpis
490
common-install-arch common-install-indep::
491
$(foreach dir,$(MOZ_LIBDIR) $(MOZ_INCDIR) $(MOZ_IDLDIR) $(MOZ_SDKDIR), \
492
if [ -d debian/tmp$(dir)-$(MOZ_VERSION) ]; \
462
language=`echo $$line | sed 's/\([^:]*\):*\([^:]*\)/\1/'` ; \
463
pkgname=`echo $$line | sed 's/\([^:]*\):*\([^:]*\)/\2/'` ; \
464
id=`python $(CURDIR)/debian/build/get-xpi-id.py $(CURDIR)/$(MOZ_DISTDIR)/linux-$(DEB_HOST_GNU_CPU)/xpi/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi` ; \
465
[ $$? -eq 0 ] || exit 1 ; \
466
echo "Installing $(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi to $${id}.xpi in $(MOZ_APP_NAME)-locale-$${pkgname}" ; \
467
dh_installdirs -p$(MOZ_APP_NAME)-locale-$${pkgname} usr/lib/$(MOZ_APP_NAME)-addons/extensions ; \
468
cp $(CURDIR)/$(MOZ_DISTDIR)/linux-$(DEB_HOST_GNU_CPU)/xpi/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi \
469
$(CURDIR)/debian/$(MOZ_APP_NAME)-locale-$${pkgname}/usr/lib/$(MOZ_APP_NAME)-addons/extensions/$${id}.xpi ; \
470
dh_installdirs -p$(MOZ_APP_NAME)-locale-$${pkgname} usr/lib/$(MOZ_APP_NAME)-addons/searchplugins/$${language} ; \
471
cp -r $(CURDIR)/$(MOZ_DISTDIR)/xpi-stage/locale-$${language}/searchplugins/*.xml \
472
$(CURDIR)/debian/$(MOZ_APP_NAME)-locale-$${pkgname}/usr/lib/$(MOZ_APP_NAME)-addons/searchplugins/$${language}/. ; \
474
done < $(CURDIR)/debian/config/locales.shipped
494
mv debian/tmp$(dir)-$(MOZ_VERSION) debian/tmp$(dir); \
497
common-binary-arch:: make-buildsymbols
476
499
binary-install/$(MOZ_APP_NAME)::
477
500
ifeq (1,$(MOZ_ENABLE_BREAKPAD))
496
519
dh_link -p$(MOZ_APP_NAME)-dev $(MOZ_INCDIR)/nspr/prcpucfg.h $(MOZ_INCDIR)/nspr/md/_linux.cfg
522
common-binary-post-install-indep::
524
@echo "**********************************"
525
@echo "* Installing language pack xpi's *"
526
@echo "**********************************"
531
line=`echo $$line | sed 's/#.*//' | sed '/^$$/d'` ; \
532
if [ ! -z "$$line" ] ; \
534
language=`echo $$line | sed 's/\([^:]*\):*\([^:]*\)/\1/'` ; \
535
pkgname=`echo $$line | sed 's/\([^:]*\):*\([^:]*\)/\2/'` ; \
536
id=`python $(CURDIR)/debian/build/get-xpi-id.py $(CURDIR)/$(MOZ_DISTDIR)/linux-$(DEB_HOST_GNU_CPU)/xpi/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi` ; \
537
[ $$? -eq 0 ] || exit 1 ; \
538
echo "Installing $(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi to $${id}.xpi in $(MOZ_APP_NAME)-locale-$${pkgname}" ; \
539
dh_installdirs -p$(MOZ_APP_NAME)-locale-$${pkgname} usr/lib/$(MOZ_APP_NAME)-addons/extensions ; \
540
cp $(CURDIR)/$(MOZ_DISTDIR)/linux-$(DEB_HOST_GNU_CPU)/xpi/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi \
541
$(CURDIR)/debian/$(MOZ_APP_NAME)-locale-$${pkgname}/usr/lib/$(MOZ_APP_NAME)-addons/extensions/$${id}.xpi ; \
542
dh_installdirs -p$(MOZ_APP_NAME)-locale-$${pkgname} $(DIST_SEARCHPLUGIN_DIR)/locale/$${language} ; \
543
cp -r $(CURDIR)/$(MOZ_DISTDIR)/xpi-stage/locale-$${language}/searchplugins/*.xml \
544
$(CURDIR)/debian/$(MOZ_APP_NAME)-locale-$${pkgname}/$(DIST_SEARCHPLUGIN_DIR)/locale/$${language}/. ; \
546
done < $(CURDIR)/debian/config/locales.shipped
548
common-binary-fixup-indep::
551
line=`echo $$line | sed 's/#.*//' | sed '/^$$/d'` ; \
552
if [ ! -z "$$line" ] ; \
554
pkgname=`echo $$line | sed 's/\([^:]*\):*\([^:]*\)/\2/'` ; \
555
cp $(CURDIR)/debian/$(MOZ_APP_NAME)-locale.preinst $(CURDIR)/debian/$(MOZ_APP_NAME)-locale-$${pkgname}.preinst ; \
557
done < $(CURDIR)/debian/config/locales.shipped
559
ifeq (1, $(MOZ_TREE_NSS))
560
binary-predeb/$(MOZ_APP_NAME)::
561
$(foreach lib,libsoftokn3.so libfreebl3.so libnssdbm3.so, \
562
LD_LIBRARY_PATH=debian/$(MOZ_APP_NAME)$(MOZ_LIBDIR):$$LD_LIBRARY_PATH \
563
$(MOZ_DISTDIR)/bin/shlibsign -v -i debian/$(MOZ_APP_NAME)$(MOZ_LIBDIR)/$(lib);)
499
566
common-binary-predeb-arch::
500
567
$(foreach file,$(DEBIAN_EXECUTABLES),chmod a+x debian/$(file);)
501
568
# we want the gnome dependencies not to be in the main package at shlibdeps runtime, hence we dont
502
569
# install them at binary-install/* stage, but copy them over _after_ the shlibdeps had been generated
503
570
$(foreach file,$(GNOME_SUPPORT_FILES),mv debian/$(MOZ_APP_NAME)-gnome-support$(MOZ_LIBDIR)/components/$(file) debian/$(MOZ_APP_NAME)$(MOZ_LIBDIR)/components/;) true
505
ifeq (1, $(MOZ_TREE_NSS))
506
binary-predeb/$(MOZ_APP_NAME)::
507
$(foreach lib,libsoftokn3.so libfreebl3.so libnssdbm3.so, \
508
LD_LIBRARY_PATH=debian/$(MOZ_APP_NAME)$(MOZ_LIBDIR):$$LD_LIBRARY_PATH \
509
$(MOZ_DISTDIR)/bin/shlibsign -v -i debian/$(MOZ_APP_NAME)$(MOZ_LIBDIR)/$(lib);)
512
572
pre-build:: $(subst_files)
513
573
cp $(CURDIR)/debian/syspref.js $(CURDIR)/debian/$(MOZ_APP_BASENAME).js