~ubuntu-branches/ubuntu/trusty/ggz-gtk-client/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut, Josef Spillner, Peter Eisentraut
  • Date: 2006-10-20 23:06:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061020230651-u1vcph06q6fmbaa7
Tags: 0.0.13-3
[ Josef Spillner ]
* Section change: libggz-gtk0 is in libs

[ Peter Eisentraut ]
* Fixed package dependencies for binNMU compatibility
* Disabled gaim plugin for the time being (closes: #392457)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# debian/rules file for ggz-gtk-client
4
 
 
5
 
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
 
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7
 
 
8
 
package := $(firstword $(shell dh_listpackages))
9
 
prefix  := $(PWD)/debian/tmp
10
 
share   := /usr/share
11
 
 
12
 
config_flags    := --prefix=/usr \
13
 
        --sysconfdir=/etc \
14
 
        --mandir=$(share)/man \
15
 
        --infodir=$(share)/info \
16
 
        --build $(DEB_HOST_GNU_TYPE)
17
 
ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
18
 
config_flags    += --host $(DEB_HOST_GNU_TYPE)
19
 
endif
20
 
 
21
 
cflags  := -g -Wall
22
 
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23
 
cflags  += -O2
24
 
else
25
 
cflags  += -O0
26
 
endif
27
 
 
28
 
export CFLAGS=$(cflags)
29
 
export CXXFLAGS=$(cflags)
30
 
 
31
 
doc     := $(share)/doc
32
 
common  := ggz-common
33
 
 
34
 
version := $(shell dpkg-parsechangelog | \
35
 
                        sed -ne 's/^Version: *\([0-9]\+:\)*//p')
36
 
release := $(firstword $(subst -, , $(version)))
37
 
 
38
 
get_misc_file           = ln -sf /usr/share/misc/$(1) .
39
 
update_config_sub       := $(call get_misc_file,config.sub)
40
 
update_config_guess     := $(call get_misc_file,config.guess)
41
 
 
42
 
tag:
43
 
        cvs tag -c -F $(subst .,_,debian_version_$(version))
44
 
ifeq ($(findstring -,$(version)),)
45
 
        cvs tag -c -F $(subst .,_,upstream_version_$(version))
46
 
endif
47
 
 
48
 
config: config-stamp
49
 
config-stamp:
50
 
        dh_testdir
51
 
        $(update_config_sub)
52
 
        $(update_config_guess)
53
 
        $(SHELL) ./configure $(config_flags) \
54
 
                --disable-debug \
55
 
                --enable-gtk=gtk2
56
 
        touch $@
57
 
 
58
 
build:  config build-stamp
59
 
build-stamp:
60
 
        $(MAKE)
61
 
 
62
 
# Create links to any common documentation; install everything else.
63
 
        -rm -f debian/*.docs debian/*.links
64
 
        perl -ne '$$ARGV=~m!/(.*)\.docs!;print "$$1 $$_";' debian/*.docs.in | \
65
 
        while read p f; do \
66
 
            s=$(doc)/$(common)/$$f.$(release) d=$$f; \
67
 
            [ -f $$s ] || s=$$s.gz d=$$d.gz; \
68
 
            if zcat -f $$s 2>/dev/null | diff -q - $$f >/dev/null; then \
69
 
                echo "$$s $(doc)/$$p/$$d" >> debian/$$p.links; \
70
 
            else \
71
 
                echo "$$f" >> debian/$$p.docs; \
72
 
            fi; \
73
 
        done
74
 
 
75
 
        touch $@
76
 
 
77
 
clean:  checkroot
78
 
        rm -f *-stamp config.sub config.guess
79
 
        -$(MAKE) distclean
80
 
        dh_clean
81
 
 
82
 
binary-indep:   checkroot build
83
 
 
84
 
binary-arch:    checkroot build
85
 
        dh_clean
86
 
        dh_installdirs
87
 
 
88
 
        $(MAKE) install DESTDIR=$(prefix)
89
 
 
90
 
        dh_install
91
 
        dh_installmenu
92
 
 
93
 
        dh_installchangelogs ChangeLog
94
 
        dh_installdocs
95
 
 
96
 
        dh_strip
97
 
        dh_compress
98
 
        dh_link
99
 
        dh_fixperms
100
 
        dh_makeshlibs
101
 
        dh_installdeb
102
 
        dh_shlibdeps -l$(prefix)/usr/lib
103
 
        dh_gencontrol -- -Vrelease=$(release)
104
 
        dh_md5sums
105
 
        dh_builddeb
106
 
 
107
 
binary: binary-indep binary-arch
108
 
 
109
 
checkroot:
110
 
        dh_testdir
111
 
        dh_testroot
112
 
 
113
 
.PHONY: binary binary-indep binary-arch clean checkroot build config
 
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/autotools.mk
 
5
 
 
6
DEB_CONFIGURE_EXTRA_FLAGS = --disable-debug
 
7
DEB_DH_MAKESHLIBS_ARGS_ALL = -V
 
8
DEB_SHLIBDEPS_INCLUDE = $(DEB_DESTDIR)/usr/lib