From 67e0fa1a55d89d227f4276ec1bfa0c8d831c4ef0 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 14 Mar 2009 15:11:41 +0000 Subject: [PATCH] Add debian build files. Subversion-branch: /debian Subversion-revision: 1468 --- .gitignore | 17 ++++++++ debian/changelog | 36 ++++++++++++++++ debian/chocolate-doom.postinst | 25 +++++++++++ debian/chocolate-doom.prerm | 19 ++++++++ debian/compat | 1 + debian/control | 26 +++++++++++ debian/copyright | 19 ++++++++ debian/docs | 4 ++ debian/menu | 6 +++ debian/rules | 79 ++++++++++++++++++++++++++++++++++ debian/watch | 8 ++++ 11 files changed, 240 insertions(+) create mode 100644 .gitignore create mode 100644 debian/changelog create mode 100644 debian/chocolate-doom.postinst create mode 100644 debian/chocolate-doom.prerm create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/menu create mode 100755 debian/rules create mode 100644 debian/watch diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bbee65 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f861959 --- /dev/null +++ b/debian/changelog @@ -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 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 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 Thu, 23 Aug 2007 18:40:52 +0100 diff --git a/debian/chocolate-doom.postinst b/debian/chocolate-doom.postinst new file mode 100644 index 0000000..89b7f02 --- /dev/null +++ b/debian/chocolate-doom.postinst @@ -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 diff --git a/debian/chocolate-doom.prerm b/debian/chocolate-doom.prerm new file mode 100644 index 0000000..30fe5dc --- /dev/null +++ b/debian/chocolate-doom.prerm @@ -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 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..77a921a --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: chocolate-doom +Section: contrib/games +Priority: optional +Maintainer: Debian Games Team +Uploaders: Jon Dowland +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9565b29 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Jon Dowland on Mon, +23 Jan 2006 17:33:43 +0000. + +It was downloaded from + +Copyright (C) 1999 id Software, Chi Hoang, Lee Killough, Jim Flynn, +Rand Phares, Ty Halderman + +Copyright (C) 2005-2006 Simon "Fraggle" Howard, + +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 +. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b5c7362 --- /dev/null +++ b/debian/docs @@ -0,0 +1,4 @@ +BUGS +NEWS +README +TODO diff --git a/debian/menu b/debian/menu new file mode 100644 index 0000000..f10a93f --- /dev/null +++ b/debian/menu @@ -0,0 +1,6 @@ +?package(chocolate-doom):\ + needs="X11"\ + section="Games/Action"\ + hints="Doom,First person"\ + title="Chocolate Doom"\ + command="/usr/games/chocolate-doom" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..957ed02 --- /dev/null +++ b/debian/rules @@ -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 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..d5d44e4 --- /dev/null +++ b/debian/watch @@ -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