Add debian build files.

Subversion-branch: /debian
Subversion-revision: 1468
This commit is contained in:
Simon Howard 2009-03-14 15:11:41 +00:00
commit 67e0fa1a55
11 changed files with 240 additions and 0 deletions

17
.gitignore vendored Normal file
View file

@ -0,0 +1,17 @@
# These are the default patterns globally ignored by Subversion:
*.o
*.lo
*.la
*.al
.libs
*.so
*.so.[0-9]*
*.a
*.pyc
*.pyo
*.rej
*~
.#*
.*.swp
.DS_store

36
debian/changelog vendored Normal file
View file

@ -0,0 +1,36 @@
chocolate-doom (1.2.1-0) UNRELEASED; urgency=low
* Build for the Chocolate Doom website.
* Remove dependency on doom-wad.
-- Simon Howard <fraggle@gmail.com> Sat, 14 Mar 2009 14:06:00 +0000
chocolate-doom (1.0.0-1) UNRELEASED; urgency=low
* (NOT RELEASED YET) New upstream release
* Add DM-Upload-Allowed: control field
-- Jon Dowland <jon@alcopop.org> Tue, 11 Dec 2007 10:16:03 +0000
chocolate-doom (0.1.4-1) UNRELEASED; urgency=low
[ Jon Dowland ]
* Initial Release. Closes: #351594
* src/Automake.am adjusted to install into /usr/games
* quote a backslash in the manpage
* update menu section to "Games/Action" for menu transition
(thanks Linas Žvirblis)
[ Cyril Brulebois ]
* Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.
[ Jon Dowland ]
* use autotools-dev config.guess/sub to keep the diff.gz clean
* use quilt for patch management
[ Barry deFreese ]
* Fix make distclean warning
* Add watch file
* Add Homepage field in debian/control
-- Jon Dowland <jon@alcopop.org> Thu, 23 Aug 2007 18:40:52 +0100

25
debian/chocolate-doom.postinst vendored Normal file
View file

@ -0,0 +1,25 @@
#!/bin/sh
set -e
case "$1" in
configure|abort-upgrade)
update-alternatives --install /usr/games/doom \
doom \
/usr/games/chocolate-doom \
50
;;
abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

19
debian/chocolate-doom.prerm vendored Normal file
View file

@ -0,0 +1,19 @@
#!/bin/sh
set -e
case "$1" in
remove)
update-alternatives --remove doom /usr/games/chocolate-doom
;;
upgrade|deconfigure|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
4

26
debian/control vendored Normal file
View file

@ -0,0 +1,26 @@
Source: chocolate-doom
Section: contrib/games
Priority: optional
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Uploaders: Jon Dowland <jon@alcopop.org>
Build-Depends: debhelper (>= 4.0.0), autotools-dev, libsdl1.2-dev (>= 1.2.2-3.1), libsdl-mixer1.2-dev (>= 1.2.0-1.1), libsdl-net1.2-dev (>= 1.2.0-5.1), m4
Standards-Version: 3.7.2
XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/chocolate-doom/
XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/chocolate-doom/?op=log
Homepage: http://chocolate-doom.org/
XS-DM-Upload-Allowed: yes
Package: chocolate-doom
Architecture: any
Depends: ${shlibs:Depends}
Description: Doom engine closely-compatible with vanilla doom
Chocolate doom is a modern, cross-platform doom engine with
the major design goal of emulating the behaviour of vanilla
Doom as close as is possible. For example, chocolate doom
can read and write vanilla doom save games.
.
Unlike most modern doom engines, chocolate doom is not
derived from the Boom source-port and does not inherit it's
features (or bugs).
.
Chocolate doom requires a doom-wad to play.

19
debian/copyright vendored Normal file
View file

@ -0,0 +1,19 @@
This package was debianized by Jon Dowland <jon@alcopop.org> on Mon,
23 Jan 2006 17:33:43 +0000.
It was downloaded from <http://www.chocolate-doom.org/>
Copyright (C) 1999 id Software, Chi Hoang, Lee Killough, Jim Flynn,
Rand Phares, Ty Halderman
Copyright (C) 2005-2006 Simon "Fraggle" Howard, <fraggle@users.sf.net>
License:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
For the full GPL-2 license text, see
<file:/usr/share/common-licenses/GPL-2>.

4
debian/docs vendored Normal file
View file

@ -0,0 +1,4 @@
BUGS
NEWS
README
TODO

6
debian/menu vendored Normal file
View file

@ -0,0 +1,6 @@
?package(chocolate-doom):\
needs="X11"\
section="Games/Action"\
hints="Doom,First person"\
title="Chocolate Doom"\
command="/usr/games/chocolate-doom"

79
debian/rules vendored Executable file
View file

@ -0,0 +1,79 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
config.status: configure
dh_testdir
ln -sf /usr/share/misc/config.sub ./autotools/config.sub
ln -sf /usr/share/misc/config.guess ./autotools/config.guess
rm -f config.cache
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
build: build-stamp
build-stamp: config.status
dh_testdir
$(MAKE)
touch build-stamp
cd man && $(MAKE)
clean:
dh_testdir
dh_testroot
rm -f build-stamp
[ ! -f Makefile ] || $(MAKE) distclean
# stuff we don't want in diff.gz
find -name config.sub -print0 | xargs -0 -r rm -f \;
find -name config.guess -print0 | xargs -0 -r rm -f \;
-cd man && $(MAKE) clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/chocolate-doom
# Build architecture-independent files here.
binary-indep: build install
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installmenu
dh_installman man/chocolate-doom.6
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

8
debian/watch vendored Normal file
View file

@ -0,0 +1,8 @@
# Watch control file for uscan
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Find new files on sourceforge, for debscripts >= 2.9
http://sf.net/chocolate-doom/chocolate-doom-(.+)\.tar\.gz