Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/games
In directory sc8-pr-cvs17:/tmp/cvs-serv9424/main/finkinfo/games

Added Files:
      Tag: pangocairo-branch
        chromium.info chromium.patch 
Log Message:
merge from trunk (pangocairo-root-31)

--- NEW FILE: chromium.patch ---
diff -ruN Chromium-0.9-orig/configure Chromium-0.9/configure
--- Chromium-0.9-orig/configure 2001-05-11 01:17:12.000000000 -0400
+++ Chromium-0.9/configure      2007-07-02 11:03:09.000000000 -0400
@@ -14,8 +14,8 @@
 
 ## Where do we look for stuff?
 ###################################
-std_bin_dirs="/usr/bin /usr/X11R6/bin /usr/local/bin $HOME/bin"
-std_lib_dirs="/usr/lib /usr/X11R6/lib /usr/local/lib $HOME/lib"
+std_bin_dirs="/usr/bin @FINKPREFIX@/bin $HOME/bin"
+std_lib_dirs="/usr/lib @FINKPREFIX@/lib $HOME/lib"
 
 ## Bring in the functions
 ###################################
@@ -157,9 +157,9 @@
 
 ## set up other config.mak variables
 ######################################################################
-GL_LIBS="-lglpng -lGL -lGLU -lm"
-AL_LIBS="-L../support/openal/lib -lopenal -ldl" 
-AL_CFLAGS="-I../support/openal/linux/include -I../support/openal/include"
+GL_LIBS="-lglpng -framework OpenGL -lm"
+AL_LIBS="[EMAIL PROTECTED]@/lib -lopenal -ldl" 
+AL_CFLAGS="[EMAIL PROTECTED]@/include/openal -I../support/openal/include"
 
 ## write out config.mak
 ######################################################################
diff -ruN Chromium-0.9-orig/scripts/Makefile.no-setup 
Chromium-0.9/scripts/Makefile.no-setup
--- Chromium-0.9-orig/scripts/Makefile.no-setup 2001-02-09 21:32:31.000000000 
-0500
+++ Chromium-0.9/scripts/Makefile.no-setup      2007-07-02 09:56:25.000000000 
-0400
@@ -1,5 +1,4 @@
 SUPPORT_DIRS   =        \
-                       ./support/openal/ \
                        ./support/glpng/src
 
 CHROMIUM_DIRS  =       \
diff -ruN Chromium-0.9-orig/scripts/configure_functions 
Chromium-0.9/scripts/configure_functions
--- Chromium-0.9-orig/scripts/configure_functions       2001-03-31 
16:21:24.000000000 -0500
+++ Chromium-0.9/scripts/configure_functions    2007-07-02 09:56:25.000000000 
-0400
@@ -191,7 +191,7 @@
        local LIBVORBISFILE
        
        for directory in $std_lib_dirs; do
-               if [ -f $directory/libvorbis.so ]; then
+               if [ -f $directory/libvorbis.dylib ]; then
                        LIBVORBISDIR=$directory
                        LIBVORBIS="-lvorbis"
                fi
diff -ruN Chromium-0.9-orig/src/MainSDL_Event.cpp 
Chromium-0.9/src/MainSDL_Event.cpp
--- Chromium-0.9-orig/src/MainSDL_Event.cpp     2001-05-20 21:36:48.000000000 
-0400
+++ Chromium-0.9/src/MainSDL_Event.cpp  2007-07-02 09:56:25.000000000 -0400
@@ -325,10 +325,10 @@
                        game->hero->moveEvent( 10, 0);
                        break;
            case SDLK_UP:
-                       game->hero->moveEvent(0, -10);
+                       game->hero->moveEvent(0, 10);
                        break;
            case SDLK_DOWN:
-                       game->hero->moveEvent(0,  10);
+                       game->hero->moveEvent(0, -10);
                        break;
 //         case SDLK_SPACE:
 //                     game->hero->fireGun(true);
