debian/control
-- CUT HERE
Source: roaddemoSection: gamesPriority: optionalMaintainer: Miriam Ruiz <little_miry@yahoo.es>Build-Depends: libsdl1.2-dev, libgl-devStandards-Version: 3.6.1
Package: roaddemoArchitecture: anyDepends: ${shlibs:Depends}Description: Simple demo using opengl and SDLBezier-road demo ported from glut to SDL..Use the right mouse button to select one of theendpoints or control points, then click and dragwith the left mouse button to move the point.
-- CUT HERE --
debian/copyright
-- CUT HERE
This package was debianized by Miriam Ruiz <little_miry@yahoo.es> onSat, 8 Jan 2005 20:09:28 +0000.
It was downloaded from http://www.newimage.com/~rhk/roaddemo/##------##Upstream∞ Author: Ray Kelm <rhk@newimage.com>
License:##------##This package is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; version 2 dated June, 1991.
This package is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this package; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA02111-1307, USA.
On Debian GNU/Linux systems, the complete text of the GNU GeneralPublic License can be found in `/usr/share/common-licenses/GPL'.
-- CUT HERE --
debian/changelog
-- CUT HERE
roaddemo (1.0.1-1) unstable; urgency=low
* Initial Release.
-- Miriam Ruiz <little_miry@yahoo.es> Sat, 8 Jan 2005 20:09:28 +0000
-- CUT HERE --
9.4. debian/rules
-- CUT HERE
#!/usr/bin/make -f
# Debian Rules by Miriam Ruiz <little_miry@yahoo.es># January 2005#
# Thanks for their help and for some of their code go to:# * Manoj Srivastava# * Helen Faulkner# * Dafydd Harries# * Gregory Pomerantz
#
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.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Name of the package
package=roaddemo
# Function to check if we're in the correct dir (thanks Manoj)
define checkdir
@test -f debian/rules -a -f roaddemo.cc || \
(echo Not in correct source directory; exit 1)
endef
# Function to check if we're root (thanks Manoj)
define checkroot
@test $$(id -u) = 0 || (echo need root priviledges; exit 1)
endef
# Top directory of the source code (thanks Manoj)
SRCTOP := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
# Destination directory where files will be installed
DESTDIR = $(SRCTOP)/debian/$(package)
# Definition of directories
BIN_DIR = $(DESTDIR)/usr/bin
GAMES_DIR = $(DESTDIR)/usr/games
SHARE_DIR = $(DESTDIR)/usr/share/roaddemo
DOCS_DIR = $(DESTDIR)/usr/share/doc/roaddemo
MAN_DIR = $(DESTDIR)/usr/share/man/man1
MAN_GAMES_DIR = $(DESTDIR)/usr/share/man/man6
MENU_DIR = $(DESTDIR)/usr/lib/menu
PIXMAPS_DIR = $(DESTDIR)/usr/share/pixmaps
# Stamp Rules
configure-stamp:
$(checkdir)
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
touch configure-stamp
build-stamp: configure-stamp
$(checkdir)
-rm -f build-stamp
$(MAKE)
touch build-stamp
# Debian rules
build: build-stamp
clean: stamp-configure
$(checkdir)
-rm -f *-stamp
$(MAKE) distclean
-rm -rf debian/$(package)
-rm -f debian/files
-rm -f debian/substvars
binary-indep: build
# Definitions for install
INST_OWN = -o root -g root
MAKE_DIR = install -p -d $(INST_OWN) -m 755
INST_FILE = install -c $(INST_OWN) -m 644
INST_PROG = install -c $(INST_OWN) -m 755 -s
INST_SCRIPT = install -c $(INST_OWN) -m 755
binary-arch: build
$(checkdir)
$(checkroot)
# Install Program
$(MAKE) install DESTDIR=$(DESTDIR) LIBTOOL=libtool
# Install Program Resources
$(MAKE_DIR) $(SHARE_DIR)
$(INST_FILE) road.bmp $(SHARE_DIR)
$(MAKE_DIR) $(DESTDIR)/DEBIAN
# Install Docs
$(MAKE_DIR) $(DOCS_DIR)
$(INST_FILE) debian/copyright $(DOCS_DIR)/copyright
$(INST_FILE) debian/changelog $(DOCS_DIR)/changelog.Debian
$(INST_FILE) README $(DOCS_DIR)/README
# Install Manpages
#$(MAKE_DIR) $(MAN_GAMES_DIR)
#$(INST_FILE) roaddemo.6 $(MAN_GAMES_DIR)
# Install Menu and Icon
#$(MAKE_DIR) $(MENU_DIR)
#$(INST_FILE) debian/menu $(MENU_DIR)/roaddemo
#$(MAKE_DIR) $(PIXMAPS_DIR)
#$(INST_FILE) debian/roaddemo.xpm $(PIXMAPS_DIR)
# Install Package Scripts
#$(INST_SCRIPT) debian/postinst $(DESTDIR)/DEBIAN
#$(INST_SCRIPT) debian/postrm $(DESTDIR)/DEBIAN
# Compress Docs (thanks Helen)
gzip -9 $(DOCS_DIR)/changelog.Debian
#gzip -9 $(MAN_GAMES_DIR)/roaddemo.6
# Strip the symbols from the executable (thanks Helen)
# TODO: the stripping part in binary-arch should honor the DEB_BUILD_OPTIONS environment variable and not strip stuff when it includes 'nostrip'
strip -R .comment $(BIN_DIR)/roaddemo
# Work out the shared library dependancies (thanks Helen)
dpkg-shlibdeps $(package)
# Generate the control file (thanks Helen)
dpkg-gencontrol -isp -P$(DESTDIR)
# Make DEBIAN/md5sums (thanks Helen)
cd $(DESTDIR) && find . -type f ! -regex '.*DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
# Create the .deb package (thanks Helen)
dpkg-deb -b $(DESTDIR) ../
# Below here is fairly generic really
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean build
-- CUT HERE --