~ubuntu-branches/ubuntu/precise/supertuxkart/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2009-08-22 12:45:50 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090822124550-30n5g2aghrmig0ci
Tags: 0.6.2+dfsg1-1
* New Upstream Release
  * Only Bugfixes and minor improvements
  * Drop rubber.patch again as it was taken from 0.6.2 branch 
    and is part of this release 
  * Use replacement artwork from 0.6.1a
* Silence horn.wav (Closes: #515332)
* Bump Standards Version to 3.8.3 (No changes needed)
* Bump debhelper compat to 7 for dh_prep
* Update our copy of supertuxkart.desktop from upstreams,
  our changes will get pushed upstream as well.
* Cleaning debian/rules a bit more

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18
18
 
19
19
 
20
 
CFLAGS = -Wall -g
21
 
CXXFLAGS = -Wall -g
22
 
 
23
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
24
 
        CFLAGS += -O0
25
 
        CXXFLAGS += -O0
26
 
else
27
 
        CFLAGS += -O2
28
 
        CXXFLAGS += -O2
29
 
endif
 
20
CFLAGS += -Wall
 
21
CXXFLAGS += -Wall
30
22
 
31
23
config.status: $(QUILT_STAMPFN)
32
24
        dh_testdir
34
26
        cp -f /usr/share/misc/config.sub config.sub
35
27
        cp -f /usr/share/misc/config.guess config.guess
36
28
 
37
 
        # Add here commands to configure the package.
 
29
#       Add here commands to configure the package.
38
30
        CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --bindir=/usr/games
39
31
 
40
32
get-orig-source:
41
 
        sh debian/get-orig-source.sh
 
33
        sh debian/get-orig-source.sh 0.6.2
42
34
 
43
35
build: build-stamp
44
36
build-stamp:  config.status
64
56
        dh_testdir
65
57
        dh_testroot
66
58
        dh_prep
67
 
        dh_installdirs -psupertuxkart -Pdebian/tmp usr/share/pixmaps usr/share/icons/hicolor/32x32/apps usr/share/icons/hicolor/64x64/apps usr/share/applications
 
59
        dh_installdirs -psupertuxkart -Pdebian/tmp
68
60
 
69
61
#       Add here commands to install the package into debian/supertuxkart.
70
62
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
71
 
        find $(CURDIR)/debian/tmp \( -iname "License.txt" -o -iname "License.Debian.txt" -o -iname "Music_license.rtf" \) -exec rm -f {} \;
 
63
        find $(CURDIR)/debian/tmp \( -iname "License.txt" -o -iname "License.Debian.txt" -o -iname "Music_license.rtf" \) -delete
72
64
 
73
65
        install -m 644 debian/supertuxkart_32.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps/supertuxkart.xpm
74
66
        install -m 644 debian/supertuxkart_32.xpm $(CURDIR)/debian/tmp/usr/share/icons/hicolor/32x32/apps/supertuxkart.xpm
82
74
binary-arch: build install
83
75
        dh_testdir
84
76
        dh_testroot
85
 
        dh_installchangelogs
 
77
        dh_installchangelogs ChangeLog NEWS
86
78
        dh_install
87
79
        dh_installdocs
88
80
        dh_installexamples