3
# These are used for cross-compiling and for saving the configure script
4
# from having to guess our platform (since we know it already)
5
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
9
DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\(.*\)$$/\1/ p')
10
DEBIAN_REV_CODE := $(shell echo $(DEBIAN_VERSION) | sed 's/^.*-\([0-9]*\)[^-]*$$/0\1/ ; s/^.*\(..\)$$/\1/')
12
DEB_TAR_SRCDIR := mozilla
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17
OPTFLAGS = -O2 -fno-strict-aliasing
22
DEB_AUTO_UPDATE_DEBIAN_CONTROL=1
23
DEB_AUTO_UPDATE_AUTOCONF=2.13
25
include /usr/share/cdbs/1/rules/tarball.mk
26
include /usr/share/cdbs/1/rules/debhelper.mk
27
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
28
include /usr/share/cdbs/1/class/autotools.mk
30
DEB_CONFIGURE_USER_FLAGS= \
32
--with-default-mozilla-five-home=$(LIB_DIR) \
33
--with-user-appdir=.mozilla \
34
--with-system-png=/usr \
35
--with-system-jpeg=/usr \
36
--with-system-zlib=/usr \
37
--without-system-nspr \
40
--disable-elf-dynstr-gc \
45
--disable-profilesharing \
47
--disable-strip-libs \
51
--enable-application=browser \
53
--enable-default-toolkit=cairo-gtk2 \
55
--enable-optimize="-pipe -w $(OPTFLAGS)" \
59
--enable-svg-renderer=cairo \
60
--disable-system-cairo \
64
--enable-extensions=default \
65
--enable-single-profile \
66
--enable-system-myspell \
67
--with-distribution-id=com.ubuntu \
68
--with-branding=browser/branding/unofficial \
78
set -e; for i in $(UUDECODE); do \
79
uudecode -o debian/$$i debian/$$i.uu; \
83
set -e; for i in $(UUDECODE); do \