~ubuntu-branches/ubuntu/raring/mozvoikko/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-11-26 01:16:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101126011603-nzpm30ouwayrhkci
Tags: 1.9.0~svn20101114r3591-0ubuntu1
* New upstream SVN snapshot to support Firefox 4.0

* Convert to dh7 and use mozilla-devscripts
  - update debian/compat
  - update debian/rules
  - update debian/control
  - remove debian/dirs
* Use source format 3.0
  - update debian/control
  - add debian/source/format
* Rename binary to xul-ext-mozvoikko and provide a transitional package
  - update debian/control
* Drop unnecessary patches:
  - remove debian/patches/fix_freebsd_ftbfs.patch
  - remove debian/patches/fix_min_max_versions.patch
  - update debian/patches/series
* The mozvoikko source has 2 build systems - one to allow building in a fully
  built Firefox source tree, and the other one just using the Mozilla SDK.
  The latter is totally broken in the current version though, so we hack
  it to work in order to avoid having to do the in-tree build
  - add debian/patches/fix_sdk_build.patch
  - update debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
 
# This file was originally written by Joey Hess and Craig Small.
4
 
# As a special exception, when this file is copied by dh-make into a
5
 
# dh-make output file, you may use that output file without restriction.
6
 
# This special exception was added by Craig Small in version 0.37 of dh-make.
7
 
 
8
 
# Uncomment this to turn on verbose mode.
9
 
#export DH_VERBOSE=1
10
 
 
11
 
# ID from src/Makefile.xulrunner
12
 
ICEWEASEL_ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
13
 
 
14
 
EXT_ID={b676e3ff-cda7-4e0c-b2b8-74e4bb40a67a}
15
 
EXTENSION_DIR=/usr/share/mozilla/extensions/$(ICEWEASEL_ID)/$(EXT_ID)
16
 
 
17
 
configure: configure-stamp
18
 
configure-stamp:
19
 
        dh_testdir
20
 
        dh_quilt_patch
21
 
 
22
 
        touch configure-stamp
23
 
 
24
 
 
25
 
build: build-stamp
26
 
 
27
 
build-stamp: configure-stamp 
28
 
        dh_testdir
29
 
 
30
 
        # Add here commands to compile the package.
31
 
        $(MAKE) -f Makefile.xulrunner extension-files
32
 
 
33
 
        touch $@
34
 
 
35
 
clean:
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        dh_quilt_unpatch
39
 
        rm -f build-stamp configure-stamp
40
 
 
41
 
        # Add here commands to clean up after the build process.
42
 
        $(MAKE) -f Makefile.xulrunner clean
43
 
        rm -f chrome.manifest
44
 
        dh_clean 
45
 
 
46
 
install: build
47
 
        dh_testdir
48
 
        dh_testroot
49
 
        dh_clean -k 
50
 
        dh_installdirs
51
 
 
52
 
        # Add here commands to install the package
53
 
        echo "# Empty chrome manifest" > chrome.manifest
54
 
        install -m 644 src/components/libmozvoikko.so debian/mozvoikko/usr/lib/mozvoikko/
55
 
        mkdir -p debian/mozvoikko/$(EXTENSION_DIR)
56
 
        install -m 644 src/install.rdf debian/mozvoikko/$(EXTENSION_DIR)/
57
 
        install -m 644 chrome.manifest debian/mozvoikko/$(EXTENSION_DIR)/
58
 
        dh_link usr/lib/mozvoikko $(EXTENSION_DIR)/components
59
 
 
60
 
 
61
 
# Build architecture-independent files here.
62
 
binary-indep: build install
63
 
# We have nothing to do by default.
64
 
 
65
 
# Build architecture-dependent files here.
66
 
binary-arch: build install
67
 
        dh_testdir
68
 
        dh_testroot
69
 
        dh_installchangelogs ChangeLog
70
 
        dh_installdocs
71
 
        dh_installexamples
72
 
        dh_install
73
 
        dh_installman
74
 
        dh_link
75
 
        dh_strip
76
 
        dh_compress
77
 
        dh_fixperms
78
 
        dh_installdeb
79
 
        LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(shell pkg-config --variable=sdkdir libxul)/sdk/lib/ dh_shlibdeps
80
 
        dh_gencontrol
81
 
        dh_md5sums
82
 
        dh_builddeb
83
 
 
84
 
binary: binary-indep binary-arch
85
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
2
 
 
3
%:
 
4
        dh $@ --with xul-ext
 
5
 
 
6
override_dh_auto_build:
 
7
        make -f Makefile.xulrunner XULRUNNER_SDK_DIR=/usr/lib/xulrunner-devel-`xulrunner --gre-version`
 
8
 
 
9
override_dh_auto_install:
 
10
        install-xpi src/mozvoikko.xpi
 
11
 
 
12
override_dh_auto_clean:
 
13
        make -f Makefile.xulrunner clean