|
2
by Alexander Sack
initial firefox-trunk debian/ package |
1 |
#!/usr/bin/make -f
|
2 |
||
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) |
|
8 |
||
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/') |
|
|
6
by Alexander Sack
+ renamed debian/patches/brandir-dir-depth-fix to debian/patches/ftbfs-with-branding-dir |
11 |
DEBIAN_DATE := $(shell echo $(DEBIAN_VERSION) | sed 's/^.*cvs\([0-9]*\).*$$/\1/') |
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
12 |
|
|
12
by Alexander Sack
* debian/rules: added update-orig target; unify naming of DEBIAN_MOZ_ and |
13 |
DEBIAN_MOZ_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: \([0-9.]*\).*$$/\1/ p') |
14 |
||
15 |
DEBIAN_MOZ_SOURCE_VERSION := $(shell echo $(DEBIAN_VERSION) | sed 's/^\(.*\)-[^-]*$$/\1/') |
|
16 |
DEBIAN_MOZ_APPLICATION := $(shell dpkg-parsechangelog | sed -n 's/Source: \(.*\)$$/\1/ p') |
|
17 |
DEBIAN_MOZ_UPSTREAM_APPLICATION ?= firefox |
|
18 |
||
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
19 |
DEB_TAR_SRCDIR := mozilla |
20 |
||
21 |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
|
22 |
OPTFLAGS = -O0 |
|
23 |
else
|
|
24 |
OPTFLAGS = -O2 -fno-strict-aliasing |
|
25 |
endif
|
|
26 |
||
27 |
OPTFLAGS += -g |
|
28 |
||
|
21
by Alexander Sack
* debian/rules: disable auto-creation of control and configure |
29 |
#DEB_AUTO_UPDATE_DEBIAN_CONTROL=1
|
30 |
#DEB_AUTO_UPDATE_AUTOCONF=2.13
|
|
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
31 |
|
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
32 |
DEB_DH_INSTALL_ARGS_firefox := -Xgnome -Ximgicon -Xmozlibthai |
|
25
by Alexander Sack
don't use -Xnss for dh_install of firefox-dev files - fix missing headers for epiphany |
33 |
DEB_DH_INSTALL_ARGS_firefox-dev := |
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
34 |
|
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
35 |
include /usr/share/cdbs/1/rules/tarball.mk |
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
36 |
include $(CURDIR)/debian/cdbs-rules/debhelper.mk |
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
37 |
include /usr/share/cdbs/1/rules/patchsys-quilt.mk |
38 |
include /usr/share/cdbs/1/class/autotools.mk |
|
39 |
||
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
40 |
export BUILD_OFFICIAL=1 |
41 |
export MOZILLA_OFFICIAL=1 |
|
42 |
||
|
6
by Alexander Sack
+ renamed debian/patches/brandir-dir-depth-fix to debian/patches/ftbfs-with-branding-dir |
43 |
|
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
44 |
DEB_CONFIGURE_USER_FLAGS= \ |
45 |
--disable-debug \ |
|
46 |
--with-default-mozilla-five-home=$(LIB_DIR) \ |
|
47 |
--with-user-appdir=.mozilla \ |
|
48 |
--with-system-png=/usr \ |
|
49 |
--with-system-jpeg=/usr \ |
|
50 |
--with-system-zlib=/usr \ |
|
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
51 |
--with-system-nspr \ |
52 |
--with-system-nss \ |
|
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
53 |
--disable-composer \ |
54 |
--disable-debug \ |
|
55 |
--disable-elf-dynstr-gc \ |
|
56 |
--disable-gtktest \ |
|
57 |
--disable-installer \ |
|
58 |
--disable-ldap \ |
|
59 |
--disable-mailnews \ |
|
60 |
--disable-profilesharing \ |
|
61 |
--disable-strip \ |
|
62 |
--disable-strip-libs \ |
|
63 |
--disable-tests \ |
|
64 |
--disable-updater \ |
|
65 |
--disable-xprint \ |
|
|
6
by Alexander Sack
+ renamed debian/patches/brandir-dir-depth-fix to debian/patches/ftbfs-with-branding-dir |
66 |
--enable-application=browser \ |
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
67 |
--enable-canvas \ |
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
68 |
--enable-default-toolkit=gtk2 \ |
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
69 |
--enable-gnomevfs \ |
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
70 |
--enable-libthai \ |
|
6
by Alexander Sack
+ renamed debian/patches/brandir-dir-depth-fix to debian/patches/ftbfs-with-branding-dir |
71 |
--enable-optimize="-pipe -w $(OPTFLAGS)" \ |
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
72 |
--enable-pango \ |
73 |
--enable-postscript \ |
|
74 |
--enable-svg \ |
|
75 |
--enable-svg-renderer=cairo \ |
|
|
11
by Alexander Sack
* debian/control.in, debian/control, debian/rules: use |
76 |
--enable-system-cairo \ |
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
77 |
--enable-mathml \ |
78 |
--enable-xft \ |
|
79 |
--enable-xinerama \ |
|
80 |
--enable-extensions=default \ |
|
81 |
--enable-single-profile \ |
|
82 |
--enable-system-myspell \ |
|
83 |
--with-distribution-id=com.ubuntu \ |
|
|
7
by Alexander Sack
Rename package/binary/directories for stable package: |
84 |
--enable-official-branding |
|
6
by Alexander Sack
+ renamed debian/patches/brandir-dir-depth-fix to debian/patches/ftbfs-with-branding-dir |
85 |
|
86 |
USE_SYSTEM_CAIRO := $(shell pkg-config --exists 'cairo >= 1.4.0'; a=$$?; if test $$a != 1; then echo 1; fi) |
|
87 |
||
88 |
# for old cairo versions we cannot use system cairo
|
|
89 |
ifeq (1, $(USE_SYSTEM_CAIRO)) |
|
90 |
DEB_CONFIGURE_USER_FLAGS += \ |
|
91 |
--enable-system-cairo |
|
92 |
else
|
|
93 |
DEB_CONFIGURE_USER_FLAGS += \ |
|
94 |
--disable-system-cairo |
|
95 |
endif
|
|
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
96 |
|
97 |
UUDECODE = \ |
|
98 |
debsearch.gif \ |
|
99 |
wikipedia.gif \ |
|
100 |
$(NULL) |
|
101 |
||
102 |
pre-build:: |
|
103 |
set -e; for i in $(UUDECODE); do \ |
|
104 |
uudecode -o debian/$$i debian/$$i.uu; \ |
|
|
58
by Alexander Sack
* debian/rules: rename obscure binary to obscure-tool |
105 |
done; gcc -o debian/build-tools/obscure-tool debian/build-tools/obscure.c; \ |
106 |
debian/build-tools/obscure-tool debian/firefox.cfg.source debian/firefox.cfg |
|
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
107 |
|
108 |
clean:: |
|
109 |
set -e; for i in $(UUDECODE); do \ |
|
110 |
rm -f debian/$$i; \ |
|
|
58
by Alexander Sack
* debian/rules: rename obscure binary to obscure-tool |
111 |
done; rm -f debian/build-tools/obscure-tool; |
|
56
by Alexander Sack
Obscure firefox.cfg patch: |
112 |
rm -f debian/firefox.cfg |
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
113 |
|
|
16
by Alexander Sack
Fix User-Agent: |
114 |
common-install-arch:: common-install-impl |
115 |
set -e; . /etc/lsb-release; export DISTRIB_ID DISTRIB_RELEASE DISTRIB_CODENAME; $(CURDIR)/build-tree/mozilla/config/preprocessor.pl -E < $(CURDIR)/debian/vendor.js.in > $(CURDIR)/debian/tmp/usr/lib/firefox/defaults/pref/vendor.js |
|
|
50
by Alexander Sack
produce 48x48 firefox icon during common-install-arch:: |
116 |
set -e; /usr/bin/convert -resize 48x48 $(CURDIR)/debian/tmp/usr/lib/firefox/icons/mozicon128.png $(CURDIR)/debian/tmp/usr/lib/firefox/icons/mozicon50.png |
|
12
by Alexander Sack
* debian/rules: added update-orig target; unify naming of DEBIAN_MOZ_ and |
117 |
|
118 |
$(CURDIR)/../$(DEBIAN_MOZ_APPLICATION)_$(DEBIAN_MOZ_SOURCE_VERSION).orig.tar.gz: $(DEBIAN_MOZ_UPSTREAM_APPLICATION)-$(DEBIAN_MOZ_UPSTREAM_VERSION)-source.tar.bz2 |
|
119 |
set -e; rm -rf $(DEBIAN_MOZ_APPLICATION)-$(DEBIAN_MOZ_SOURCE_VERSION); \ |
|
120 |
mkdir $(DEBIAN_MOZ_APPLICATION)-$(DEBIAN_MOZ_SOURCE_VERSION); \ |
|
121 |
cp $^ $(DEBIAN_MOZ_APPLICATION)-$(DEBIAN_MOZ_SOURCE_VERSION)/; \ |
|
122 |
tar cvzf $@ $(DEBIAN_MOZ_APPLICATION)-$(DEBIAN_MOZ_SOURCE_VERSION)/$^ ; \ |
|
123 |
rm -rf $(DEBIAN_MOZ_APPLICATION)-$(DEBIAN_MOZ_SOURCE_VERSION) |
|
124 |
||
125 |
update-orig: $(CURDIR)/../$(DEBIAN_MOZ_APPLICATION)_$(DEBIAN_MOZ_SOURCE_VERSION).orig.tar.gz |
|
126 |
||
127 |
echox:
|
|
128 |
set -e; echo DEBIAN_MOZ_APPLICATION = $(DEBIAN_MOZ_APPLICATION); \ |
|
129 |
echo DEBIAN_MOZ_SOURCE_VERSION = $(DEBIAN_MOZ_SOURCE_VERSION) |
|
130 |
||
|
2
by Alexander Sack
initial firefox-trunk debian/ package |
131 |
CFLAGS = |
132 |
CXXFLAGS = |