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

« back to all changes in this revision

Viewing changes to debian/rules.thunderbird

  • 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_THUNDERBIRD=1
 
4
 
 
5
DESTDIR=$(CURDIR)/debian/tmp-enigmail
 
6
MOZSDK_VERS=THUNDERBIRD_1_0_2_RELEASE
 
7
 
 
8
MOZ_VERSIONS=1.7
 
9
MOZ_APP_NAME=thunderbird
 
10
MOZ_APP_VERSION=1.0.2
 
11
MOZ_APP_POSTFIX=-thunderbird
 
12
 
 
13
ENIG_EXT_ID={847b3a00-7ab1-11d4-8f02-006008948af5}
 
14
 
 
15
all_patches=$(patsubst \#%,,$(shell cat $(wildcard $(CURDIR)/debian/patches/00list.$(MOZ_APP_NAME))))
 
16
 
 
17
# TODO this could be generic matching algo
 
18
# cat ./extensions/enigmail/package/install.rdf | \
 
19
# grep \<em:id\> | head -n 1 | sed -e 's/^.*<em:id>\(.*\)<\/em:id>.*$/\1/'
 
20
 
 
21
patch-stamp.$(MOZ_APP_NAME):
 
22
        dpatch apply $(all_patches)
 
23
        touch patch-stamp.$(MOZ_APP_NAME)
 
24
 
 
25
patch: setup-source patch-stamp.$(MOZ_APP_NAME)
 
26
 
 
27
dounpatch:
 
28
        -dpatch deapply $(all_patches)
 
29
 
 
30
clean: dounpatch
 
31
        rm -rf $(CURDIR)/build-dir
 
32
        rm -f $(CURDIR)/setup-source.stamp
 
33
        rm -rf $(CURDIR)/debian/patched
 
34
 
 
35
setup-source: setup-source.stamp
 
36
 
 
37
setup-source.stamp:
 
38
        mkdir -p $(CURDIR)/build-dir/
 
39
        tar -C $(CURDIR)/build-dir/ -xzvf archives/mozsdk-$(MOZSDK_VERS).tar.gz
 
40
        tar -C $(CURDIR)/build-dir/mozilla/extensions -xvzf archives/enigmail-0.90.2.tar.gz
 
41
        tar -C $(CURDIR)/build-dir/mozilla/extensions -xvzf archives/ipc-1.1.2.tar.gz
 
42
        touch setup-source.stamp
 
43
 
 
44
build: setup-source patch $(CURDIR)/build-dir/mozilla/build-stamp
 
45
 
 
46
$(CURDIR)/build-dir/mozilla/build-stamp:
 
47
        cp $(CURDIR)/debian/configure.sh.$(MOZSDK_VERS) $(CURDIR)/build-dir/mozilla/configure.sh
 
48
        sh -c "cd build-dir/mozilla && autoconf && sh configure.sh"
 
49
        sh -c "LD_LIBRARY_PATH=/usr/lib/mozilla/ && export LD_LIBRARY_PATH && make -C build-dir/mozilla"
 
50
        touch $(CURDIR)/build-dir/mozilla/build-stamp
 
51
 
 
52
install: build
 
53
        make -C build-dir/mozilla install DESTDIR=$(DESTDIR)
 
54
 
 
55
 
 
56
.PHONY: clean install build patch