Author: baby-guest Date: 2008-04-10 11:48:10 +0000 (Thu, 10 Apr 2008) New Revision: 6506
Added: packages/trunk/biniax2/debian/ packages/trunk/biniax2/debian/README.Debian packages/trunk/biniax2/debian/biniax2.doc-base.EX packages/trunk/biniax2/debian/changelog packages/trunk/biniax2/debian/compat packages/trunk/biniax2/debian/control packages/trunk/biniax2/debian/copyright packages/trunk/biniax2/debian/docs packages/trunk/biniax2/debian/init.d.ex packages/trunk/biniax2/debian/manpage.1.ex packages/trunk/biniax2/debian/manpage.xml.ex packages/trunk/biniax2/debian/menu.ex packages/trunk/biniax2/debian/patches/ packages/trunk/biniax2/debian/patches/datadir.patch packages/trunk/biniax2/debian/patches/series packages/trunk/biniax2/debian/rules packages/trunk/biniax2/debian/watch.ex Log: [svn-inject] Applying Debian modifications to trunk Property changes on: packages/trunk/biniax2/debian ___________________________________________________________________ Name: mergeWithUpstream + 1 Added: packages/trunk/biniax2/debian/README.Debian =================================================================== --- packages/trunk/biniax2/debian/README.Debian (rev 0) +++ packages/trunk/biniax2/debian/README.Debian 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,6 @@ +biniax2 for Debian +------------------ + +<possible notes regarding this package - if none, delete this file> + + -- Miriam Ruiz <[EMAIL PROTECTED]> Thu, 10 Apr 2008 11:12:15 +0000 Added: packages/trunk/biniax2/debian/biniax2.doc-base.EX =================================================================== --- packages/trunk/biniax2/debian/biniax2.doc-base.EX (rev 0) +++ packages/trunk/biniax2/debian/biniax2.doc-base.EX 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,22 @@ +Document: biniax2 +Title: Debian biniax2 Manual +Author: <insert document author here> +Abstract: This manual describes what biniax2 is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/biniax2/biniax2.sgml.gz + +Format: postscript +Files: /usr/share/doc/biniax2/biniax2.ps.gz + +Format: text +Files: /usr/share/doc/biniax2/biniax2.text.gz + +Format: HTML +Index: /usr/share/doc/biniax2/html/index.html +Files: /usr/share/doc/biniax2/html/*.html + + Added: packages/trunk/biniax2/debian/changelog =================================================================== --- packages/trunk/biniax2/debian/changelog (rev 0) +++ packages/trunk/biniax2/debian/changelog 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,8 @@ +biniax2 (0.0.20080410-1) UNRELEASED; urgency=low + + [ Miriam Ruiz] + * Initial release (Closes: #nnnn) + * Added DM-Upload-Allowed: yes to debian/control + + -- Miriam Ruiz <[EMAIL PROTECTED]> Thu, 10 Apr 2008 11:12:15 +0000 + Added: packages/trunk/biniax2/debian/compat =================================================================== --- packages/trunk/biniax2/debian/compat (rev 0) +++ packages/trunk/biniax2/debian/compat 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1 @@ +5 Added: packages/trunk/biniax2/debian/control =================================================================== --- packages/trunk/biniax2/debian/control (rev 0) +++ packages/trunk/biniax2/debian/control 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,19 @@ +Source: biniax2 +Section: games +Priority: extra +Maintainer: Debian Games Team <[EMAIL PROTECTED]> +Uploaders: Miriam Ruiz <[EMAIL PROTECTED]> +Build-Depends: debhelper (>= 5), quilt, + libsdl1.2-dev, libsdl-mixer1.2-dev, libsdl-image1.2-dev +Standards-Version: 3.7.3 +Homepage: http://biniax.com/index2.html +DM-Upload-Allowed: yes + +Package: biniax2 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: logic game with arcade and tactics modes + Biniax-2 is original and entertaining game. Takes a minute to learn and + gives you hours and hours of gameplay. There are three game modes (two + singleplayer and one multiplayer), hall of fame, dynamic music and nice + cartoon look. Added: packages/trunk/biniax2/debian/copyright =================================================================== --- packages/trunk/biniax2/debian/copyright (rev 0) +++ packages/trunk/biniax2/debian/copyright 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,24 @@ +This package was debianized by Miriam Ruiz <[EMAIL PROTECTED]> on +Thu, 10 Apr 2008 11:12:15 +0000. + +It was downloaded from <url://example.com> + +Upstream Author(s): + + <put author's name and email here> + <likewise for another author> + +Copyright: + + <Copyright (C) YYYY Name OfAuthor> + <likewise for another author> + +License: + + <Put the license of the package here indented by 4 spaces> + +The Debian packaging is (C) 2008, Miriam Ruiz <[EMAIL PROTECTED]> and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. Added: packages/trunk/biniax2/debian/docs =================================================================== --- packages/trunk/biniax2/debian/docs (rev 0) +++ packages/trunk/biniax2/debian/docs 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,4 @@ +LICENSE.txt +README.txt +README.txt +sdl.txt Added: packages/trunk/biniax2/debian/init.d.ex =================================================================== --- packages/trunk/biniax2/debian/init.d.ex (rev 0) +++ packages/trunk/biniax2/debian/init.d.ex 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,157 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg <[EMAIL PROTECTED]>. +# Modified for Debian +# by Ian Murdock <[EMAIL PROTECTED]>. +# Further changes by Javier Fernandez-Sanguino <[EMAIL PROTECTED]> +# +# Version: @(#)skeleton 1.9 26-Feb-2001 [EMAIL PROTECTED] +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/biniax2 +NAME=biniax2 +DESC=biniax2 + +test -x $DAEMON || exit 0 + +LOGDIR=/var/log/biniax2 +PIDFILE=/var/run/$NAME.pid +DODTIME=1 # Time to wait for the server to die, in seconds + # If this value is set too low you might not + # let some servers to die gracefully and + # 'restart' will not work + +# Include biniax2 defaults if available +if [ -f /etc/default/biniax2 ] ; then + . /etc/default/biniax2 +fi + +set -e + +running_pid() +{ + # Check if a given process pid's cmdline matches a given name + pid=$1 + name=$2 + [ -z "$pid" ] && return 1 + [ ! -d /proc/$pid ] && return 1 + cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` + # Is this the expected child? + [ "$cmd" != "$name" ] && return 1 + return 0 +} + +running() +{ +# Check if the process is running looking at /proc +# (works for all users) + + # No pidfile, probably no daemon present + [ ! -f "$PIDFILE" ] && return 1 + # Obtain the pid and check it against the binary name + pid=`cat $PIDFILE` + running_pid $pid $NAME || return 1 + return 0 +} + +force_stop() { +# Forcefully kill the process + [ ! -f "$PIDFILE" ] && return + if running ; then + kill -15 $pid + # Is it really dead? + [ -n "$DODTIME" ] && sleep "$DODTIME"s + if running ; then + kill -9 $pid + [ -n "$DODTIME" ] && sleep "$DODTIME"s + if running ; then + echo "Cannot kill $LABEL (pid=$pid)!" + exit 1 + fi + fi + fi + rm -f $PIDFILE + return 0 +} + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $DAEMON_OPTS + if running then + echo "$NAME." + else + echo " ERROR." + fi + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON + echo "$NAME." + ;; + force-stop) + echo -n "Forcefully stopping $DESC: " + force_stop + if ! running then + echo "$NAME." + else + echo " ERROR." + fi + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart" except that it does nothing if the + # daemon isn't already running. + # check wether $DAEMON is running. If so, restart + start-stop-daemon --stop --test --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON \ + && $0 restart \ + || exit 0 + ;; + restart) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + [ -n "$DODTIME" ] && sleep $DODTIME + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + status) + echo -n "$LABEL is " + if running ; then + echo "running" + else + echo " not running." + exit 1 + fi + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2 + exit 1 + ;; +esac + +exit 0 Added: packages/trunk/biniax2/debian/manpage.1.ex =================================================================== --- packages/trunk/biniax2/debian/manpage.1.ex (rev 0) +++ packages/trunk/biniax2/debian/manpage.1.ex 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,59 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BINIAX2 SECTION "abril 10, 2008" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp <n> insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +biniax2 \- program to do something +.SH SYNOPSIS +.B biniax2 +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B biniax2 +and +.B bar +commands. +.PP +.\" TeX users may be more comfortable with the \fB<whatever>\fP and +.\" \fI<whatever>\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBbiniax2\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +biniax2 was written by <upstream author>. +.PP +This manual page was written by Miriam Ruiz <[EMAIL PROTECTED]>, +for the Debian project (but may be used by others). Added: packages/trunk/biniax2/debian/manpage.xml.ex =================================================================== --- packages/trunk/biniax2/debian/manpage.xml.ex (rev 0) +++ packages/trunk/biniax2/debian/manpage.xml.ex 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,144 @@ +<?xml version='1.0' encoding='ISO-8859-1'?> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" +"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +<!-- + +Process this file with an XSLT processor: `xsltproc \ +-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ +manpages/docbook.xsl manpage.dbk'. A manual page +<package>.<section> will be generated. You may view the +manual page with: nroff -man <package>.<section> | less'. A +typical entry in a Makefile or Makefile.am is: + +DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ +manpages/docbook.xsl +XP=xsltproc -''-nonet + +manpage.1: manpage.dbk + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The +XSL files are in docbook-xsl. Please remember that if you +create the nroff version in one of the debian/rules file +targets (such as build), you will need to include xsltproc +and docbook-xsl in your Build-Depends control field. + +--> + + <!-- Fill in your name for FIRSTNAME and SURNAME. --> + <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>"> + <!ENTITY dhsurname "<surname>SURNAME</surname>"> + <!-- Please adjust the date whenever revising the manpage. --> + <!ENTITY dhdate "<date>abril 10, 2008</date>"> + <!-- SECTION should be 1-8, maybe w/ subsection other parameters are + allowed: see man(7), man(1). --> + <!ENTITY dhsection "<manvolnum>SECTION</manvolnum>"> + <!ENTITY dhemail "<email>[EMAIL PROTECTED]</email>"> + <!ENTITY dhusername "Miriam Ruiz"> + <!ENTITY dhucpackage "<refentrytitle>BINIAX2</refentrytitle>"> + <!ENTITY dhpackage "biniax2"> + + <!ENTITY debian "<productname>Debian</productname>"> + <!ENTITY gnu "<acronym>GNU</acronym>"> + <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> +]> + +<refentry> + <refentryinfo> + <address> + &dhemail; + </address> + <copyright> + <year>2007</year> + <holder>&dhusername;</holder> + </copyright> + &dhdate; + </refentryinfo> + <refmeta> + &dhucpackage; + + &dhsection; + </refmeta> + <refnamediv> + <refname>&dhpackage;</refname> + + <refpurpose>program to do something</refpurpose> + </refnamediv> + <refsynopsisdiv> + <cmdsynopsis> + <command>&dhpackage;</command> + + <arg><option>-e <replaceable>this</replaceable></option></arg> + + <arg><option>--example <replaceable>that</replaceable></option></arg> + </cmdsynopsis> + </refsynopsisdiv> + <refsect1> + <title>DESCRIPTION</title> + + <para>This manual page documents briefly the + <command>&dhpackage;</command> and <command>bar</command> + commands.</para> + + <para>This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + <application>Info</application> format; see below.</para> + + <para><command>&dhpackage;</command> is a program that...</para> + + </refsect1> + <refsect1> + <title>OPTIONS</title> + + <para>These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + <application>Info</application> files.</para> + + <variablelist> + <varlistentry> + <term><option>-h</option> + <option>--help</option> + </term> + <listitem> + <para>Show summary of options.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-v</option> + <option>--version</option> + </term> + <listitem> + <para>Show version of program.</para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + <refsect1> + <title>SEE ALSO</title> + + <para>bar (1), baz (1).</para> + + <para>The programs are documented fully by <citetitle>The Rise and + Fall of a Fooish Bar</citetitle> available via the + <application>Info</application> system.</para> + </refsect1> + <refsect1> + <title>AUTHOR</title> + + <para>This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + </para> + <para> + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + </para> + + </refsect1> +</refentry> + Added: packages/trunk/biniax2/debian/menu.ex =================================================================== --- packages/trunk/biniax2/debian/menu.ex (rev 0) +++ packages/trunk/biniax2/debian/menu.ex 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,2 @@ +?package(biniax2):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ + title="biniax2" command="/usr/bin/biniax2" Added: packages/trunk/biniax2/debian/patches/datadir.patch =================================================================== --- packages/trunk/biniax2/debian/patches/datadir.patch (rev 0) +++ packages/trunk/biniax2/debian/patches/datadir.patch 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,129 @@ +# Copyright (C) 2008 by Miriam Ruiz <[EMAIL PROTECTED]> +# Distributed under the same license as the game. See debian/copyright + +Index: biniax2-0.0.20080410/src/desktop/gfx.c +=================================================================== +--- biniax2-0.0.20080410.orig/src/desktop/gfx.c 2008-04-10 11:43:43.000000000 +0000 ++++ biniax2-0.0.20080410/src/desktop/gfx.c 2008-04-10 11:43:46.000000000 +0000 +@@ -789,39 +789,39 @@ + BNX_BOOL bLoad = BNX_TRUE; + + /* Load GUI related graphics data */ +- bLoad |= gfxLoadImage( "data/graphics/background0.png", &_Gfx.background[ cModeRealtime ]); +- bLoad |= gfxLoadImage( "data/graphics/background1.png", &_Gfx.background[ cModeTurn ]); +- bLoad |= gfxLoadImage( "data/graphics/background2.png", &_Gfx.background[ cModeMultiplayer ] ); +- +- bLoad |= gfxLoadImage( "data/graphics/window.png", &_Gfx.window ); +- bLoad |= gfxLoadImage( "data/graphics/splash.png", &_Gfx.splash ); +- bLoad |= gfxLoadImage( "data/graphics/logo.png", &_Gfx.logo ); +- bLoad |= gfxLoadImage( "data/graphics/help.png", &_Gfx.help ); +- bLoad |= gfxLoadImage( "data/graphics/font.png", &_Gfx.font ); +- bLoad |= gfxLoadImage( "data/graphics/roadmap.png", &_Gfx.roadmap ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/background0.png", &_Gfx.background[ cModeRealtime ]); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/background1.png", &_Gfx.background[ cModeTurn ]); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/background2.png", &_Gfx.background[ cModeMultiplayer ] ); ++ ++ bLoad |= gfxLoadImage( DATADIR "/graphics/window.png", &_Gfx.window ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/splash.png", &_Gfx.splash ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/logo.png", &_Gfx.logo ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/help.png", &_Gfx.help ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/font.png", &_Gfx.font ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/roadmap.png", &_Gfx.roadmap ); + + // Loading Game Elements +- bLoad |= gfxLoadImage( "data/graphics/element0.png", &_Gfx.elements[ 0 ] ); +- bLoad |= gfxLoadImage( "data/graphics/element1.png", &_Gfx.elements[ 1 ] ); +- bLoad |= gfxLoadImage( "data/graphics/element2.png", &_Gfx.elements[ 2 ] ); +- bLoad |= gfxLoadImage( "data/graphics/element3.png", &_Gfx.elements[ 3 ] ); +- bLoad |= gfxLoadImage( "data/graphics/elementB.png", &_Gfx.elements[ 4 ] ); +- +- bLoad |= gfxLoadImage( "data/graphics/movecount.png", &_Gfx.movecount ); +- bLoad |= gfxLoadImage( "data/graphics/cursor0.png", &_Gfx.cursors[ 0 ] ); +- bLoad |= gfxLoadImage( "data/graphics/cursor1.png", &_Gfx.cursors[ 1 ] ); +- bLoad |= gfxLoadImage( "data/graphics/marker0.png", &_Gfx.markers[ 0 ] ); +- bLoad |= gfxLoadImage( "data/graphics/marker1.png", &_Gfx.markers[ 1 ] ); +- +- bLoad |= gfxLoadImage( "data/graphics/particle0.png", &_Gfx.part[ 0 ] ); +- bLoad |= gfxLoadImage( "data/graphics/particle1.png", &_Gfx.part[ 1 ] ); +- bLoad |= gfxLoadImage( "data/graphics/particle2.png", &_Gfx.part[ 2 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/element0.png", &_Gfx.elements[ 0 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/element1.png", &_Gfx.elements[ 1 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/element2.png", &_Gfx.elements[ 2 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/element3.png", &_Gfx.elements[ 3 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/elementB.png", &_Gfx.elements[ 4 ] ); ++ ++ bLoad |= gfxLoadImage( DATADIR "/graphics/movecount.png", &_Gfx.movecount ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/cursor0.png", &_Gfx.cursors[ 0 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/cursor1.png", &_Gfx.cursors[ 1 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/marker0.png", &_Gfx.markers[ 0 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/marker1.png", &_Gfx.markers[ 1 ] ); ++ ++ bLoad |= gfxLoadImage( DATADIR "/graphics/particle0.png", &_Gfx.part[ 0 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/particle1.png", &_Gfx.part[ 1 ] ); ++ bLoad |= gfxLoadImage( DATADIR "/graphics/particle2.png", &_Gfx.part[ 2 ] ); + + // Set alpha + SDL_SetAlpha( _Gfx.window, SDL_SRCALPHA | SDL_RLEACCEL, cGfxWinBlending ); + + // Load Help Text +- gfxLoadHelp( "data/text/help.txt" ); ++ gfxLoadHelp( DATADIR "/text/help.txt" ); + + return bLoad; + } +Index: biniax2-0.0.20080410/src/desktop/snd.c +=================================================================== +--- biniax2-0.0.20080410.orig/src/desktop/snd.c 2008-04-10 11:43:43.000000000 +0000 ++++ biniax2-0.0.20080410/src/desktop/snd.c 2008-04-10 11:43:46.000000000 +0000 +@@ -60,20 +60,20 @@ + + Mix_VolumeMusic( MIX_MAX_VOLUME >> 1 ); + +- _Snd.sounds[ 1 ] = Mix_LoadWAV( "data/sound/sfx1.wav" ); +- _Snd.sounds[ 2 ] = Mix_LoadWAV( "data/sound/sfx2.wav" ); +- _Snd.sounds[ 3 ] = Mix_LoadWAV( "data/sound/sfx3.wav" ); +- _Snd.sounds[ 4 ] = Mix_LoadWAV( "data/sound/sfx4.wav" ); +- _Snd.sounds[ 5 ] = Mix_LoadWAV( "data/sound/sfx5.wav" ); +- +- _Snd.music[ 0 ] = Mix_LoadMUS( "data/music/biniax_common00.it" ); +- _Snd.music[ 1 ] = Mix_LoadMUS( "data/music/biniax_common01.it" ); +- _Snd.music[ 2 ] = Mix_LoadMUS( "data/music/biniax_common02.it" ); +- _Snd.music[ 3 ] = Mix_LoadMUS( "data/music/biniax_common03.it" ); +- _Snd.music[ 4 ] = Mix_LoadMUS( "data/music/biniax_common04.it" ); +- _Snd.music[ 5 ] = Mix_LoadMUS( "data/music/biniax_common05.it" ); +- _Snd.music[ 6 ] = Mix_LoadMUS( "data/music/biniax_common06.it" ); +- _Snd.music[ 7 ] = Mix_LoadMUS( "data/music/biniax_common07.it" ); ++ _Snd.sounds[ 1 ] = Mix_LoadWAV( DATADIR "/sound/sfx1.wav" ); ++ _Snd.sounds[ 2 ] = Mix_LoadWAV( DATADIR "/sound/sfx2.wav" ); ++ _Snd.sounds[ 3 ] = Mix_LoadWAV( DATADIR "/sound/sfx3.wav" ); ++ _Snd.sounds[ 4 ] = Mix_LoadWAV( DATADIR "/sound/sfx4.wav" ); ++ _Snd.sounds[ 5 ] = Mix_LoadWAV( DATADIR "/sound/sfx5.wav" ); ++ ++ _Snd.music[ 0 ] = Mix_LoadMUS( DATADIR "/music/biniax_common00.it" ); ++ _Snd.music[ 1 ] = Mix_LoadMUS( DATADIR "/music/biniax_common01.it" ); ++ _Snd.music[ 2 ] = Mix_LoadMUS( DATADIR "/music/biniax_common02.it" ); ++ _Snd.music[ 3 ] = Mix_LoadMUS( DATADIR "/music/biniax_common03.it" ); ++ _Snd.music[ 4 ] = Mix_LoadMUS( DATADIR "/music/biniax_common04.it" ); ++ _Snd.music[ 5 ] = Mix_LoadMUS( DATADIR "/music/biniax_common05.it" ); ++ _Snd.music[ 6 ] = Mix_LoadMUS( DATADIR "/music/biniax_common06.it" ); ++ _Snd.music[ 7 ] = Mix_LoadMUS( DATADIR "/music/biniax_common07.it" ); + + return BNX_TRUE; + } +Index: biniax2-0.0.20080410/src/makefile +=================================================================== +--- biniax2-0.0.20080410.orig/src/makefile 2008-04-10 11:43:43.000000000 +0000 ++++ biniax2-0.0.20080410/src/makefile 2008-04-10 11:44:24.000000000 +0000 +@@ -8,8 +8,9 @@ + FILES=biniax.c hof.c desktop/cfg.c desktop/gfx.c desktop/snd.c desktop/inp.c desktop/sys.c + INCLUDES=-I . -I desktop + LINKTO=-lSDL -lSDL_mixer -lSDL_image +-AUTO=`sdl-config --libs --cflags` ++DATADIR=./data ++AUTO=`sdl-config --libs --cflags` -DDATADIR=\"$(DATADIR)\" + TARGET=biniax2 + + biniax: +- $(CC) $(AUTO) $(FILES) $(INCLUDES) -o $(TARGET) $(LINKTO) +\ No newline at end of file ++ $(CC) $(FLAGS) $(AUTO) $(FILES) $(INCLUDES) -o $(TARGET) $(LINKTO) Added: packages/trunk/biniax2/debian/patches/series =================================================================== --- packages/trunk/biniax2/debian/patches/series (rev 0) +++ packages/trunk/biniax2/debian/patches/series 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1 @@ +datadir.patch Added: packages/trunk/biniax2/debian/rules =================================================================== --- packages/trunk/biniax2/debian/rules (rev 0) +++ packages/trunk/biniax2/debian/rules 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,85 @@ +#!/usr/bin/make -f + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + $(MAKE) -f /usr/share/quilt/quilt.make patch + touch $@ + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) FLAGS="$(CFLAGS)" -C src + #docbook-to-man debian/biniax2.sgml > biniax2.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + #$(MAKE) clean -C src + rm -f src/biniax2 + $(MAKE) -f /usr/share/quilt/quilt.make unpatch + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + #$(MAKE) DESTDIR=$(CURDIR)/debian/biniax2 install + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +get-orig-source: + dh_testdir + dh_testroot + + wget http://mordred.dir.bg/biniax/biniax2-src.zip + wget http://mordred.dir.bg/biniax/biniax2-linux86.tar.gz + + tar xvfz ../biniax2-linux86.tar.gz + mv biniax2-linux86 biniax2 + rm biniax2/biniax2 + + mkdir biniax2/src && cd biniax2/src && unzip ../../biniax2-src.zip + + tar cvfz ../biniax2_0.0.20080410.orig.tar.gz biniax2 + rm -rf biniax2 biniax2-src.zip biniax2-linux86.tar.gz + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure +.PHONY: get-orig-source Property changes on: packages/trunk/biniax2/debian/rules ___________________________________________________________________ Name: svn:executable + * Added: packages/trunk/biniax2/debian/watch.ex =================================================================== --- packages/trunk/biniax2/debian/watch.ex (rev 0) +++ packages/trunk/biniax2/debian/watch.ex 2008-04-10 11:48:10 UTC (rev 6506) @@ -0,0 +1,22 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webpage +# <Webpage URL> <string match> +#http://www.example.com/downloads.php biniax2-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/biniax2-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/biniax2-(.*)\.tar\.gz debian uupdate + +# Uncomment to find new files on sourceforge, for debscripts >= 2.9 +# http://sf.net/biniax2/biniax2-(.*)\.tar\.gz + + _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