diff -ruN Chromium-0.9-orig/src/Makefile Chromium-0.9/src/Makefile
--- Chromium-0.9-orig/src/Makefile      2001-05-22 01:25:50.000000000 -0400
+++ Chromium-0.9/src/Makefile   2007-07-02 11:12:45.000000000 -0400
@@ -12,10 +12,10 @@
 CXX    =       g++
 CFLAGS =       -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) 
-O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT
 CXXFLAGS=      -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) 
-O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT
-INCPATH        =       -I../support/include -I../support/glpng/include 
-I/usr/X11R6/include
+INCPATH        =       -I../support/include -I../support/glpng/include [EMAIL 
PROTECTED]@/include
 LINK   =       g++
 LFLAGS =       
-LIBS   =       $(SUBLIBS) -L../support/glpng/lib -L/usr/lib -L/usr/X11R6/lib 
-L/usr/local/lib $(GL_LIBS) $(AL_LIBS) $(SDL_LIBS) $(SMPEG_LIBS) $(VORBIS_LIBS)
+LIBS   =       $(SUBLIBS) -L../support/glpng/lib -L/usr/lib [EMAIL 
PROTECTED]@/lib $(GL_LIBS) $(AL_LIBS) $(SDL_LIBS) $(SMPEG_LIBS) $(VORBIS_LIBS) 
-undefined suppress -flat_namespace
 MOC    =       $(QTDIR)/bin/moc
 UIC    =       $(QTDIR)/bin/uic
 
diff -ruN Chromium-0.9-orig/src/NCString.cpp Chromium-0.9/src/NCString.cpp
--- Chromium-0.9-orig/src/NCString.cpp  2001-05-20 13:04:58.000000000 -0400
+++ Chromium-0.9/src/NCString.cpp       2007-07-02 09:56:25.000000000 -0400
@@ -1055,7 +1055,7 @@
 uint NCString::toULong(const char *str, bool *ok)
 {
        int n;
-       ulong tmp = 0;
+       u_long tmp = 0;
        if(str)
        {
                n = sscanf(str, "%lu", &tmp);
diff -ruN Chromium-0.9-orig/src/define.h Chromium-0.9/src/define.h
--- Chromium-0.9-orig/src/define.h      2001-02-09 21:33:24.000000000 -0500
+++ Chromium-0.9/src/define.h   2007-07-02 09:56:25.000000000 -0400
@@ -51,7 +51,7 @@
 #ifdef PKGDATADIR
 #define CHROMIUM_DATA_DIR PKGDATADIR"/data"
 #else
-#define CHROMIUM_DATA_DIR "../data"
+#define CHROMIUM_DATA_DIR "@FINKPREFIX@/share/chromium"
 #endif //PKGDATADIR
 
 #endif // define_h
diff -ruN Chromium-0.9-orig/src/main.cpp Chromium-0.9/src/main.cpp
--- Chromium-0.9-orig/src/main.cpp      2001-05-20 21:48:37.000000000 -0400
+++ Chromium-0.9/src/main.cpp   2007-07-02 10:33:58.000000000 -0400
@@ -31,7 +31,7 @@
 
 #include "EnemyAircraft.h"
 
-static char dataDir[256] = "../data";
+static char dataDir[256] = "@FINKPREFIX@/share/chromium";
 
 //----------------------------------------------------------
 int main(int argc, char **argv)
@@ -121,7 +121,7 @@
                #ifdef macintosh
                strcpy(dataDir, "::data");      
                #else
-               strcpy(dataDir, "../data");     
+               strcpy(dataDir, "@FINKPREFIX@/share/chromium"); 
                #endif
                fprintf(stderr, "!!\n");
                fprintf(stderr, "!! WARNING - CHROMIUM_DATA environment 
variable is not set!\n");
diff -ruN Chromium-0.9-orig/support/glpng/src/Makefile 
Chromium-0.9/support/glpng/src/Makefile
--- Chromium-0.9-orig/support/glpng/src/Makefile        2001-02-08 
00:03:24.000000000 -0500
+++ Chromium-0.9/support/glpng/src/Makefile     2007-07-02 11:11:48.000000000 
-0400
@@ -11,7 +11,7 @@
 CXX    =       g++
 CFLAGS =       -pipe -O2
 CXXFLAGS=      -pipe -O2
-INCPATH        =       -I../include -I/usr/include -I/usr/X11R6/include
+INCPATH        =       -I../include -I/usr/include [EMAIL PROTECTED]@/include
 AR     =       ar cqs
 RANLIB =       
 MOC    =       $(QTDIR)/bin/moc

--- NEW FILE: chromium.info ---
Package: chromium
Version: 0.9.12
Revision: 3
Description: Fast paced, top-scrolling space shooter
License: Artistic
Maintainer: Hanspeter Niederstrasser <[EMAIL PROTECTED]>
Depends: <<
        libvorbis0-shlibs,
        openal-shlibs,
        sdl-shlibs,
        smpeg-shlibs
<<
BuildDepends: <<
        libvorbis0,
        openal,
        sdl,
        smpeg
<<
Source: mirror:sourceforge:%n-bsu/%n-src-%v.tar.gz
Source-MD5: 969883f2f20f10cd6cdb380582f130c4
Source2: mirror:sourceforge:%n-bsu/%n-data-%v.tar.gz
Source2-MD5:173fdf76f1e4d7496142cd5662456a73
SourceDirectory: Chromium-0.9
PatchScript: <<
/usr/bin/sed 's|@FINKPREFIX@|%p|g' <%a/%n.patch | /usr/bin/patch -p1
/usr/bin/perl -pi -e 's|GL/gl.h|OpenGL/gl.h|g' `/usr/bin/grep -lr GL/gl.h .`
/usr/bin/perl -pi -e 's|GL/glu.h|OpenGL/glu.h|g' 
src/{MainGL,MainSDL,TexFont}.cpp
<<
GCC: 4.0
CompileScript: <<
        ./configure --enable-sdl --enable-smpeg --enable-vorbis --disable-setup
        /usr/bin/make -w
<<
InstallScript: <<
        /usr/bin/install -d -m 755 %i/bin
        /usr/bin/install -d -m 755 %i/share
        /usr/bin/install -m 755 bin/%n %i/bin
        /bin/rm -rf data/CVS data/doc/CVS data/doc/images/CVS data/fonts/CVS 
data/png/CVS data/wav/CVS
        /bin/cp -R data %i/share/%n
<<      
DocFiles: AUTHORS CHANGES LICENSE README
RuntimeVars: <<
        CHROMIUM_DATA: %p/share/%n
<<
Homepage: http://www.reptilelabour.com/software/chromium/
DescDetail: <<
You are captain of the cargo ship Chromium B.S.U., responsible for delivering 
supplies to our troops on the front line. Your ship has a small fleet of 
robotic fighters which you control from the relative safety of the Chromium 
vessel. 

* Do not let ANY enemy ships get past your fighters! Each enemy ship that 
makes it past the bottom of the screen will attack the Chromium, and you lose 
a fighter.
* Use your fighters as weapons! Crash into enemies to destroy them before 
they can get past you. 
* Strategic suicide is a powerful tactic! When the Chromium launches a new 
fighter, it releases a high energy burst which destroys all enemies in range.
* Self-destruct to preserve your ammunition! A double-right-click will cause 
your current fighter to self-destruct. Before the ship blows up, it ejects its 
ammunition so that the next fighter can pick it up.
<<
DescUsage: <<
-f/--fullscreen     : run in fullscreen mode
-w/--window         : run in windowed mode
-v/--vidmode <mode> : mode 0 =  512 x  384
                    :      1 =  640 x  480
                    :      2 =  800 x  600
                    :      3 = 1024 x  768
                    :      4 = 1280 x 1024
na/--noaudio        : do not initialize audio
<<


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to