summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <mrpouet@gentoo.org>2009-08-21 11:30:57 +0200
committerRomain Perier <mrpouet@gentoo.org>2009-08-21 11:30:57 +0200
commit69aff8438c234152ffe354ef2b308adbc12d58a0 (patch)
tree68791a55491a9f92ab7d6e4bf14315aaba9a78e0 /games-puzzle
parent(devel/games-arcade/edgar) initial edgar-0.25.ebuild (diff)
downloadgamerlay-69aff8438c234152ffe354ef2b308adbc12d58a0.tar.gz
gamerlay-69aff8438c234152ffe354ef2b308adbc12d58a0.tar.bz2
gamerlay-69aff8438c234152ffe354ef2b308adbc12d58a0.zip
Moved devel/* to ./
Diffstat (limited to 'games-puzzle')
-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
6 files changed, 466 insertions, 0 deletions
diff --git a/games-puzzle/polly-b-gone/Manifest b/games-puzzle/polly-b-gone/Manifest
new file mode 100644
index 0000000..c8f645a
--- /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 b81f59fb2d0349bab8406830b26f1b1e08301be6 SHA1 3e1e02e1a7c3d628a48b78b8904d447ee324f265 SHA256 cbae2b9404b3f190ff011ce453e0c2482e7a2b16492e22fca216f588a89d3988
+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..aa152eb
--- /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-util/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
+}
+