Added debian stuff
authorBradley Bell <btb@icculus.org>
Wed, 6 Feb 2002 06:58:27 +0000 (06:58 +0000)
committerBradley Bell <btb@icculus.org>
Wed, 6 Feb 2002 06:58:27 +0000 (06:58 +0000)
debian/changelog.in [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/d2x-gl.files [new file with mode: 0644]
debian/d2x-gl.menu [new file with mode: 0644]
debian/d2x.files [new file with mode: 0644]
debian/d2x.menu [new file with mode: 0644]
debian/rules [new file with mode: 0644]

diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644 (file)
index 0000000..a917e1a
--- /dev/null
@@ -0,0 +1,6 @@
+d2x (@VERSION@) unstable; urgency=low
+
+  * Please see the file ChangeLog.
+
+ -- Bradley Bell <bradleyb@u.washington.edu>  Tue,  5 Feb 2002 22:16:01 -0800
+
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..49b3ea5
--- /dev/null
@@ -0,0 +1,18 @@
+Source: d2x
+Section: games
+Priority: extra
+Maintainer: Bradley Bell <bradleyb@u.washington.edu>
+Build-Depends: debhelper (>> 3.0.0), libsdl-dev, nasm, libgl-dev
+Standards-Version: 3.5.0
+
+Package: d2x
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Descent II
+ Descent II
+
+Package: d2x-gl
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Descent II, GL-accelerated
+ Descent II, GL-accelerated
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..ae7ed1f
--- /dev/null
@@ -0,0 +1,10 @@
+This package was debianized by Bradley Bell <btb@debian.org> on
+Tue,  5 Feb 2002 22:16:01 -0800.
+
+It was downloaded from <fill in ftp site>
+
+Upstream Author(s): <put author(s) name and email here>
+
+Copyright:
+
+<Must follow here>
diff --git a/debian/d2x-gl.files b/debian/d2x-gl.files
new file mode 100644 (file)
index 0000000..fccb2fc
--- /dev/null
@@ -0,0 +1 @@
+/usr/games/d2x-ogl
diff --git a/debian/d2x-gl.menu b/debian/d2x-gl.menu
new file mode 100644 (file)
index 0000000..9853f3f
--- /dev/null
@@ -0,0 +1,2 @@
+?package(d2x-gl):needs=X11 section=Games/Arcade\
+  title="d2x-gl" command="/usr/games/d2x-ogl"
diff --git a/debian/d2x.files b/debian/d2x.files
new file mode 100644 (file)
index 0000000..eb48ce7
--- /dev/null
@@ -0,0 +1 @@
+usr/games/d2x-sdl
diff --git a/debian/d2x.menu b/debian/d2x.menu
new file mode 100644 (file)
index 0000000..9f9224b
--- /dev/null
@@ -0,0 +1,2 @@
+?package(d2x):needs=X11 section=Games/Arcade\
+  title="d2x" command="/usr/games/d2x-sdl"
diff --git a/debian/rules b/debian/rules
new file mode 100644 (file)
index 0000000..6d9b8ef
--- /dev/null
@@ -0,0 +1,104 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=3
+
+configure: configure-stamp configure-gl-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+       mkdir -p d2x-sdl
+       cd d2x-sdl && ../configure --disable-debug --enable-release \
+               --prefix=/usr --bindir=\$${prefix}/games
+
+       touch configure-stamp
+
+configure-gl-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+       mkdir -p d2x-ogl
+       cd d2x-ogl && ../configure --disable-debug --enable-release --with-opengl \
+               --prefix=/usr --bindir=\$${prefix}/games
+
+       touch configure-gl-stamp
+
+build: build-stamp build-gl-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+       cd d2x-sdl && $(MAKE)
+
+       touch build-stamp
+
+build-gl-stamp: configure-gl-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+       cd d2x-ogl && $(MAKE)
+
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       rm -rf d2x-sdl d2x-ogl
+
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       # Add here commands to install the package into debian/d2x.
+       cd d2x-sdl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x
+       cd d2x-ogl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x-ogl
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+#      dh_installdebconf       
+       dh_installdocs
+       dh_installexamples
+       dh_installmenu
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_installinit
+       dh_installcron
+       dh_installman
+       dh_installinfo
+#      dh_undocumented
+       dh_installchangelogs
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_makeshlibs
+       dh_installdeb
+#      dh_perl
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure