~mozillateam/firefox/firefox-trunk.head

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Alexander Sack
  • Date: 2007-03-21 17:21:52 UTC
  • Revision ID: asac@jwsdot.com-20070321172152-965dc2b7567eed2f
initial firefox-trunk debian/ package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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/')
 
11
 
 
12
DEB_TAR_SRCDIR          := mozilla
 
13
 
 
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
15
        OPTFLAGS = -O0
 
16
else
 
17
        OPTFLAGS = -O2 -fno-strict-aliasing
 
18
endif
 
19
 
 
20
OPTFLAGS += -g
 
21
 
 
22
DEB_AUTO_UPDATE_DEBIAN_CONTROL=1
 
23
DEB_AUTO_UPDATE_AUTOCONF=2.13
 
24
 
 
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
 
29
 
 
30
DEB_CONFIGURE_USER_FLAGS= \
 
31
        --disable-debug \
 
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 \
 
38
        --disable-composer \
 
39
        --disable-debug \
 
40
        --disable-elf-dynstr-gc \
 
41
        --disable-gtktest \
 
42
        --disable-installer \
 
43
        --disable-ldap \
 
44
        --disable-mailnews \
 
45
        --disable-profilesharing \
 
46
        --disable-strip \
 
47
        --disable-strip-libs \
 
48
        --disable-tests \
 
49
        --disable-updater \
 
50
        --disable-xprint \
 
51
        --enable-application=browser \
 
52
        --enable-canvas \
 
53
        --enable-default-toolkit=cairo-gtk2 \
 
54
        --enable-gnomevfs \
 
55
        --enable-optimize="-pipe -w $(OPTFLAGS)" \
 
56
        --enable-pango \
 
57
        --enable-postscript \
 
58
        --enable-svg \
 
59
        --enable-svg-renderer=cairo \
 
60
        --disable-system-cairo \
 
61
        --enable-mathml \
 
62
        --enable-xft \
 
63
        --enable-xinerama \
 
64
        --enable-extensions=default \
 
65
        --enable-single-profile \
 
66
        --enable-system-myspell \
 
67
        --with-distribution-id=com.ubuntu \
 
68
        --with-branding=browser/branding/unofficial \
 
69
        $(NULL)
 
70
 
 
71
 
 
72
UUDECODE = \
 
73
        debsearch.gif \
 
74
        wikipedia.gif \
 
75
        $(NULL)
 
76
 
 
77
pre-build::
 
78
        set -e; for i in $(UUDECODE); do \
 
79
                uudecode -o debian/$$i debian/$$i.uu; \
 
80
                done
 
81
 
 
82
clean::
 
83
        set -e; for i in $(UUDECODE); do \
 
84
                rm -f debian/$$i; \
 
85
                done
 
86
 
 
87
CFLAGS =
 
88
CXXFLAGS =