~ubuntu-branches/ubuntu/trusty/teeworlds/trusty-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-05-05 09:49:34 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20130505094934-uidw42ov1t0jlvrz
Tags: 0.6.2+dfsg-1
* New upstream release.
  - Update patches.
* Pass $CPPFLAGS to the build system.
* Switch to my @debian.org email address.
* Bump Standards-Version to 3.9.4, no changes needed.
* Change Vcs host to anonscm.debian.org.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# -*- makefile -*-
3
3
 
4
4
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
 
5
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
5
6
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
6
7
 
7
8
upstreamversion := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\([^-]\+\)-.\+/\1/p')
11
12
 
12
13
override_dh_auto_build:
13
14
        echo "release_settings.optimize = 0" >> debian.lua
14
 
        echo "release_settings.cc.flags:Add(\"$(CFLAGS)\")" >> debian.lua
 
15
        echo "release_settings.cc.flags:Add(\"$(CFLAGS) $(CPPFLAGS)\")" >> debian.lua
15
16
        echo "release_settings.link.inputflags = release_settings.link.inputflags .. \" $(LDFLAGS)\"" >> debian.lua
16
17
        bam -a -v release
17
18
 
49
50
dfsg-free:
50
51
        rm -r docs/tool
51
52
        rm -r other/freetype/include
52
 
        rm -r other/freetype/lib
 
53
        rm -r other/freetype/lib32
 
54
        rm -r other/freetype/lib64
53
55
        rm -r other/sdl/include
54
 
        rm -r other/sdl/vc*libs
 
56
        rm -r other/sdl/lib32
 
57
        rm -r other/sdl/lib64
55
58
        rm -r src/engine/external
56
59
        rm data/fonts/DejaVuSans.ttf
57
60
        rm data/fonts/LICENSE
58
61
        
59
 
        cd ..; mv $(CURDIR) teeworlds-$(upstreamversion)-dfsg; \
 
62
        cd ..; mv $(CURDIR) teeworlds-$(upstreamversion); \
60
63
            tar --exclude debian \
61
 
                -czf teeworlds_$(upstreamversion)+dfsg.orig.tar.gz \
62
 
                teeworlds-$(upstreamversion)-dfsg
 
64
                -czf teeworlds_$(upstreamversion).orig.tar.gz \
 
65
                teeworlds-$(upstreamversion)