From a27452539f27fb81bb516fa38f3487ea65537429 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Tue, 16 Apr 2002 08:07:40 +0000 Subject: [PATCH] Updated the Debian packages. They seem to work on my machine. --- debian/changelog | 18 ++++++++++++++++++ debian/control | 15 ++++++++++++++- debian/quakeforge-alsa.postinst | 7 +++++++ debian/quakeforge-alsa.prerm | 7 +++++++ debian/quakeforge-common.shlibs | 9 +++++++++ debian/quakeforge-libs-gl.shlibs | 2 ++ debian/quakeforge-libs-sw.shlibs | 2 ++ debian/quakeforge-oss.postinst | 7 +++++++ debian/quakeforge-oss.prerm | 7 +++++++ debian/rules | 24 +++++++++++++++++++++--- 10 files changed, 94 insertions(+), 4 deletions(-) create mode 100644 debian/quakeforge-alsa.postinst create mode 100644 debian/quakeforge-alsa.prerm create mode 100644 debian/quakeforge-common.shlibs create mode 100644 debian/quakeforge-libs-gl.shlibs create mode 100644 debian/quakeforge-libs-sw.shlibs create mode 100644 debian/quakeforge-oss.postinst create mode 100644 debian/quakeforge-oss.prerm diff --git a/debian/changelog b/debian/changelog index 7dfa7a504..bf9768cc1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,21 @@ +quakeforge (0.5.1-0cvs20020416) frozen unstable; urgency=low + + * New snapshot. + + -- Jeff Teunissen Sat, 16 Apr 2002 04:07:02 -0400 + +quakeforge (0.5.1-0cvs20011117) frozen unstable; urgency=low + + * New snapshot. + + -- Jeff Teunissen Sat, 17 Nov 2001 18:13:02 -0500 + +quakeforge (0.5.1-0cvs20011103) frozen unstable; urgency=low + + * New snapshot. + + -- Jeff Teunissen Sat, 3 Nov 2001 16:13:02 -0500 + quakeforge (0.5.1-0cvs20011015) frozen unstable; urgency=low * New snapshot diff --git a/debian/control b/debian/control index 5bb4275a0..87b2e6d5b 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: contrib/games Priority: optional Maintainer: Jeff Teunissen Standards-Version: 3.1.1 -Build-Depends: automake, autoconf, libtool, bison, flex, debhelper, libsdl1.2-dev, zlib1g-dev, libncurses5-dev, svgalibg1-dev, xlibs-dev (>= 4) +Build-Depends: automake, autoconf, libtool, bison, flex, debhelper, libsdl1.2-dev, zlib1g-dev, libncurses5-dev, svgalibg1-dev, xlibs-dev (>= 4), libasound2-dev Package: quakeforge Architecture: any @@ -172,3 +172,16 @@ Depends: quakeforge-common, ${shlibs:Depends} Description: ALSA 0.9 digital audio output plugin for QuakeForge The ALSA 0.9 plugin for QuakeForge provides digital audio output for QuakeForge targets that contain clients. + +Package: qfcc +Architecture: any +Depends: cpp, ${shlibs:Depends} +Description: The QuakeForge Code Compiler + QFCC is an optimizing byte-code compiler for the Ruamoko language, a language + based strongly on Id Software's QuakeC. The bytecode interpreter for QuakeC + and Ruamoko is located inside the Quake engine (though there is a standalone + interpreter available). + . + QFCC is designed to work with the QuakeForge engines, but will work with + most non-QuakeForge servers with a couple of changes to its command-line + options. diff --git a/debian/quakeforge-alsa.postinst b/debian/quakeforge-alsa.postinst new file mode 100644 index 000000000..195b72bba --- /dev/null +++ b/debian/quakeforge-alsa.postinst @@ -0,0 +1,7 @@ +#!/bin/sh -e + +update-alternatives --install /usr/lib/quakeforge/libsnd_output_default.so quakeforge-audio-default /usr/lib/quakeforge/libsnd_output_alsa0_9.so 100 + +#DEBHELPER# + +exit 0 diff --git a/debian/quakeforge-alsa.prerm b/debian/quakeforge-alsa.prerm new file mode 100644 index 000000000..718c7d0e5 --- /dev/null +++ b/debian/quakeforge-alsa.prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +update-alternatives --remove quakeforge-audio-default /usr/lib/quakeforge/libsnd_output_alsa0_9.so + +#DEBHELPER# + +exit 0 diff --git a/debian/quakeforge-common.shlibs b/debian/quakeforge-common.shlibs new file mode 100644 index 000000000..dfd093f97 --- /dev/null +++ b/debian/quakeforge-common.shlibs @@ -0,0 +1,9 @@ +libQFcd 1 quakeforge-common (>= 0.5.1) +libQFconsole 1 quakeforge-common (>= 0.5.1) +libQFcsqc 1 quakeforge-common (>= 0.5.1) +libQFgamecode 1 quakeforge-common (>= 0.5.1) +libQFgamecode_builtins 1 quakeforge-common (>= 0.5.1) +libQFjs 1 quakeforge-common (>= 0.5.1) +libQFmodels 1 quakeforge-common (>= 0.5.1) +libQFsound 1 quakeforge-common (>= 0.5.1) +libQFutil 1 quakeforge-common (>= 0.5.1) diff --git a/debian/quakeforge-libs-gl.shlibs b/debian/quakeforge-libs-gl.shlibs new file mode 100644 index 000000000..7bf7db9b9 --- /dev/null +++ b/debian/quakeforge-libs-gl.shlibs @@ -0,0 +1,2 @@ +libQFrenderer_gl 1 quakeforge-libs-gl (>= 0.5.1) +libQFmodels_gl 1 quakeforge-libs-gl (>= 0.5.1) diff --git a/debian/quakeforge-libs-sw.shlibs b/debian/quakeforge-libs-sw.shlibs new file mode 100644 index 000000000..fb9017e4f --- /dev/null +++ b/debian/quakeforge-libs-sw.shlibs @@ -0,0 +1,2 @@ +libQFrenderer_sw 1 quakeforge-libs-sw (>= 0.5.1) +libQFmodels_sw 1 quakeforge-libs-sw (>= 0.5.1) diff --git a/debian/quakeforge-oss.postinst b/debian/quakeforge-oss.postinst new file mode 100644 index 000000000..8b4679e97 --- /dev/null +++ b/debian/quakeforge-oss.postinst @@ -0,0 +1,7 @@ +#!/bin/sh -e + +update-alternatives --install /usr/lib/quakeforge/libsnd_output_default.so quakeforge-audio-default /usr/lib/quakeforge/libsnd_output_oss.so 90 + +#DEBHELPER# + +exit 0 diff --git a/debian/quakeforge-oss.prerm b/debian/quakeforge-oss.prerm new file mode 100644 index 000000000..093ce6fd3 --- /dev/null +++ b/debian/quakeforge-oss.prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +update-alternatives --remove quakeforge-audio-default /usr/lib/quakeforge/libsnd_output_oss.so + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules index 819e468ed..d07de0e2e 100755 --- a/debian/rules +++ b/debian/rules @@ -21,6 +21,7 @@ x11 := $(PACKAGE)-x11 alsa := $(PACKAGE)-alsa oss := $(PACKAGE)-oss +QFCC := qfcc build := $(shell pwd)/debian/tmp tmp := debian/tmp @@ -37,6 +38,8 @@ configure-stamp: # Add here commands to configure the package. [ -d CVS ] && ./bootstrap ./configure --prefix=/usr $(RETARGET) --bindir=/usr/games \ + --without-fbdev \ + --disable-xmms \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --with-plugin-path=/usr/lib/quakeforge \ @@ -79,19 +82,22 @@ install: build # quakeforge-common find $(tmp)/etc ! -type d | sed -e "s:^$(tmp)::" > debian/$(common).conffiles + install -D -m755 debian/$(common).shlibs debian/$(common)/DEBIAN/shlibs dh_movefiles -p$(common) --sourcedir=$(tmp) \ etc/quakeforge.conf \ usr/lib/libQFcd.so.* \ usr/lib/libQFconsole.so.* \ + usr/lib/libQFcsqc.so.* \ usr/lib/libQFgamecode.so.* \ usr/lib/libQFgamecode_builtins.so.* \ - usr/lib/libQFgib.so.* \ usr/lib/libQFjs.so.* \ usr/lib/libQFmodels.so.* \ usr/lib/libQFsound.so.* \ usr/lib/libQFutil.so.* \ usr/lib/quakeforge/libcd_null.so* \ + usr/lib/quakeforge/libconsole_client.so* \ usr/lib/quakeforge/libsnd_output_disk.so* \ + usr/lib/quakeforge/libsnd_output_null.so* \ usr/lib/quakeforge/libsnd_render_default.so* dh_installdocs -p$(common) NEWS TODO dh_installchangelogs -p$(common) ChangeLog @@ -102,10 +108,10 @@ install: build usr/lib/libQFcd.so \ usr/lib/libQFconsole.*a \ usr/lib/libQFconsole.so \ + usr/lib/libQFcsqc.*a \ + usr/lib/libQFcsqc.so \ usr/lib/libQFgamecode.*a \ usr/lib/libQFgamecode.so \ - usr/lib/libQFgib.*a \ - usr/lib/libQFgib.so \ usr/lib/libQFjs.*a \ usr/lib/libQFjs.so \ usr/lib/libQFmodels.*a \ @@ -125,6 +131,7 @@ install: build dh_movefiles -p$(gllib) --sourcedir=$(tmp) \ usr/lib/libQFmodels_gl.so.* \ usr/lib/libQFrenderer_gl.so.* + install -D -m755 debian/$(gllib).shlibs debian/$(gllib)/DEBIAN/shlibs install -d -m755 debian/$(gllib)/usr/share/doc ln -s $(common) debian/$(gllib)/usr/share/doc/$(gllib) @@ -132,6 +139,7 @@ install: build dh_movefiles -p$(swlib) --sourcedir=$(tmp) \ usr/lib/libQFmodels_sw.so.* \ usr/lib/libQFrenderer_sw.so.* + install -D -m755 debian/$(swlib).shlibs debian/$(swlib)/DEBIAN/shlibs install -d -m755 debian/$(swlib)/usr/share/doc ln -s $(common) debian/$(swlib)/usr/share/doc/$(swlib) @@ -191,6 +199,15 @@ install: build install -d -m755 debian/$(oss)/usr/share/doc ln -s $(common) debian/$(oss)/usr/share/doc/$(oss) + # qfcc + install -D -m755 $(tmp)/usr/games/qfcc $(tmp)/usr/bin/qfcc + rm -f $(tmp)/usr/games/qfcc + dh_movefiles -p$(QFCC) --sourcedir=$(tmp) \ + usr/bin/qfcc \ + usr/share/man/man1/qfcc.1 + install -d -m755 debian/$(QFCC)/usr/share/doc + ln -s $(common) debian/$(QFCC)/usr/share/doc/$(QFCC) + # quakeforge find $(tmp) -type d -empty | xargs -r rmdir -p --ignore-fail-on-non-empty dh_movefiles -p$(PACKAGE) --sourcedir=$(tmp) @@ -212,6 +229,7 @@ binary-arch: build install dh_testroot dh_installexamples dh_installmenu + dh_installman -p$(QFCC) dh_undocumented dh_strip dh_link