gtkpool stable port information

Package: gtkpool
Version: 0.5.0
Revision: 11
Architecture: powerpc
Distribution: 10.4
GCC: 3.3
###
Depends: gtk+-shlibs, glib-shlibs
BuildDepends: gtk+, glib, gettext-dev, gettext-bin, gettext-tools, gcc3.3
###
Source: http://gtkpool.seul.org/%n-%v.tar.gz
Source-MD5: 4d878374ab0cb25358d94d627e7f4062
###
PatchScript: <<
patch -p1 < %a/%n.patch
perl -pi -e "s;/usr/local;%p;" %n/application.cpp %n/options.cpp
<<
###
#ConfigureParams:
CompileScript: <<
export CC=gcc-3.3; export CXX=g++-3.3; ./configure %c
make CC=gcc-3.3 CXX=g++-3.3
<<
###
InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/share/doc/%n
cp %n/docs/en/*.html %i/share/doc/%n
<<
###
DocFiles: AUTHORS ChangeLog COPYING README TODO
###
Description: 2D pool game for GTK+
DescPackaging: <<
This version is compiled with g++-3.3, even in the 10.4 tree. If it is
ever updated to a more recent compiler, any packages which depend on
this one must be updated at the same time.
<<
DescDetail: <<
GTKPool is a 2D pool game for GTK featuring:
- 2-player support
- 8-ball play and rules
- 9-ball play and rules
- Rotation play, rules and scoring
- Customizable physics
- Choose from 4 different tables
Note: sound disabled on OS X pending libOSS port.
<<

###
License: GPL
Maintainer: Ben Hines
Homepage: http://gtkpool.seul.org/

gtkpool stable port .patch

--- gtkpool-0.5.0/gtkpool/sound.cpp.orig 2003-04-08 15:50:29.000000000 -0700
+++ gtkpool-0.5.0/gtkpool/sound.cpp 2003-04-08 16:29:16.000000000 -0700
@@ -20,7 +20,9 @@
#include
#include
#include
+#if !defined(__APPLE__)
#include
+#endif
#include
#include
#include
@@ -49,6 +51,7 @@

void play_sound(char *sound, int count)
{
+#if !defined(__APPLE__)
//int fragment = 0x20008;
if(!sound_enabled)
{
@@ -68,14 +71,19 @@
}

ioctl(audio_fd, SNDCTL_DSP_POST, 0);
+#endif
}

int load_sound(char *file, char *buffer, int *count)
{
+#if defined(__APPLE__)
+ return 0;
+#else
int fd = open(file, O_RDONLY);
*count = read(fd, buffer, *count);
close(fd);
return *count;
+#endif
}

void open_sound_device(char *name)
@@ -92,6 +100,9 @@

void configure_sound_device()
{
+#if defined(__APPLE__)
+ sound_enabled = false;
+#else
int fragment = 0x00020008;
int format = AFMT_U8;
int channels = 2;
@@ -111,4 +122,5 @@
}

sound_enabled = true;
+#endif
}

gtkpool _unstable_ port information

Package: gtkpool
Version: 0.5.0
Revision: 11
Architecture: powerpc
Distribution: 10.4
GCC: 3.3
###
Depends: gtk+-shlibs, glib-shlibs
BuildDepends: gtk+, glib, gettext-dev, gettext-bin, gettext-tools, gcc3.3
###
Source: http://gtkpool.seul.org/%n-%v.tar.gz
Source-MD5: 4d878374ab0cb25358d94d627e7f4062
###
PatchScript: <<
patch -p1 < %a/%n.patch
perl -pi -e "s;/usr/local;%p;" %n/application.cpp %n/options.cpp
<<
###
#ConfigureParams:
CompileScript: <<
export CC=gcc-3.3; export CXX=g++-3.3; ./configure %c
make CC=gcc-3.3 CXX=g++-3.3
<<
###
InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/share/doc/%n
cp %n/docs/en/*.html %i/share/doc/%n
<<
###
DocFiles: AUTHORS ChangeLog COPYING README TODO
###
Description: 2D pool game for GTK+
DescPackaging: <<
This version is compiled with g++-3.3, even in the 10.4 tree. If it is
ever updated to a more recent compiler, any packages which depend on
this one must be updated at the same time.
<<
DescDetail: <<
GTKPool is a 2D pool game for GTK featuring:
- 2-player support
- 8-ball play and rules
- 9-ball play and rules
- Rotation play, rules and scoring
- Customizable physics
- Choose from 4 different tables
Note: sound disabled on OS X pending libOSS port.
<<

###
License: GPL
Maintainer: Ben Hines
Homepage: http://gtkpool.seul.org/

gtkpool _unstable_ port .patch

--- gtkpool-0.5.0/gtkpool/sound.cpp.orig 2003-04-08 15:50:29.000000000 -0700
+++ gtkpool-0.5.0/gtkpool/sound.cpp 2003-04-08 16:29:16.000000000 -0700
@@ -20,7 +20,9 @@
#include
#include
#include
+#if !defined(__APPLE__)
#include
+#endif
#include
#include
#include
@@ -49,6 +51,7 @@

void play_sound(char *sound, int count)
{
+#if !defined(__APPLE__)
//int fragment = 0x20008;
if(!sound_enabled)
{
@@ -68,14 +71,19 @@
}

ioctl(audio_fd, SNDCTL_DSP_POST, 0);
+#endif
}

int load_sound(char *file, char *buffer, int *count)
{
+#if defined(__APPLE__)
+ return 0;
+#else
int fd = open(file, O_RDONLY);
*count = read(fd, buffer, *count);
close(fd);
return *count;
+#endif
}

void open_sound_device(char *name)
@@ -92,6 +100,9 @@

void configure_sound_device()
{
+#if defined(__APPLE__)
+ sound_enabled = false;
+#else
int fragment = 0x00020008;
int format = AFMT_U8;
int channels = 2;
@@ -111,4 +122,5 @@
}

sound_enabled = true;
+#endif
}