~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields, Jo Shields, Stefan Ebner
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-ue6hq56oeektqsi1
Tags: 1.0-0ubuntu1
[Jo Shields]
* Tagging pkg-mono SVN r3886 as 0ubuntu1 package, to avoid delays in 
  Debian NEW queue (LP: #329376)
  + New upstream release

[Stefan Ebner]
* debian/rules: Replace deprecated dh_clean -k with dh_prep
  to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
# Not yet a CLI app (until mono 2.0 allows Silverlight 2.0 features)
 
6
#export MONO_SHARED_DIR=$(CURDIR)
 
7
#DEB_CLI_API_VERSION = 1.9
 
8
 
 
9
# Mangle environment variables which differ between Debian & Ubuntu.
 
10
# Assume Debian behaviour by default.
 
11
DISTRO = "$(shell lsb_release -si)"
 
12
XULRUNNER_19_PLUGDIR = "usr/lib/mozilla/plugins"
 
13
ifeq ($(DISTRO),"Ubuntu")
 
14
XULRUNNER_19_PLUGDIR = "usr/lib/xulrunner-addons/plugins"
 
15
endif
 
16
 
 
17
config.status: configure
 
18
        dh_testdir
 
19
        ./configure --prefix=/usr --with-cairo=system --with-ff3=yes --with-alsa=yes --with-pulseaudio=yes \
 
20
        --with-ffmpeg=yes
 
21
 
 
22
upstream_version=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
 
23
CURVER = $(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d'-' -f1)
 
24
get-orig-source:
 
25
        [ -d ../tarballs ] || mkdir ../tarballs
 
26
        uscan \
 
27
                --force-download \
 
28
                --download-version $(CURVER) \
 
29
                --repack \
 
30
                --rename \
 
31
                --destdir ../tarballs
 
32
 
 
33
build: build-stamp
 
34
build-stamp: config.status
 
35
        dh_testdir
 
36
        $(MAKE)
 
37
        touch $@
 
38
 
 
39
clean:
 
40
        dh_testdir
 
41
        dh_testroot
 
42
        rm -f build-stamp configure-stamp
 
43
#       Not a Mono package yet, no .wapi
 
44
#       rm -rf $(MONO_SHARED_DIR)/.wapi
 
45
        rm -f build/config.make
 
46
        [ ! -f Makefile ] ||  $(MAKE) distclean
 
47
        dh_clean
 
48
 
 
49
install: build
 
50
        dh_testdir
 
51
        dh_testroot
 
52
        dh_prep
 
53
        dh_installdirs
 
54
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
 
55
        # Mangle rpath for lintain cleanness
 
56
        chrpath -d $(CURDIR)/debian/tmp/usr/lib/moon/plugin/libmoonplugin-ff3bridge.so
 
57
        chrpath -d $(CURDIR)/debian/tmp/usr/lib/moon/plugin/libmoonplugin.so
 
58
        dh_install --list-missing --sourcedir=debian/tmp
 
59
 
 
60
binary-indep: build install
 
61
 
 
62
binary-arch: build install
 
63
        dh_testdir
 
64
        dh_testroot
 
65
        dh_installchangelogs ChangeLog
 
66
        dh_installdocs -A AUTHORS
 
67
 
 
68
        # Call dh_link manually, so we can change the plugin folder per-distro
 
69
        dh_link -pmoonlight-plugin-mozilla \
 
70
                usr/lib/moon/plugin/libmoonloader.so    $(XULRUNNER_19_PLUGDIR)/libmoonloader.so
 
71
                #dark magics in libmoonloader seem to find these files all by itself, only libmoonloader is needed
 
72
                #usr/lib/moon/plugin/libmoonplugin-ff3bridge.so $(XULRUNNER_19_PLUGDIR)/libmoonplugin-ff3bridge.so \
 
73
                #usr/lib/moon/plugin/libmoonplugin.so    $(XULRUNNER_19_PLUGDIR)/libmoonplugin.so \
 
74
 
 
75
 
 
76
        dh_strip
 
77
        dh_compress
 
78
        dh_fixperms
 
79
        dh_makeshlibs -plibmoon -pmoonlight-plugin-core
 
80
        dh_installdeb
 
81
        dh_shlibdeps
 
82
        dh_gencontrol
 
83
        dh_md5sums
 
84
        dh_builddeb
 
85
 
 
86
binary: binary-indep binary-arch
 
87
.PHONY: build clean binary-indep binary-arch binary install