~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to tools/build-system/launchpad/sflphone-plugins/debian/rules

  • Committer: Package Import Robot
  • Author(s): Whoopie
  • Date: 2012-03-22 10:29:10 UTC
  • mfrom: (4.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120322102910-tb8hugi2su1tguwh
Tags: 1.0.2-1ubuntu1
* Apply some upstream patches to fix FTBFS (LP: #913018):
  - debian/patches/05_glib_includes.patch: fix glib includes.
  - debian/patches/06_use_XkbKeycodeToKeysym.patch: use 
    XkbKeycodeToKeysym instead of (deprecated) XKeycodeToKeysym.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
export DH_OPTIONS
 
12
 
 
13
package=sflphone-plugins
 
14
 
 
15
CXX = gcc-4.0
 
16
CFLAGS = -Wall -g
 
17
 
 
18
configure: configure-stamp
 
19
configure-stamp:
 
20
        dh_testdir
 
21
        # Add here commands to configure the package.
 
22
        ./autogen.sh
 
23
        ./configure --prefix=/usr
 
24
        touch configure-stamp
 
25
 
 
26
 
 
27
#Architecture
 
28
build: build-arch build-indep
 
29
 
 
30
build-arch: build-arch-stamp
 
31
build-arch-stamp: configure-stamp
 
32
 
 
33
    # Add here commands to compile the arch part of the package.
 
34
        $(MAKE)
 
35
        touch $@
 
36
 
 
37
build-indep: build-indep-stamp
 
38
build-indep-stamp: configure-stamp
 
39
 
 
40
       # Add here commands to compile the indep part of the package.
 
41
       #$(MAKE) doc
 
42
        touch $@
 
43
clean:
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        rm -f build-arch-stamp build-indep-stamp configure-stamp
 
47
        # Add here commands to clean up after the build process.
 
48
        [ ! -f Makefile ] || $(MAKE) distclean
 
49
 
 
50
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 
51
        cp -f /usr/share/misc/config.sub config.sub
 
52
endif
 
53
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 
54
        cp -f /usr/share/misc/config.guess config.guess
 
55
endif
 
56
        dh_clean
 
57
 
 
58
install: install-indep install-arch
 
59
install-indep:
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_clean -k -i
 
63
        dh_installdirs -i
 
64
        # Add here commands to install the package into debian/sflphone.
 
65
 
 
66
install-arch:
 
67
        dh_testdir
 
68
        dh_testroot
 
69
        dh_clean -k -s
 
70
        dh_installdirs -s
 
71
        # Add here commands to install the arch part of the package into
 
72
        # debian/tmp.
 
73
        $(MAKE) DESTDIR=$(CURDIR)/debian/$(package) install
 
74
        dh_install -s
 
75
# Must not depend on anything. This is to be called by
 
76
# binary-arch/binary-indep
 
77
# in another 'make' thread.
 
78
 
 
79
binary-common:
 
80
        dh_testdir
 
81
        dh_testroot
 
82
        dh_installchangelogs ChangeLog
 
83
        dh_installdocs
 
84
        dh_installexamples
 
85
#       dh_installmenu
 
86
#       dh_installdebconf       
 
87
#       dh_installlogrotate     
 
88
#       dh_installemacsen
 
89
#       dh_installpam
 
90
#       dh_installmime
 
91
#       dh_python
 
92
#       dh_installinit
 
93
#       dh_installcron
 
94
#       dh_installinfo
 
95
        dh_installman
 
96
        dh_link
 
97
        dh_strip
 
98
        dh_compress
 
99
        dh_fixperms
 
100
#       dh_perl
 
101
        dh_makeshlibs
 
102
        dh_installdeb
 
103
        dh_shlibdeps
 
104
        dh_gencontrol
 
105
        dh_md5sums
 
106
        dh_builddeb
 
107
# Build architecture independant packages using the common target.
 
108
binary-indep: build-indep install-indep
 
109
        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 
110
 
 
111
# Build architecture dependant packages using the common target.
 
112
binary-arch: build-arch install-arch
 
113
        $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
 
114
 
 
115
binary: binary-arch binary-indep
 
116
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure