~ubuntu-branches/ubuntu/dapper/enigmail/dapper-proposed

« back to all changes in this revision

Viewing changes to debian/rules.mailnews

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2005-03-29 21:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20050329210000-tlogkivm28p5nez2
Tags: 2:0.90.2-1
 * new upstream release enigmail 0.90.2 - plain
   bugfixes and support for thunderbird 1.0.2
 * builds for mozilla-mailnews 1.7.6 (Closes: 301975,302084)
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
export MOZ_MAILNEWS=1
 
4
 
 
5
DESTDIR=$(CURDIR)/debian/tmp-enigmail-mn
 
6
MOZ_APP_NAME=mozilla
 
7
MOZ_APP_POSTFIX=
 
8
 
 
9
ENIG_EXT_ID={847b3a00-7ab1-11d4-8f02-006008948af5}
 
10
 
 
11
all_patches=$(patsubst \#%,,$(shell cat $(wildcard $(CURDIR)/debian/patches/00list.$(MOZ_APP_NAME))))
 
12
 
 
13
MOZ_VERS = $(shell mozilla-config --version)
 
14
 
 
15
#set the correct VERSION
 
16
 
 
17
ifeq ($(MOZ_VERS),1.6)
 
18
MOZSDK_VERS=MOZILLA_1_6_RELEASE
 
19
IPC_VERS=1.0.5
 
20
ENIG_VERS=0.86.1
 
21
endif
 
22
 
 
23
ifeq ($(MOZ_VERS),1.7.3) # it's still the same sdk
 
24
MOZSDK_VERS=MOZILLA_1_7_3_RELEASE
 
25
IPC_VERS=1.1.2
 
26
ENIG_VERS=0.90.2
 
27
endif
 
28
 
 
29
ifeq ($(MOZ_VERS),1.7.5) # it's still the same sdk
 
30
MOZSDK_VERS=MOZILLA_1_7_5_RELEASE
 
31
IPC_VERS=1.1.2
 
32
ENIG_VERS=0.90.2
 
33
endif
 
34
 
 
35
ifeq ($(MOZ_VERS),1.7.6) # it's still the same sdk
 
36
MOZSDK_VERS=MOZILLA_1_7_6_RELEASE
 
37
IPC_VERS=1.1.2
 
38
ENIG_VERS=0.90.2
 
39
endif
 
40
 
 
41
 
 
42
# TODO this could be generic matching algo
 
43
# cat ./extensions/enigmail/package/install.rdf | \
 
44
# grep \<em:id\> | head -n 1 | sed -e 's/^.*<em:id>\(.*\)<\/em:id>.*$/\1/'
 
45
 
 
46
patch-stamp.$(MOZ_APP_NAME):
 
47
        -dpatch apply $(all_patches)
 
48
        touch patch-stamp.$(MOZ_APP_NAME)
 
49
 
 
50
patch: setup-source patch-stamp.$(MOZ_APP_NAME)
 
51
 
 
52
dounpatch:
 
53
        -dpatch deapply $(all_patches)
 
54
 
 
55
clean: dounpatch
 
56
        rm -rf $(CURDIR)/build-dir
 
57
        rm -f $(CURDIR)/setup-source.stamp
 
58
        rm -rf $(CURDIR)/debian/patched
 
59
 
 
60
setup-source: setup-source.stamp
 
61
 
 
62
setup-source.stamp:
 
63
        mkdir -p $(CURDIR)/build-dir/
 
64
        tar -C $(CURDIR)/build-dir/ -xzvf archives/mozsdk-$(MOZSDK_VERS).tar.gz
 
65
        tar -C $(CURDIR)/build-dir/mozilla/extensions -xvzf \
 
66
                archives/enigmail-$(ENIG_VERS).tar.gz
 
67
        tar -C $(CURDIR)/build-dir/mozilla/extensions -xvzf archives/ipc-$(IPC_VERS).tar.gz
 
68
        touch setup-source.stamp
 
69
 
 
70
build: setup-source patch $(CURDIR)/build-dir/mozilla/build-stamp
 
71
 
 
72
$(CURDIR)/build-dir/mozilla/build-stamp:
 
73
        cp $(CURDIR)/debian/configure.sh.$(MOZSDK_VERS) $(CURDIR)/build-dir/mozilla/configure.sh
 
74
        sh -c "cd build-dir/mozilla && autoconf && sh configure.sh"
 
75
        sh -c "LD_LIBRARY_PATH=/usr/lib/mozilla/ && export LD_LIBRARY_PATH && make -C build-dir/mozilla"
 
76
        touch $(CURDIR)/build-dir/mozilla/build-stamp
 
77
 
 
78
install: build
 
79
        make -C build-dir/mozilla install DESTDIR=$(DESTDIR)
 
80
 
 
81
.PHONY: clean install build patch