summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrytzz <krytzz@soylent.eu>2010-02-05 22:54:11 +0100
committerkrytzz <krytzz@soylent.eu>2010-02-05 22:54:11 +0100
commit74e5c02dc54cdac2f0caa18400c6733632b3e9bf (patch)
tree14af826d1207903353ff6503416d29e681a50fe9 /games-puzzle
parent[games-arcade/tuxanci] Remove -> In main tree. (diff)
parentadded ~amd64 keyword for box2d (diff)
downloadgamerlay-74e5c02dc54cdac2f0caa18400c6733632b3e9bf.tar.gz
gamerlay-74e5c02dc54cdac2f0caa18400c6733632b3e9bf.tar.bz2
gamerlay-74e5c02dc54cdac2f0caa18400c6733632b3e9bf.zip
Merge branch 'devel'
Conflicts: profiles/repo_name
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/hex-a-hop/Manifest2
-rw-r--r--games-puzzle/hex-a-hop/hex-a-hop-1.1.0.ebuild21
-rw-r--r--games-puzzle/laserreaction/Manifest7
-rw-r--r--games-puzzle/laserreaction/files/laserreaction-1.0-includes.patch55
-rw-r--r--games-puzzle/laserreaction/files/laserreaction-1.0-makefile.patch33
-rw-r--r--games-puzzle/laserreaction/files/laserreaction-1.0-misc.patch53
-rw-r--r--games-puzzle/laserreaction/files/laserreaction-1.0-sound.patch498
-rw-r--r--games-puzzle/laserreaction/laserreaction-1.0.ebuild49
-rw-r--r--games-puzzle/laserreaction/metadata.xml9
-rw-r--r--games-puzzle/numptyphysics/Manifest3
-rw-r--r--games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch102
-rw-r--r--games-puzzle/numptyphysics/metadata.xml9
-rw-r--r--games-puzzle/numptyphysics/numptyphysics-142.ebuild48
-rw-r--r--games-puzzle/polly-b-gone/Manifest6
-rw-r--r--games-puzzle/polly-b-gone/files/1.0-Makefile.patch118
-rw-r--r--games-puzzle/polly-b-gone/files/1.0-libs.patch279
-rw-r--r--games-puzzle/polly-b-gone/files/polly-b-gone.pngbin0 -> 5350 bytes
-rw-r--r--games-puzzle/polly-b-gone/metadata.xml9
-rw-r--r--games-puzzle/polly-b-gone/polly-b-gone-1.0.ebuild54
-rw-r--r--games-puzzle/transitmania/Manifest3
-rw-r--r--games-puzzle/transitmania/metadata.xml9
-rw-r--r--games-puzzle/transitmania/transitmania-1.0.ebuild44
22 files changed, 1411 insertions, 0 deletions
diff --git a/games-puzzle/hex-a-hop/Manifest b/games-puzzle/hex-a-hop/Manifest
new file mode 100644
index 0000000..4b7521b
--- /dev/null
+++ b/games-puzzle/hex-a-hop/Manifest
@@ -0,0 +1,2 @@
+DIST hex-a-hop-1.1.0.tar.gz 9249269 RMD160 af89e8da428d8b79e71a77b9750a10b1b303b9e4 SHA1 5e1994caaa4974ba87bb5676aed1e44c81dec85d SHA256 80bf19d936a8430cab5bc468ee6827c38052e026c609eb7ece16317e7932a0d6
+EBUILD hex-a-hop-1.1.0.ebuild 516 RMD160 d3e5f7d3eec56e1b5b24a1a61958ef87c7af4d4b SHA1 47c555bfbbc1ac03542d065ba09fec9c4d5d3735 SHA256 a706fa3d9901d058ff6250572e99686610d8bd2d347baad770a3b439a8c61f1c
diff --git a/games-puzzle/hex-a-hop/hex-a-hop-1.1.0.ebuild b/games-puzzle/hex-a-hop/hex-a-hop-1.1.0.ebuild
new file mode 100644
index 0000000..909f8b7
--- /dev/null
+++ b/games-puzzle/hex-a-hop/hex-a-hop-1.1.0.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: games-puzzle/hex-a-hop-1.1.0.ebuild,v 1.0 2010/01/20 09:41:34 by frostwork Exp $
+
+EAPI="2"
+
+MY_PN=hexahop
+inherit games
+
+DESCRIPTION="a hexagonal tile-based puzzle game"
+HOMEPAGE="http://hexahop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-pango"
+DEPEND="${RDEPEND}"
diff --git a/games-puzzle/laserreaction/Manifest b/games-puzzle/laserreaction/Manifest
new file mode 100644
index 0000000..c1ed1b7
--- /dev/null
+++ b/games-puzzle/laserreaction/Manifest
@@ -0,0 +1,7 @@
+AUX laserreaction-1.0-includes.patch 1314 RMD160 445366783638d27721feb79d0df1050da6951e5f SHA1 8afb747e9d6473d17a51e0ad9724a19aa6079260 SHA256 3e8a568889775d1969d695f7f8360ae9e4d795b5e0102e90b56dbd455318cac3
+AUX laserreaction-1.0-makefile.patch 831 RMD160 36519e831614bc44fe70164a32b5b72452d13de8 SHA1 621ac55ff342cf644b79e0fa972c23ed4f219c05 SHA256 c55e28b2def9e6213703a836c5475ab3ef8d074cb209206a53dde084f49fc4b8
+AUX laserreaction-1.0-misc.patch 1484 RMD160 92084d9db315e89c94fa92917977c25fa2132a32 SHA1 88127b9dfb3f8be7cf78719ae120f2da60d6cd2e SHA256 d5928cf98f26c0e772d9a134f431d5650442f89138eccff7ff219c35e9d341f2
+AUX laserreaction-1.0-sound.patch 11210 RMD160 b836ace016d8802bf29768eb0586ee76ec42b86a SHA1 c81047015ab4f005b9c3bb96aaf8a1bde627e8f2 SHA256 bbef4065cad329cac7601cf99517d1f161217e2d406e26863bb08d229e90d72a
+DIST LD10.zip 2478110 RMD160 20ad21a40e48a6294026aae7774cd0980feb7cf9 SHA1 f44293b42feedf5d76c17e96adcdc7eac560733c SHA256 85bb26c4e394bf9d0c4c5bdd38430bd2ad6d0d2d5317059253cfc8e8b5c8c398
+EBUILD laserreaction-1.0.ebuild 1117 RMD160 884f3137846c37aa0819751c164a52a478331df1 SHA1 3bfc12d939ca2aa7055b7092bc8d2cf6f7839019 SHA256 038dd72b8294f57050622953064d6b716a88005dd436db0ff423bcc4746ff25c
+MISC metadata.xml 249 RMD160 220cde0fc1a8d7d355705f0f6772bd8d77cdc17a SHA1 34b33eb8d24cd8bfef2ddfb8e80334fd77cc9488 SHA256 3875fd5008d7f5bfe7f3cf7bf330c209a5034f5988d37c1699fb3be35a7be906
diff --git a/games-puzzle/laserreaction/files/laserreaction-1.0-includes.patch b/games-puzzle/laserreaction/files/laserreaction-1.0-includes.patch
new file mode 100644
index 0000000..c48a7c3
--- /dev/null
+++ b/games-puzzle/laserreaction/files/laserreaction-1.0-includes.patch
@@ -0,0 +1,55 @@
+diff -Naur Font.cpp Font.cpp
+--- Font.cpp 2009-10-02 12:17:55.000000000 +0200
++++ Font.cpp 2009-10-02 12:28:33.000000000 +0200
+@@ -1,6 +1,7 @@
+ #include "Font.h"
+-#include <windows.h>
+-#include <gl/gl.h>
++//#include <windows.h>
++#include <GL/gl.h>
++#include <cstring>
+ Font::Font()
+ {
+ mScale = 1.0f;
+diff -Naur Game.h Game.h
+--- Game.h 2009-10-02 12:17:55.000000000 +0200
++++ Game.h 2009-10-02 12:26:36.000000000 +0200
+@@ -1,12 +1,12 @@
+ #pragma once
+-#include <sdl.h>
++#include <SDL/SDL.h>
+ #ifdef WIN32
+ #include <windows.h>
+ #endif
+-#include <gl/gl.h>
+-#include <il/il.h>
+-#include <il/ilu.h>
+-#include <il/ilut.h>
++#include <GL/gl.h>
++#include <IL/il.h>
++#include <IL/ilu.h>
++#include <IL/ilut.h>
+ #include "Timer.h"
+ #include "Button.h"
+ #include "FileIO.h"
+diff -Naur Main.cpp Main.cpp
+--- Main.cpp 2009-10-02 12:17:55.000000000 +0200
++++ Main.cpp 2009-10-02 12:26:47.000000000 +0200
+@@ -1,6 +1,6 @@
+ #include "Game.h"
+ #include <iostream>
+-#include <tchar.h>
++//#include <tchar.h>
+ /*=================================*/
+ /*= Main Entry =*/
+ /*=================================*/
+diff -Naur Timer.h Timer.h
+--- Timer.h 2009-10-02 12:17:55.000000000 +0200
++++ Timer.h 2009-10-02 12:26:12.000000000 +0200
+@@ -1,5 +1,5 @@
+ #pragma once
+-#include <sdl.h>
++#include <SDL/SDL.h>
+ class Timer
+ {
+ private:
diff --git a/games-puzzle/laserreaction/files/laserreaction-1.0-makefile.patch b/games-puzzle/laserreaction/files/laserreaction-1.0-makefile.patch
new file mode 100644
index 0000000..66461cd
--- /dev/null
+++ b/games-puzzle/laserreaction/files/laserreaction-1.0-makefile.patch
@@ -0,0 +1,33 @@
+diff -Naur Makefile Makefile
+--- Makefile 1970-01-01 01:00:00.000000000 +0100
++++ Makefile 2009-10-02 12:20:08.000000000 +0200
+@@ -0,0 +1,29 @@
++CPP = g++
++CFLAGS = -O2 -g -Wno-deprecated
++INCLUDES = -I/usr/include/ -I./ -I/usr/include/GL
++LDFLAGS = -lGL -lGLU -lILUT -ILU -lIL -lfmod
++
++DEST = .
++
++LD = gcc
++
++SDL_LDFLAGS = $(shell sdl-config --libs)
++SDL_CFLAGS = $(shell sdl-config --cflags) $(CFLAGS)
++
++MAKEFILE = Makefile
++
++OBJS = Button.o Font.o Game.o Main.o Sound.o Timer.o
++PRINT = pr
++
++PROGRAM = ../LaserReaction/laserreaction
++
++SHELL = /bin/sh
++
++%.o: %.cpp
++ $(CPP) $(INCLUDES) $(CFLAGS) -c $<
++all: $(PROGRAM)
++
++$(PROGRAM): $(OBJS) $(LIBS)
++ @echo "Linking $(PROGRAM) ..."
++ $(LD) -o $(PROGRAM) $(OBJS) $(LDFLAGS) $(SDL_LDFLAGS)
++
diff --git a/games-puzzle/laserreaction/files/laserreaction-1.0-misc.patch b/games-puzzle/laserreaction/files/laserreaction-1.0-misc.patch
new file mode 100644
index 0000000..5ceda8b
--- /dev/null
+++ b/games-puzzle/laserreaction/files/laserreaction-1.0-misc.patch
@@ -0,0 +1,53 @@
+diff -Naur Game.cpp Game.cpp
+--- Game.cpp 2009-10-02 12:17:55.000000000 +0200
++++ Game.cpp 2009-10-02 12:33:33.000000000 +0200
+@@ -58,7 +58,7 @@
+ LoadStage();
+
+ printf("Loading music\n");
+- InitializeSoundSystem();
++ InitFmod();
+ if(!music.Load("Data/LD10.mp3",true))
+ {
+ printf("Failed to load LD10.mp3\n");
+@@ -115,6 +115,12 @@
+ return true;
+ }
+
++void Game::InitFmod()
++{
++ FSOUND_Init(44100, 32, 0);
++}
++
++
+ /*===========================================================*/
+ /*= Pump =*/
+ /*===========================================================*/
+diff -Naur Game.h Game.h
+--- Game.h 2009-10-02 12:26:36.000000000 +0200
++++ Game.h 2009-10-02 12:31:26.000000000 +0200
+@@ -1,3 +1,4 @@
++#define ILUT_USE_OPENGL
+ #pragma once
+ #include <SDL/SDL.h>
+ #ifdef WIN32
+@@ -68,6 +69,7 @@
+
+ unsigned int LoadImage(char* name, unsigned int& w, unsigned int& h);
+ void SetOrtho(int w, int h);
++ void InitFmod();
+ void BindTexture(unsigned int id);
+ void RenderGame(const float interp);
+ void RenderTile(TileMap t, int frame, int x, int y, int w, int h);
+diff -Naur Main.cpp Main.cpp
+--- Main.cpp 2009-10-02 12:26:47.000000000 +0200
++++ Main.cpp 2009-10-02 12:31:46.000000000 +0200
+@@ -4,7 +4,7 @@
+ /*=================================*/
+ /*= Main Entry =*/
+ /*=================================*/
+-int _tmain(int argc, _TCHAR* argv[])
++int main(int argc, char* argv[])
+ {
+ Game* pGame = new Game(true);
+ //delete pGame;
diff --git a/games-puzzle/laserreaction/files/laserreaction-1.0-sound.patch b/games-puzzle/laserreaction/files/laserreaction-1.0-sound.patch
new file mode 100644
index 0000000..9163261
--- /dev/null
+++ b/games-puzzle/laserreaction/files/laserreaction-1.0-sound.patch
@@ -0,0 +1,498 @@
+diff -Naur Sound.cpp Sound.cpp
+--- Sound.cpp 2009-10-02 12:17:55.000000000 +0200
++++ Sound.cpp 2009-10-02 12:23:34.000000000 +0200
+@@ -1,375 +1,109 @@
+ #include "Sound.h"
+-#if SOUND_SYSTEM == USE_FMODEX
+-FMOD_RESULT result;
+-FMOD::System *pSystem;
+-#endif
+-void InitializeSoundSystem()
+-{
+-//#if SOUND_SYSTEM == USE_BASS
+-//#else
+-//#endif
+-#if SOUND_SYSTEM == USE_FMODEX
+- result = FMOD::System_Create(&pSystem); // Create the main system object.
+- if (result != FMOD_OK)
+- {
+- return;
+- }
+-
+- result = pSystem->init(100, FMOD_INIT_NORMAL, 0); // Initialize FMOD.
+- if (result != FMOD_OK)
+- {
+- return;
+- }
+-#elif SOUND_SYSTEM == USE_BASS
+- if (BASS_Init(-1,44100,BASS_DEVICE_SPEAKERS,0,NULL)==FALSE)
+- {
+- return;
+- }
+-#else
+- FSOUND_Init(44100, 96, 0);
+-#endif
+-}
+-void ShutDownSoundSystem()
+-{
+-#if SOUND_SYSTEM == USE_FMODEX
+- pSystem->close();
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_Free();
+-#else
+- FSOUND_Close();
+-#endif
+-}
+-void UpdateSoundSystem()
+-{
+-#if SOUND_SYSTEM == USE_FMODEX
+- pSystem->update();
+-#endif
+-}
+-void SoundSystemPause(bool paused)
+-{
+-#if SOUND_SYSTEM == USE_BASS
+- paused?
+- BASS_Pause(): BASS_Start();
+-#endif
+-}
+
+-void SetGlobalVolume(int music, int sfx)
++void Sound::Volume(int channel,int vol)
+ {
+-#if SOUND_SYSTEM == USE_BASS
+- BASS_SetConfig(BASS_CONFIG_GVOL_SAMPLE,sfx);
+- BASS_SetConfig(BASS_CONFIG_GVOL_MUSIC,music);
+-#endif
+-}
+-void StopAllSound()
+-{
+-#if SOUND_SYSTEM == USE_BASS
+- BASS_Stop();
+- SoundSystemPause(false);
+-#endif
++ FSOUND_SetVolume(channel,vol);
+ }
+-
+-
+-
+ bool Sample::Load(char* sound, bool loop)
+ {
+-#if SOUND_SYSTEM == USE_FMODEX
+- if(loop)
+- pSystem->createSound(sound,FMOD_2D | FMOD_LOOP_NORMAL,NULL,&pSample);
+- else
+- pSystem->createSound(sound,FMOD_2D,NULL,&pSample);
+- if(pSample == 0)
+- {
+- return false;
+- }
+-#elif SOUND_SYSTEM == USE_BASS
+- if(loop)
+- pSample = BASS_SampleLoad(FALSE,sound,0,0,1,BASS_SAMPLE_LOOP);
+- else
+- pSample = BASS_SampleLoad(FALSE,sound,0,0,1,0);
+- if(pSample == 0)
+- {
+- return false;
+- }
+-#else
+ if(loop)
+ {
+ if((pSample = FSOUND_Sample_Load(FSOUND_FREE,sound,FSOUND_NORMAL | FSOUND_LOOP_NORMAL,0,0))==0)
+ {
+- return false;
++ printf("Failed to load sample: %s\n",sound);
++ return false;
+ }
+ }
+ else
+ {
+ if((pSample = FSOUND_Sample_Load(FSOUND_FREE,sound,FSOUND_NORMAL | FSOUND_LOOP_OFF,0,0))==0)
+ {
++ printf("Failed to load sample: %s\n",sound);
+ return false;
+ }
+ }
+-#endif
+ return true;
+ }
+ int Sample::Play()
+ {
+ if(pSample)
+-#if SOUND_SYSTEM == USE_FMODEX
+- {
+- FMOD::Channel* c;
+- pSystem->playSound(FMOD_CHANNEL_FREE,pSample,false,&c);
+- c->getIndex(&miChannelID);
+- return miChannelID;
+- }
+-#elif SOUND_SYSTEM == USE_BASS
+- {
+- BASS_ChannelPlay(BASS_SampleGetChannel(pSample,FALSE),TRUE);
+- }
+-#else
+ return(FSOUND_PlaySound(FSOUND_FREE,pSample));
+-#endif
+ return -1;
+ }
+ void Sample::Play(int channel)
+ {
+ if(pSample)
+-#if SOUND_SYSTEM == USE_FMODEX
+- {
+-// FMOD::Channel* c;
+-// pSystem->getChannel(channel,&c);
+- pSystem->playSound((FMOD_CHANNELINDEX)(channel),pSample,false,NULL);
+- miChannelID = channel;
+- }
+-#elif SOUND_SYSTEM == USE_BASS
+- {
+- Stop(0);
+- BASS_ChannelPlay(BASS_SampleGetChannel(pSample,FALSE),FALSE);
+- }
+-#else
+ FSOUND_PlaySound(channel,pSample);
+-#endif
+ }
+ void Sample::Stop(int channel)
+ {
+-#if SOUND_SYSTEM == USE_FMODEX
+- FMOD::Channel* c;
+- pSystem->getChannel(miChannelID,&c);
+- c->stop();
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_SampleStop(pSample);
+-#else
+ FSOUND_StopSound(channel);
+-#endif
+ }
+ void Sample::Discard()
+ {
+ if(pSample)
+-#if SOUND_SYSTEM == USE_FMODEX
+- pSample->release();
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_SampleFree(pSample);
+-#else
+ FSOUND_Sample_Free(pSample);
+-#endif
+ // pSample = 0;
+ }
+ void Sample::SetFrequency(int channel,int frequency)
+ {
+-#if SOUND_SYSTEM == USE_FMODEX
+ FSOUND_SetFrequency(channel,frequency);
+-#endif
+ }
+ void Sample::SetDefaults(int deffreq, int defvol, int defpan, int defpri, int varfreq, int varvol, int varpan)
+ {
+-#if SOUND_SYSTEM == USE_FMODEX
+ FSOUND_Sample_SetDefaultsEx(pSample,deffreq,defvol,defpan,defpri,varfreq,varvol,varpan);
+-#endif
+ }
+-void Sample::Volume(int channel,int vol)
+-{
+-#if SOUND_SYSTEM == USE_FMODEX
+- FSOUND_SetVolume(channel,vol);
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_ChannelSetAttributes(pSample,-1,vol,-101);
+-#endif
+-}
+-//================================================================================================//
+- /***********************
+- ** streams **
+- ************************/
+-//================================================================================================//
+ bool Stream::Load(char* stream, bool loop)
+ {
+- if((pStream = BASS_StreamCreateFile(FALSE,stream, 0, 0, loop? BASS_SAMPLE_LOOP:0))==0)
+- {
+- return false;
+- }
+- return true;
+-}
+-int Stream::Play()
+-{
+- BASS_ChannelPlay(pStream,true);
+- return 0;
+-}
+-void Stream::Play(int channel)
+-{
+- if(pStream)
+- {
+- if(BASS_ChannelPlay(pStream,false)==FALSE)
+- printf("Failed to play\n");
+-
+- }
+-}
+-void Stream::Stop(int channel)
+-{
+- BASS_ChannelStop(pStream);
+-}
+-void Stream::Discard()
+-{
+- BASS_StreamFree(pStream);
+-}
+-void Stream::Volume(int channel,int vol)
+-{
+- BASS_ChannelSetAttributes(pStream,-1,vol,-101);
+-}
+-//================================================================================================//
+- /***********************
+- ** modules **
+- ************************/
+-//================================================================================================//
+-bool Track::Load(char* stream, bool loop)
+-{
+-#if SOUND_SYSTEM == USE_FMODEX
+- if(loop)
+- pSystem->createSound(stream,FMOD_2D | FMOD_LOOP_NORMAL,NULL,&pStream);
+- else
+- pSystem->createSound(stream,FMOD_2D | FMOD_ACCURATETIME,NULL,&pStream);
+- if(pStream == 0)
+- {
+- return false;
+- }
+-#elif SOUND_SYSTEM == USE_BASS
+ if(loop)
+- pStream = BASS_MusicLoad(FALSE,stream,0,0,BASS_SAMPLE_LOOP,0);
+- else
+- pStream = BASS_MusicLoad(FALSE,stream,0,0,0,0);
+- if(pStream == 0)
+ {
+- return false;
+- }
+-#else
+- if(loop)
+- {
+- if((pStream = FMUSIC_LoadSong(stream))==0)
++ if((pStream = FSOUND_Stream_Open(stream,FSOUND_NORMAL | FSOUND_LOOP_NORMAL,0,0))==0)
+ {
++ printf("Failed to load sample: %s\n",stream);
+ return false;
+ }
+- FMUSIC_SetLooping(pStream,true);
+ }
+ else
+ {
+- if((pStream = FMUSIC_LoadSong(stream))==0)
++ if((pStream = FSOUND_Stream_Open(stream,FSOUND_NORMAL,0,0))==0)
+ {
++ printf("Failed to load sample: %s\n",stream);
+ return false;
+ }
+- FMUSIC_SetLooping(pStream,false);
+ }
+-#endif
+ return true;
+ }
+-int Track::Play()
++int Stream::Play()
+ {
+ if(pStream)
+- {
+-#if SOUND_SYSTEM == USE_FMODEX
+- FMOD::Channel* c;
+- pSystem->playSound(FMOD_CHANNEL_FREE,pStream,false,&c);
+- c->getIndex(&miChannelID);
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_ChannelPlay(pStream,true);
+-#else
+- miChannelID = FMUSIC_PlaySong(pStream);
+-#endif
+- return miChannelID;
+- }
++ return(FSOUND_Stream_Play(FSOUND_FREE,pStream));
+ return -1;
+ }
+-void Track::Play(int channel)
++void Stream::Play(int channel)
+ {
+ if(pStream)
+- {
+-#if SOUND_SYSTEM == USE_FMODEX
+- // FMOD::Channel* c;
+- // pSystem->getChannel(channel,&c);
+- pSystem->playSound((FMOD_CHANNELINDEX)(channel),pStream,false,NULL);
+-// pSystem->playSound(FMOD_CHANNEL_REUSE,pStream,false,&c);
+- miChannelID = channel;
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_ChannelPlay(pStream,true);
+-#else
+- miChannelID = FMUSIC_PlaySong(pStream);
+-#endif
+- }
++ FSOUND_Stream_Play(channel,pStream);
++// return(FSOUND_Stream_Play(channel,pStream));
++// return -1;
+ }
+-void Track::Stop(int i)
++void Stream::Stop(int channel)
+ {
+ if(pStream)
+-#if SOUND_SYSTEM == USE_FMODEX
+- {
+- FMOD::Channel* c;
+- pSystem->getChannel(miChannelID,&c);
+- c->stop();
+- }
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_ChannelStop(pStream);
+-#else
+- FMUSIC_StopSong(pStream);
+-#endif
++ FSOUND_Stream_Stop(pStream);
+ }
+-void Track::Discard()
++void Stream::Discard()
+ {
+ if(pStream)
+-#if SOUND_SYSTEM == USE_FMODEX
+- pStream->release();
+-#elif SOUND_SYSTEM == USE_BASS
+- BASS_MusicFree(pStream);
+-#else
+- FMUSIC_FreeSong(pStream);
+-#endif
++ FSOUND_Stream_Close(pStream);
+ pStream = 0;
+ }
+-bool Track::IsFinished()
+-{
+- if(pStream)
+- {
+-#if SOUND_SYSTEM == USE_FMODEX
+- FMOD::Channel* c;
+- pSystem->getChannel(miChannelID,&c);
+- bool playing;
+- c->isPlaying(&playing);
+- if(!playing)
+-#elif SOUND_SYSTEM == USE_BASS
+- if(BASS_ChannelIsActive(pStream) == BASS_ACTIVE_STOPPED)
+-#else
+- if(FMUSIC_IsFinished(pStream))
+-#endif
+- return true;
+- }
+- return false;
+-}
+-bool Track::IsPlaying()
++void Stream::Seek(int ms, int channel)
+ {
+ if(pStream)
+ {
+-#if SOUND_SYSTEM == USE_FMODEX
+- FMOD::Channel* c;
+- pSystem->getChannel(miChannelID,&c);
+- bool playing;
+- c->isPlaying(&playing);
+- if(playing)
+-#elif SOUND_SYSTEM == USE_BASS
+- if(BASS_ChannelIsActive(pStream) == BASS_ACTIVE_PLAYING)
+-#else
+- if(FMUSIC_IsPlaying(pStream))
+-#endif
+- return true;
++ FSOUND_Stream_Play(channel,pStream);
++ FSOUND_SetPaused(channel,true);
++ FSOUND_Stream_SetTime(pStream,ms);
++ FSOUND_SetPaused(channel,false);
+ }
+- return false;
+ }
+\ Kein Zeilenumbruch am Dateiende.
+diff -Naur Sound.h Sound.h
+--- Sound.h 2009-10-02 12:17:55.000000000 +0200
++++ Sound.h 2009-10-02 12:23:34.000000000 +0200
+@@ -1,25 +1,7 @@
+ #pragma once
+-//#define USE_FMODEX
+-#define USE_FMODEX 0
+-#define USE_FMOD 2
+-#define USE_BASS 1
+-
+-#define SOUND_SYSTEM USE_BASS
+-#if SOUND_SYSTEM == USE_FMODEX
+-#include <FMODEX/fmod.hpp>
+-#elif SOUND_SYSTEM == USE_BASS
+-#include <bass.h>
+-#else
+-#include <FMOD/fmod.h>
+-#endif
++#include <fmod.h>
+ #include <stdio.h>
+
+-void InitializeSoundSystem();
+-void ShutDownSoundSystem();
+-void UpdateSoundSystem();
+-void SetGlobalVolume(int music, int sfx);
+-void SoundSystemPause(bool paused);
+-void StopAllSound();
+ class Sound
+ {
+ public:
+@@ -27,9 +9,7 @@
+ virtual int Play()=0;//returns channel
+ virtual void Stop(int channel)=0;
+ virtual void Discard()=0;
+- virtual void Volume(int channel,int vol)=0;
+-
+- int miChannelID;
++ void Volume(int channel,int vol);
+ };
+
+
+@@ -45,49 +25,20 @@
+ void Discard();
+ void SetFrequency(int channel,int frequency);
+ void SetDefaults(int deffreq, int defvol, int defpan, int defpri, int varfreq, int varvol, int varpan);
+- void Volume(int channel,int vol);
+ private:
+-#if SOUND_SYSTEM == USE_FMODEX
+- FMOD::Sound * pSample;
+-#elif SOUND_SYSTEM == USE_BASS
+- HSAMPLE pSample;
+-#else
+ FSOUND_SAMPLE* pSample;
+-#endif
+ };
+-
+ class Stream : public Sound
+ {
+ public:
+ Stream(){pStream = 0;}
++// ~Stream(){ Discard(); }
+ bool Load(char* sound, bool loop);
+ int Play();
+ void Play(int channel);
+ void Stop(int channel);
+ void Discard();
+- void Volume(int channel,int vol);
+-private:
+- HSTREAM pStream;
+-};
+-
+-class Track : public Sound
+-{
+-public:
+- Track(){pStream = 0;}
+- bool Load(char* sound, bool loop);
+- int Play();
+- void Play(int channel);
+- void Stop(int i);
+- void Discard();
+- bool IsFinished();
+- bool IsPlaying();
+- void Volume(int channel,int vol);
++ void Seek(int ms, int channel);
+ private:
+-#if SOUND_SYSTEM == USE_FMODEX
+- FMOD::Sound* pStream;
+-#elif SOUND_SYSTEM == USE_BASS
+- HMUSIC pStream;
+-#else
+- FMUSIC_MODULE* pStream;
+-#endif
++ FSOUND_STREAM* pStream;
+ };
diff --git a/games-puzzle/laserreaction/laserreaction-1.0.ebuild b/games-puzzle/laserreaction/laserreaction-1.0.ebuild
new file mode 100644
index 0000000..e501081
--- /dev/null
+++ b/games-puzzle/laserreaction/laserreaction-1.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="laser game entry for ludum dare 10"
+HOMEPAGE="http://xout.blackened-interactive.com/OldGames.html"
+SRC_URI="http://xout.blackened-interactive.com/dump/new/LD10.zip"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl
+ media-libs/devil
+ =media-libs/fmod-3*"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/LD10/Src
+
+src_prepare(){
+ edos2unix *.{cpp,h}
+ epatch ${FILESDIR}/"${P}-makefile.patch"
+ epatch ${FILESDIR}/"${P}-includes.patch"
+ epatch ${FILESDIR}/"${P}-misc.patch"
+ epatch ${FILESDIR}/"${P}-sound.patch"
+ sed -i -e "s:Data/:"${GAMES_DATADIR}"/"${PN}"/:g" -i Game.cpp
+
+}
+
+src_install() {
+ dogamesbin ../LaserReaction/${PN} || die "dogamesbin ${PN} failed"
+
+ local datadir="${GAMES_DATADIR}"/"${PN}"
+ dodir ${datadir}
+ insinto "${datadir}"
+ doins -r ../LaserReaction/Data/* || die "doins resources failed"
+ make_desktop_entry "${PN}" "${PN}"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+}
diff --git a/games-puzzle/laserreaction/metadata.xml b/games-puzzle/laserreaction/metadata.xml
new file mode 100644
index 0000000..4e4714e
--- /dev/null
+++ b/games-puzzle/laserreaction/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>frostworks@gmx.de</email>
+ <name>Marcel Unbehaun</name>
+</maintainer>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-puzzle/numptyphysics/Manifest b/games-puzzle/numptyphysics/Manifest
new file mode 100644
index 0000000..aee91a6
--- /dev/null
+++ b/games-puzzle/numptyphysics/Manifest
@@ -0,0 +1,3 @@
+AUX numptyphysics-142-ownbox2d.patch 3871 RMD160 ef753719ba2fca07956e5ed93339c936c9374ed8 SHA1 9c31636a0dbdf10015a34e48a40243ceed56e5d8 SHA256 65eb3debe59925bd45788861fee5db7405d87c89de8115840454cc00adfc616f
+EBUILD numptyphysics-142.ebuild 1060 RMD160 0b4cfa62fa3e33818ed94e096e87517e1e97defd SHA1 e0d00f0f5970042098babe91cd65b7e331bff10a SHA256 61408b5bb3aaf19fd2dcf2bbdc6ac38a84984eb39639cbdac5af2bae694d06ee
+MISC metadata.xml 249 RMD160 220cde0fc1a8d7d355705f0f6772bd8d77cdc17a SHA1 34b33eb8d24cd8bfef2ddfb8e80334fd77cc9488 SHA256 3875fd5008d7f5bfe7f3cf7bf330c209a5034f5988d37c1699fb3be35a7be906
diff --git a/games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch b/games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch
new file mode 100644
index 0000000..1974966
--- /dev/null
+++ b/games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch
@@ -0,0 +1,102 @@
+diff -Naur trunkO/Makefile.am trunkO-p/Makefile.am
+--- trunkO/Makefile.am 2009-10-12 17:31:07.000000000 +0200
++++ trunkO-p/Makefile.am 2009-10-12 18:25:01.000000000 +0200
+@@ -1,6 +1,6 @@
+ bin_PROGRAMS = numptyphysics
+-noinst_LIBRARIES = libbox2d.a
+-INCLUDES = -IBox2D/Include
++noinst_LIBRARIES =
++INCLUDES = -I/usr/include/Box2D/
+
+ numptyphysicsdir = $(datadir)/numptyphysics
+
+@@ -33,7 +33,7 @@
+ OsWin32.cpp
+
+ numptyphysics_CPPFLAGS = -IXX $(SDL_CFLAGS) $(HILDON_CFLAGS)
+-numptyphysics_LDADD = libbox2d.a $(SDL_LIBS) $(HILDON_LIBS)
++numptyphysics_LDADD = -lbox2d $(SDL_LIBS) $(HILDON_LIBS)
+
+ numptyphysics_DATA = \
+ data/C01_Tutorial.npz \
+@@ -47,37 +47,3 @@
+ data/theend.png \
+ data/femkeklaver.ttf
+
+-
+-libbox2d_a_SOURCES = \
+- Box2D/Source/Collision/b2Distance.cpp \
+- Box2D/Source/Collision/b2TimeOfImpact.cpp \
+- Box2D/Source/Collision/b2CollideCircle.cpp \
+- Box2D/Source/Collision/b2CollidePoly.cpp \
+- Box2D/Source/Collision/Shapes/b2PolygonShape.cpp \
+- Box2D/Source/Collision/Shapes/b2CircleShape.cpp \
+- Box2D/Source/Collision/Shapes/b2Shape.cpp \
+- Box2D/Source/Collision/b2PairManager.cpp \
+- Box2D/Source/Collision/b2Collision.cpp \
+- Box2D/Source/Collision/b2BroadPhase.cpp \
+- Box2D/Source/Dynamics/b2WorldCallbacks.cpp \
+- Box2D/Source/Dynamics/Joints/b2PrismaticJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2MouseJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2GearJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2Joint.cpp \
+- Box2D/Source/Dynamics/Joints/b2PulleyJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2DistanceJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2RevoluteJoint.cpp \
+- Box2D/Source/Dynamics/Contacts/b2CircleContact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2Contact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2PolyContact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2ContactSolver.cpp \
+- Box2D/Source/Dynamics/b2Island.cpp \
+- Box2D/Source/Dynamics/b2Body.cpp \
+- Box2D/Source/Dynamics/b2ContactManager.cpp \
+- Box2D/Source/Dynamics/b2World.cpp \
+- Box2D/Source/Common/b2BlockAllocator.cpp \
+- Box2D/Source/Common/b2StackAllocator.cpp \
+- Box2D/Source/Common/b2Settings.cpp \
+- Box2D/Source/Common/b2Math.cpp
+-
+diff -Naur trunkO/Makefile.in trunkO-p/Makefile.in
+--- trunkO/Makefile.in 2009-10-12 17:31:07.000000000 +0200
++++ trunkO-p/Makefile.in 2009-10-12 18:16:05.000000000 +0200
+@@ -87,7 +87,7 @@
+ numptyphysics-OsWin32.$(OBJEXT)
+ numptyphysics_OBJECTS = $(am_numptyphysics_OBJECTS)
+ am__DEPENDENCIES_1 =
+-numptyphysics_DEPENDENCIES = libbox2d.a $(am__DEPENDENCIES_1) \
++numptyphysics_DEPENDENCIES = -lbox2d $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
+ DEFAULT_INCLUDES = -I.@am__isrc@
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+@@ -97,8 +97,8 @@
+ CXXLD = $(CXX)
+ CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+ -o $@
+-SOURCES = $(libbox2d_a_SOURCES) $(numptyphysics_SOURCES)
+-DIST_SOURCES = $(libbox2d_a_SOURCES) $(numptyphysics_SOURCES)
++SOURCES = $(numptyphysics_SOURCES)
++DIST_SOURCES = $(numptyphysics_SOURCES)
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+ am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+@@ -230,8 +230,8 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-noinst_LIBRARIES = libbox2d.a
+-INCLUDES = -IBox2D/Include
++noinst_LIBRARIES =
++INCLUDES = -I/usr/include/Box2D
+ numptyphysicsdir = $(datadir)/numptyphysics
+ desktopentry_DATA = data/numptyphysics.desktop
+ serviceentry_DATA = data/numptyphysics.service
+@@ -261,7 +261,7 @@
+ OsWin32.cpp
+
+ numptyphysics_CPPFLAGS = -IXX $(SDL_CFLAGS) $(HILDON_CFLAGS)
+-numptyphysics_LDADD = libbox2d.a $(SDL_LIBS) $(HILDON_LIBS)
++numptyphysics_LDADD = -lbox2d $(SDL_LIBS) $(HILDON_LIBS)
+ numptyphysics_DATA = \
+ data/C01_Tutorial.npz \
+ data/C10_Standard.npz \
diff --git a/games-puzzle/numptyphysics/metadata.xml b/games-puzzle/numptyphysics/metadata.xml
new file mode 100644
index 0000000..4e4714e
--- /dev/null
+++ b/games-puzzle/numptyphysics/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>frostworks@gmx.de</email>
+ <name>Marcel Unbehaun</name>
+</maintainer>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-puzzle/numptyphysics/numptyphysics-142.ebuild b/games-puzzle/numptyphysics/numptyphysics-142.ebuild
new file mode 100644
index 0000000..55c320a
--- /dev/null
+++ b/games-puzzle/numptyphysics/numptyphysics-142.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit games subversion
+
+ESVN_REPO_URI="https://garage.maemo.org/svn/numptyphysics/trunk"
+if [[ "$PV" != "9999" ]] ; then
+ ESVN_REVISION="$PV"
+fi
+
+DESCRIPTION="a drawing puzzle game in the spirit of Crayon Physics using the same excellent Box2D engine"
+HOMEPAGE="http://numptyphysics.garage.maemo.org/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image[png]
+ media-libs/sdl-ttf
+ x11-libs/libX11
+ dev-libs/box2d
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch ${FILESDIR}/"${P}-ownbox2d.patch"
+ sed -i -e "s:/usr/share/numptyphysics:"${GAMES_DATADIR}"/"${PN}"/:g" -i Config.h || die 'sed failed'
+}
+
+src_configure() {
+ egamesconf --disable-hildon || die "egamesconf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ doicon data/icon64/${PN}.png
+ make_desktop_entry "${PN}" "${PN}"
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_postinst
+}
diff --git a/games-puzzle/polly-b-gone/Manifest b/games-puzzle/polly-b-gone/Manifest
new file mode 100644
index 0000000..d698ce5
--- /dev/null
+++ b/games-puzzle/polly-b-gone/Manifest
@@ -0,0 +1,6 @@
+AUX 1.0-Makefile.patch 2257 RMD160 d234ae074a6d1bb47b64cd35e3cae702bc35be1f SHA1 e49914b1450e4f48d02582d4f38766bb793f933f SHA256 f51bbab7b372c3729b0f758b917ade00938cf96b9a36018e7c4924daadfcf5d8
+AUX 1.0-libs.patch 6666 RMD160 fce9ddbe7b675164b7bf9b76deb9a66c29d01589 SHA1 a6fb94751d10a565c47082c978955a98c4068c3c SHA256 54c1823b1f2fbb92c201a40eb6108525b9a3e521a0888f23a86c21b10a79f8e2
+AUX polly-b-gone.png 5350 RMD160 2beeef9c6e7da07a10c42f48000940010eb4c36d SHA1 8c76b00ae386ecfadd568871ad4ecab47766e850 SHA256 2df9f1ff3793ed8a7b185328b645605ffd120afc9d41f470d7ff8485ae07bc9a
+DIST polly-src.zip 8063970 RMD160 05f4948a3d50787b58d1028c4bd28b5e501b64bf SHA1 92c2b59f8dc47e0128827a175faf231d8157b457 SHA256 fd21cbfcc39e0f3a8fe342f30bc7788a77559f2d98cbf1f9156cae81717f5470
+EBUILD polly-b-gone-1.0.ebuild 1191 RMD160 1cb218816ffe896f06aa17c86915dc004c4fa290 SHA1 3925607f5be123ab27c9546b00f3a34b7740180d SHA256 c590bdcf31f18f642ae0dcf78e004d2d8f78e2a0fbeba0466766898fd634c260
+MISC metadata.xml 249 RMD160 220cde0fc1a8d7d355705f0f6772bd8d77cdc17a SHA1 34b33eb8d24cd8bfef2ddfb8e80334fd77cc9488 SHA256 3875fd5008d7f5bfe7f3cf7bf330c209a5034f5988d37c1699fb3be35a7be906
diff --git a/games-puzzle/polly-b-gone/files/1.0-Makefile.patch b/games-puzzle/polly-b-gone/files/1.0-Makefile.patch
new file mode 100644
index 0000000..e6b9bd4
--- /dev/null
+++ b/games-puzzle/polly-b-gone/files/1.0-Makefile.patch
@@ -0,0 +1,118 @@
+diff -Naur polly-src.old/Makefile polly-src/Makefile
+--- polly-src.old/Makefile 2008-12-05 09:09:00.000000000 +0100
++++ polly-src/Makefile 2009-03-27 18:35:21.000000000 +0100
+@@ -1,3 +1,6 @@
++MACHINE= $(shell uname -s)
++
++ifeq ($(MACHINE),Darwin)
+ CXXFLAGS = \
+ -O2 \
+ -I/System/Library/Frameworks/GLUT.framework/Headers \
+@@ -25,7 +28,28 @@
+ resources/*.vert \
+ resources/world.xml
+
++else
++LIBS = \
++ `sdl-config --cflags` \
++ -I/usr/include \
++ -lGLU \
++ -lGL \
++ -lGLEW \
++ -lglut \
++ -lSDL \
++ -lSDL_image \
++ -lSDL_mixer \
++ -ltinyxml
++
++endif
++
++ifeq ($(MACHINE),Darwin)
+ all : obj/Polly-B-Gone.app
++else
++all : obj/polly-b-gone
++endif
++
++ifeq ($(MACHINE),Darwin)
+
+ obj/main.out : \
+ obj/ball.o \
+@@ -66,6 +90,48 @@
+ obj/worlds.o \
+ SDLMain.m
+
++else
++
++obj/main.out : \
++ obj/ball.o \
++ obj/block.o \
++ obj/escalator.o \
++ obj/fan.o \
++ obj/lighting.o \
++ obj/material.o \
++ obj/model.o \
++ obj/physics/constraint.o \
++ obj/physics/force.o \
++ obj/physics/particle.o \
++ obj/physics/rotation.o \
++ obj/physics/shape.o \
++ obj/physics/transform.o \
++ obj/physics/translation.o \
++ obj/physics/vector.o \
++ obj/player.o \
++ obj/portal.o \
++ obj/ramp.o \
++ obj/resource.o \
++ obj/room.o \
++ obj/room_force.o \
++ obj/room_object.o \
++ obj/rotating.o \
++ obj/seesaw.o \
++ obj/shader.o \
++ obj/simulation.o \
++ obj/sound.o \
++ obj/switch.o \
++ obj/texture.o \
++ obj/trail.o \
++ obj/transforming.o \
++ obj/translating.o \
++ obj/tube.o \
++ obj/wall.o \
++ obj/world.o \
++ obj/worlds.o
++
++endif
++
+ obj/physics/particle_test.out : \
+ obj/physics/force.o \
+ obj/physics/particle.o \
+@@ -79,6 +145,8 @@
+ obj/physics/vector_test.out : \
+ obj/physics/vector.o
+
++ifeq ($(MACHINE),Darwin)
++
+ obj/Polly-B-Gone.app : obj/main.out $(RESOURCES) resources/Info.plist Makefile
+ rm -rf $@
+ mkdir -p $@/Contents/MacOS
+@@ -94,6 +162,11 @@
+ find $@/Contents/Frameworks -name Headers | xargs rm -r
+ # ln -sf ../../../../resources/world.xml $@/Contents/Resources/world.xml
+
++else
++obj/polly-b-gone : obj/main.out
++ mv obj/main.out polly-b-gone
++endif
++
+ physics/%.run : obj/physics/%.out
+ ./$<
+
+@@ -101,7 +174,7 @@
+ ./$<
+
+ obj/%.out : obj/%.o
+- $(CXX) $(LDFLAGS) -o $@ $^
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ obj/%.o : %.cpp
+ mkdir -p $(@D)
diff --git a/games-puzzle/polly-b-gone/files/1.0-libs.patch b/games-puzzle/polly-b-gone/files/1.0-libs.patch
new file mode 100644
index 0000000..3002846
--- /dev/null
+++ b/games-puzzle/polly-b-gone/files/1.0-libs.patch
@@ -0,0 +1,279 @@
+diff -Naur polly-src.old/lighting.h polly-src/lighting.h
+--- polly-src.old/lighting.h 2008-11-17 23:01:00.000000000 +0100
++++ polly-src/lighting.h 2009-03-27 17:37:14.000000000 +0100
+@@ -2,9 +2,11 @@
+
+ #ifndef MBOSTOCK_LIGHTING_H
+ #define MBOSTOCK_LIGHTING_H
+-
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
+-
++#else
++ #include <GL/gl.h>
++#endif
+ namespace mbostock {
+
+ class Light {
+diff -Naur polly-src.old/main.cpp polly-src/main.cpp
+--- polly-src.old/main.cpp 2008-12-05 06:36:00.000000000 +0100
++++ polly-src/main.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,11 +1,23 @@
+ // -*- C++ -*-
+
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
+ #include <OpenGL/glu.h>
++#else
++ #include <GL/gl.h>
++ #include <GL/glu.h>
++ #include <GL/glut.h>
++#endif
++
+ #include <SDL/SDL.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++
++#ifdef __APPLE__
+ #include <TinyXML/tinyxml.h>
++#else
++ #include <tinyxml.h>
++#endif
+
+ #include "room.h"
+ #include "shader.h"
+@@ -192,6 +204,11 @@
+ }
+
+ int main(int argc, char** argv) {
++
++#ifndef __APPLE__
++ glutInit(&argc, argv);
++#endif
++
+ SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);
+
+ SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
+diff -Naur polly-src.old/material.cpp polly-src/material.cpp
+--- polly-src.old/material.cpp 2008-12-01 23:33:00.000000000 +0100
++++ polly-src/material.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,6 +1,9 @@
+ // -*- C++ -*-
+-
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
++#else
++ #include <GL/gl.h>
++#endif
+ #include <iostream>
+ #include <math.h>
+ #include <stdlib.h>
+diff -Naur polly-src.old/model.cpp polly-src/model.cpp
+--- polly-src.old/model.cpp 2008-12-01 23:33:00.000000000 +0100
++++ polly-src/model.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,7 +1,11 @@
+ // -*- C++ -*-
+-
++#ifdef __APPLE__
+ #include <GLUT/glut.h>
+ #include <OpenGL/glu.h>
++#else
++ #include <GL/glut.h>
++ #include <GL/glu.h>
++#endif
+ #include <algorithm>
+ #include <iostream>
+ #include <math.h>
+diff -Naur polly-src.old/model.h polly-src/model.h
+--- polly-src.old/model.h 2008-12-01 23:33:00.000000000 +0100
++++ polly-src/model.h 2009-03-27 17:37:14.000000000 +0100
+@@ -2,9 +2,11 @@
+
+ #ifndef MBOSTOCK_MODEL_H
+ #define MBOSTOCK_MODEL_H
+-
++#ifdef __APPLE__
+ #include <OpenGL/glu.h>
+-
++#else
++ #include <GL/glu.h>
++#endif
+ #include "physics/shape.h"
+ #include "physics/vector.h"
+
+diff -Naur polly-src.old/player.cpp polly-src/player.cpp
+--- polly-src.old/player.cpp 2008-12-02 05:44:00.000000000 +0100
++++ polly-src/player.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,8 +1,13 @@
+ // -*- C++ -*-
+-
++#ifdef __APPLE__
+ #include <GLUT/glut.h>
+ #include <OpenGL/gl.h>
+ #include <OpenGL/glu.h>
++#else
++ #include <GL/glut.h>
++ #include <GL/gl.h>
++ #include <GL/glu.h>
++#endif
+ #include <iostream>
+ #include <math.h>
+ #include <stdio.h>
+diff -Naur polly-src.old/resource.cpp polly-src/resource.cpp
+--- polly-src.old/resource.cpp 2008-11-16 20:52:00.000000000 +0100
++++ polly-src/resource.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -9,7 +9,11 @@
+ using namespace mbostock;
+
+ const char* Resources::path() {
++#ifdef __APPLE__
+ return "Contents/Resources/";
++#else
++ return "resources/";
++#endif
+ }
+
+ const char* Resources::readFile(const char* p) {
+diff -Naur polly-src.old/seesaw.cpp polly-src/seesaw.cpp
+--- polly-src.old/seesaw.cpp 2008-12-02 11:08:00.000000000 +0100
++++ polly-src/seesaw.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,7 +1,9 @@
+ // -*- C++ -*-
+-
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
+-
++#else
++ #include <GL/gl.h>
++#endif
+ #include "material.h"
+ #include "physics/constraint.h"
+ #include "physics/force.h"
+diff -Naur polly-src.old/shader.cpp polly-src/shader.cpp
+--- polly-src.old/shader.cpp 2008-12-02 10:01:00.000000000 +0100
++++ polly-src/shader.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -2,6 +2,10 @@
+
+ #include <stdlib.h>
+
++#ifndef __APPLE__
++#include <GL/glew.h>
++#endif
++
+ #include "model.h"
+ #include "resource.h"
+ #include "shader.h"
+diff -Naur polly-src.old/shader.h polly-src/shader.h
+--- polly-src.old/shader.h 2008-12-02 10:01:00.000000000 +0100
++++ polly-src/shader.h 2009-03-27 17:37:14.000000000 +0100
+@@ -3,7 +3,11 @@
+ #ifndef _SHADER_H
+ #define _SHADER_H
+
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
++#else
++ #include <GL/gl.h>
++#endif
+
+ namespace mbostock {
+
+diff -Naur polly-src.old/simulation.cpp polly-src/simulation.cpp
+--- polly-src.old/simulation.cpp 2008-11-07 07:02:00.000000000 +0100
++++ polly-src/simulation.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,6 +1,10 @@
+ // -*- C++ -*-
+
++#ifdef __APPLE_
+ #include <SDL/sdl.h>
++#else
++ #include <SDL/SDL.h>
++#endif
+
+ #include "simulation.h"
+
+diff -Naur polly-src.old/sound.cpp polly-src/sound.cpp
+--- polly-src.old/sound.cpp 2008-12-05 06:36:00.000000000 +0100
++++ polly-src/sound.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,7 +1,13 @@
+ // -*- C++ -*-
+
++#ifdef __APPLE__
+ #include <SDL/SDL_error.h>
+ #include <SDL_mixer/SDL_mixer.h>
++#else
++#include <SDL/SDL_error.h>
++#include <SDL/SDL_mixer.h>
++#endif
++
+ #include <iostream>
+ #include <string>
+ #include <vector>
+diff -Naur polly-src.old/texture.cpp polly-src/texture.cpp
+--- polly-src.old/texture.cpp 2008-11-27 07:14:00.000000000 +0100
++++ polly-src/texture.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,9 +1,17 @@
+ // -*- C++ -*-
+
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
+ #include <OpenGL/glu.h>
+ #include <SDL/sdl.h>
+ #include <SDL_image/SDL_image.h>
++#else
++#include <GL/gl.h>
++#include <GL/glu.h>
++#include <SDL/SDL.h>
++#include <SDL/SDL_image.h>
++#endif
++
+ #include <iostream>
+ #include <string>
+ #include <vector>
+diff -Naur polly-src.old/texture.h polly-src/texture.h
+--- polly-src.old/texture.h 2008-11-27 07:14:00.000000000 +0100
++++ polly-src/texture.h 2009-03-27 17:37:14.000000000 +0100
+@@ -2,9 +2,11 @@
+
+ #ifndef MBOSTOCK_TEXTURE_H
+ #define MBOSTOCK_TEXTURE_H
+-
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
+-
++#else
++ #include <GL/gl.h>
++#endif
+ namespace mbostock {
+
+ class Texture {
+diff -Naur polly-src.old/world.cpp polly-src/world.cpp
+--- polly-src.old/world.cpp 2008-12-05 01:41:00.000000000 +0100
++++ polly-src/world.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,6 +1,10 @@
+ // -*- C++ -*-
+
++#ifdef __APPLE__
+ #include <OpenGL/gl.h>
++#else
++ #include <GL/gl.h>
++#endif
+
+ #include "material.h"
+ #include "portal.h"
+diff -Naur polly-src.old/worlds.cpp polly-src/worlds.cpp
+--- polly-src.old/worlds.cpp 2008-12-05 06:36:00.000000000 +0100
++++ polly-src/worlds.cpp 2009-03-27 17:37:14.000000000 +0100
+@@ -1,4 +1,12 @@
++#ifdef __APPLE__
+ #include <TinyXML/tinyxml.h>
++#else
++#ifndef TIXML_USE_STL
++#define TIXML_USE_STL
++#endif
++#include <tinyxml.h>
++#endif
++
+ #include <iostream>
+ #include <list>
+ #include <map>
diff --git a/games-puzzle/polly-b-gone/files/polly-b-gone.png b/games-puzzle/polly-b-gone/files/polly-b-gone.png
new file mode 100644
index 0000000..cffcd3e
--- /dev/null
+++ b/games-puzzle/polly-b-gone/files/polly-b-gone.png
Binary files differ
diff --git a/games-puzzle/polly-b-gone/metadata.xml b/games-puzzle/polly-b-gone/metadata.xml
new file mode 100644
index 0000000..4e4714e
--- /dev/null
+++ b/games-puzzle/polly-b-gone/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>frostworks@gmx.de</email>
+ <name>Marcel Unbehaun</name>
+</maintainer>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-puzzle/polly-b-gone/polly-b-gone-1.0.ebuild b/games-puzzle/polly-b-gone/polly-b-gone-1.0.ebuild
new file mode 100644
index 0000000..4e2bbcf
--- /dev/null
+++ b/games-puzzle/polly-b-gone/polly-b-gone-1.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="a 3D physics platform game - won the grand prize in the 10th annual CS 248 video game competition!"
+HOMEPAGE="http://cs.stanford.edu/people/mbostock/polly/"
+SRC_URI="http://graphics.stanford.edu/~mbostock/polly-src.zip"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ virtual/opengl
+ media-libs/sdl-image
+ media-libs/glew
+ media-libs/freeglut
+ dev-libs/tinyxml
+ media-libs/sdl-mixer"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN/b-gone/src}
+
+src_prepare(){
+ epatch "${FILESDIR}"/"${PV}"-libs.patch \
+ "${FILESDIR}"/"${PV}"-Makefile.patch
+
+ cd "${S}"
+ sed -i -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:" -i resource.cpp
+
+}
+
+src_install() {
+ dogamesbin ${PN} || die "dogamesbin ${PN} failed"
+
+ local datadir="${GAMES_DATADIR}"/"${PN}"
+ dodir ${datadir}
+ insinto "${datadir}"
+ doins -r resources || die "doins resources failed"
+
+ newicon "${FILESDIR}"/"${PN}.png" "${PN}.png"
+ make_desktop_entry "${PN}" "${PN}"
+ dodoc README* || die
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+}
+
diff --git a/games-puzzle/transitmania/Manifest b/games-puzzle/transitmania/Manifest
new file mode 100644
index 0000000..6f081f0
--- /dev/null
+++ b/games-puzzle/transitmania/Manifest
@@ -0,0 +1,3 @@
+DIST transitmania-1.0.tar.gz 887356 RMD160 ba87f43587bd3fbb3c789af228387b48e7d2937c SHA1 bf5a5bb14e10b64e8a1f5a0d35b882dcb06797b0 SHA256 8f306e287b3a2edddc17e2ccbc2d183c2b3d0952a98075aa5bf21c5fa566f87b
+EBUILD transitmania-1.0.ebuild 1010 RMD160 d705f379b1e69bfc0334dc4b516e7090e64d8053 SHA1 7ef9ba278632f87487a64a4195237a16050f5a0a SHA256 ae34560a9c6325053b3d6277efaf9312004000beb9c2f2fb68832cfe25d47dee
+MISC metadata.xml 249 RMD160 220cde0fc1a8d7d355705f0f6772bd8d77cdc17a SHA1 34b33eb8d24cd8bfef2ddfb8e80334fd77cc9488 SHA256 3875fd5008d7f5bfe7f3cf7bf330c209a5034f5988d37c1699fb3be35a7be906
diff --git a/games-puzzle/transitmania/metadata.xml b/games-puzzle/transitmania/metadata.xml
new file mode 100644
index 0000000..4e4714e
--- /dev/null
+++ b/games-puzzle/transitmania/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>frostworks@gmx.de</email>
+ <name>Marcel Unbehaun</name>
+</maintainer>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-puzzle/transitmania/transitmania-1.0.ebuild b/games-puzzle/transitmania/transitmania-1.0.ebuild
new file mode 100644
index 0000000..2bd0f02
--- /dev/null
+++ b/games-puzzle/transitmania/transitmania-1.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit games
+
+DESCRIPTION="a puzzle game that slihtly resembles the old Pipemania classic game"
+HOMEPAGE="http://transit-mania.sourceforge.net"
+# temporary SRC_URI - contacted the autthor, if he wants to host the file on his sf page
+SRC_URI="http://frostworx.de/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="media-libs/allegro"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i -e "s:data1.dat:"${GAMES_DATADIR}"/"${PN}"/data1.dat:g" -i main.c
+ sed -i -e "s:data2.dat:"${GAMES_DATADIR}"/"${PN}"/data2.dat:g" -i main.c
+}
+
+src_compile() {
+ emake || die "make failed"
+}
+
+src_install() {
+ local datadir="${GAMES_DATADIR}"/${PN}
+ insinto "${datadir}"
+ doins *.dat || die "data install failed"
+ exeinto "${GAMES_DATADIR}"/${PN}
+ dogamesbin ${PN}
+ make_desktop_entry "${PN}" "${PN}"
+ dodoc readme.txt
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+} \ No newline at end of file