~ubuntu-branches/ubuntu/precise/meritous/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Dylan R. E. Moonfire
  • Date: 2008-02-11 13:45:02 UTC
  • Revision ID: james.westby@ubuntu.com-20080211134502-eusnjlhps0kyi2ln
Tags: 1.2+dfsg-1
* Dylan R. E. Moonfire
  + src/levelblit.c: Updated the version to reflect the actual version
    instead of "1.1".
  + debian/control: Added Vcs- headers to point to Subversion
    repository.
  + Changed the location of the save game to use
    $HOME/.meritous.sav. This will use legacy save file if the new one
    cannot be found. (Closes: #465228)
  + src/help.c: Corrected a parsing bug with the help files that
    prevented users from reading the help files. (Closes: #465147)
  + Removed music files due to licensing issues. Patched code to make
    music files optional. (Closes: #465532)
  + debian/rules: Added a 'get-orig-source' target to repackage the
    original after removing the music files.
* Bas Wijnen
  + src/boss.c: Applied a patch to handle an array overflow in the first
    boss fight. (Closes: #465051)

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
# Include our patch
 
10
include /usr/share/quilt/quilt.make
 
11
 
 
12
# Uncomment this to turn on verbose mode.
 
13
#export DH_VERBOSE=1
 
14
 
 
15
DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
 
16
XP=xsltproc -''-nonet
 
17
 
 
18
build: patch build-stamp
 
19
 
 
20
build-stamp: $(QUILT_STAMPFN)
 
21
        dh_testdir
 
22
 
 
23
        # Add here commands to compile the package.
 
24
        $(MAKE)
 
25
        chmod a+x meritous
 
26
        $(XP) $(DB2MAN) debian/meritous.xml
 
27
 
 
28
        touch $@
 
29
 
 
30
clean: unpatch
 
31
        dh_testdir
 
32
        dh_testroot
 
33
        rm -f build-stamp
 
34
 
 
35
        # Add here commands to clean up after the build process.
 
36
        rm -f meritous
 
37
        rm -f meritous.6
 
38
 
 
39
        # The $(MAKE) clean target doesn't clean properly when the
 
40
        # *.o files don't exist. Until they are fixed upstream, we
 
41
        # do it manually.
 
42
        #$(MAKE) clean
 
43
        rm -f src/*.o
 
44
 
 
45
        dh_clean 
 
46
 
 
47
install: build
 
48
        dh_testdir
 
49
        dh_testroot
 
50
        dh_clean -k 
 
51
        dh_installdirs
 
52
 
 
53
# Build architecture-independent files here.
 
54
binary-indep: build install
 
55
# We have nothing to do by default.
 
56
 
 
57
# Build architecture-dependent files here.
 
58
binary-arch: build install
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        dh_installchangelogs 
 
62
        dh_installdocs
 
63
        dh_install
 
64
        dh_installmenu
 
65
        dh_installman
 
66
        dh_desktop
 
67
        dh_link
 
68
        dh_strip
 
69
        dh_compress
 
70
        dh_fixperms
 
71
        dh_installdeb
 
72
        dh_shlibdeps
 
73
        dh_gencontrol
 
74
        dh_md5sums
 
75
        dh_builddeb
 
76
 
 
77
binary: binary-indep binary-arch
 
78
 
 
79
# DFSG Building
 
80
ORIG_HOST=http://www.asceai.net/files
 
81
ORIG_FILE=meritous_v12_src.tar.bz2
 
82
DFSG_FILE=meritous_1.2+dfsg.orig.tar.gz
 
83
 
 
84
get-orig-source:
 
85
        # Get the file
 
86
        wget $(ORIG_HOST)/$(ORIG_FILE)
 
87
        tar -xjf $(ORIG_FILE)
 
88
 
 
89
        # Music file licenses cannot be validated
 
90
        rm -rf meritous_v12_src/dat/m
 
91
 
 
92
        # Repackage it
 
93
        tar -czf $(DFSG_FILE) meritous_v12_src
 
94
        rm -rf meritous_v12_src $(ORIG_FILE)
 
95
 
 
96
.PHONY: build clean binary-indep binary-arch binary install get-orig-source