~ubuntu-branches/ubuntu/jaunty/glbsp/jaunty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Darren Salt
  • Date: 2008-01-30 13:33:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080130133349-kgojg33vyiu8xbvp
Tags: 2.24-1
* New upstream release.
* Bumped the lib soname and the library package name due to one silly
  little binary incompatibility caused by changes in an exported struct.
  (Safe; nothing else currently in the archive has ever used libglbsp2.)
* Removed my patches since they're all applied upstream.
* Updated the list of documentation files.
* Build-time changes:
  - Switched from dh_movefiles to dh_install.
  - Updated my makefile to cope with upstream changes.
  - Corrected for debian-rules-ignores-make-clean-error.
  - Corrected for substvar-source-version-is-deprecated.
  - Link libglbsp, rather than glbsp, with libm and libz.
* Fixed shlibdeps. (Closes: #460387)
* Bumped standards version to 3.7.3 (no other changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Uncomment this to turn on verbose mode.
7
7
#export DH_VERBOSE=1
8
8
 
9
 
include /usr/share/dpatch/dpatch.make
10
 
 
11
9
CC = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)-gcc
12
10
CFLAGS = -Wall -g
13
11
 
21
19
endif
22
20
 
23
21
# shared library versions
24
 
version=2.0.10
25
 
major=2
 
22
version=3.0.0
 
23
major=3
26
24
 
27
25
export CC
28
26
export CFLAGS
35
33
        touch configure-stamp
36
34
 
37
35
 
38
 
build: patch build-stamp
 
36
build: build-stamp
39
37
build-stamp: configure-stamp
40
38
        dh_testdir
41
39
        $(MAKE) -f debian/makefile
42
40
        touch build-stamp
43
41
 
44
 
clean: clean-tree unpatch
45
 
clean-tree:
 
42
clean:
46
43
        dh_testdir
47
44
        dh_testroot
48
45
        rm -f build-stamp configure-stamp
49
 
        -$(MAKE) -f debian/makefile clean
 
46
        $(MAKE) -f debian/makefile clean
50
47
        dh_clean
51
48
 
52
49
install: build
70
67
        install -d debian/libglbsp-dev/usr/share/doc debian/glbsp/usr/share/doc
71
68
        ln -s libglbsp$(major) debian/libglbsp-dev/usr/share/doc/libglbsp-dev
72
69
        ln -s libglbsp$(major) debian/glbsp/usr/share/doc/glbsp
73
 
        dh_movefiles
74
70
#       dh_installexamples
75
 
#       dh_install
 
71
        dh_install
76
72
#       dh_installmenu
77
73
#       dh_installdebconf       
78
74
#       dh_installlogrotate
89
85
        dh_fixperms
90
86
#       dh_perl
91
87
#       dh_python
92
 
        dh_makeshlibs
 
88
        dh_makeshlibs -V
93
89
        dh_installdeb
94
90
        dh_shlibdeps -L libglbsp$(major) -l debian/libglbsp$(major)/usr/lib
95
 
        sed -i -e 's/libglbsp'$(major)'/& (= $${Source-Version})/' debian/glbsp.substvars
 
91
#       sed -i -e 's/libglbsp'$(major)'/& (>= $${source:Version})/' debian/glbsp.substvars
96
92
        dh_gencontrol
97
93
        dh_md5sums
98
94
        dh_builddeb
99
95
 
100
96
binary: binary-indep binary-arch
101
 
.PHONY: build clean clean-tree binary-indep binary-arch binary install configure
 
97
.PHONY: build clean binary-indep binary-arch binary install configure