diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2010-01-28 08:32:28 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2010-01-28 08:32:28 +0800 |
commit | b25b86deb39231f5a4876b66359e2b74e9112bfe (patch) | |
tree | 586330fece5dcabef1f6e5ca29f8af12c4882c1a /games | |
parent | 9ff3ef39cf4b107bb6f3cb8f61e6853270c59a8d (diff) | |
download | freebsd-ports-gnome-b25b86deb39231f5a4876b66359e2b74e9112bfe.tar.gz freebsd-ports-gnome-b25b86deb39231f5a4876b66359e2b74e9112bfe.tar.zst freebsd-ports-gnome-b25b86deb39231f5a4876b66359e2b74e9112bfe.zip |
irrlamb is a 3D game that probably involves a lot of physics and
frustrating gameplay
WWW: http://code.google.com/p/irrlamb/
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/irrlamb/Makefile | 52 | ||||
-rw-r--r-- | games/irrlamb/distinfo | 3 | ||||
-rw-r--r-- | games/irrlamb/files/patch-SConstruct | 43 | ||||
-rw-r--r-- | games/irrlamb/pkg-descr | 4 | ||||
-rw-r--r-- | games/irrlamb/pkg-plist | 154 |
6 files changed, 257 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index d5a72c4c85e7..c4075afa162a 100644 --- a/games/Makefile +++ b/games/Makefile @@ -380,6 +380,7 @@ SUBDIR += ioquake3 SUBDIR += ioquake3-devel SUBDIR += iourbanterror + SUBDIR += irrlamb SUBDIR += ishido SUBDIR += ivan SUBDIR += jag diff --git a/games/irrlamb/Makefile b/games/irrlamb/Makefile new file mode 100644 index 000000000000..40c8b413a065 --- /dev/null +++ b/games/irrlamb/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: irrlamb +# Date created: 15 Jan 2010 +# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= irrlamb +PORTVERSION= 0.1.0 +CATEGORIES= games +MASTER_SITES= GOOGLE_CODE +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= 3D physics-based puzzle game + +LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3 +BUILD_DEPENDS= ${LOCALBASE}/lib/libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht +RUN_DEPENDS= ${LOCALBASE}/lib/libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht + +USE_LUA= 5.1+ +USE_SCONS= yes +MAKE_JOBS_SAFE= yes + +CPPPATH= ${LOCALBASE}/include ${LUA_INCDIR} +LIBPATH= ${LOCALBASE}/lib ${LUA_LIBDIR} + +WRKSRC= ${WRKDIR}/${PORTNAME} + +PORTDOCS= readme.txt changelog.txt + +DATA_DIRS= art campaigns collision fonts levels meshes scenes scripts textures + +post-patch: +.for dir in ${DATA_DIRS} + @${REINPLACE_CMD} -e 's|"\(${dir}/\)|"${DATADIR}/\1|' \ + ${WRKSRC}/src/*.cpp ${WRKSRC}/src/engine/*.cpp \ + ${WRKSRC}/src/objects/*.cpp ${WRKSRC}/meshes/*.irrmesh \ + ${WRKSRC}/scenes/*.irr +.endfor + @${FIND} ${WRKSRC} -name "*.bak" -delete + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/irrlamb ${PREFIX}/bin + ${MKDIR} ${DATADIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${DATADIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> diff --git a/games/irrlamb/distinfo b/games/irrlamb/distinfo new file mode 100644 index 000000000000..bc8ce0cb6e99 --- /dev/null +++ b/games/irrlamb/distinfo @@ -0,0 +1,3 @@ +MD5 (irrlamb-0.1.0-src.tar.gz) = 3b731174e6d269036085ec03cc3ad3f7 +SHA256 (irrlamb-0.1.0-src.tar.gz) = 2e700ab1ecd701bdc535361ab4dd620a345cda64671795a316e01a63b563edf1 +SIZE (irrlamb-0.1.0-src.tar.gz) = 1650269 diff --git a/games/irrlamb/files/patch-SConstruct b/games/irrlamb/files/patch-SConstruct new file mode 100644 index 000000000000..1ce9678ea173 --- /dev/null +++ b/games/irrlamb/files/patch-SConstruct @@ -0,0 +1,43 @@ +--- SConstruct.orig 2010-01-07 06:01:43.000000000 +0300 ++++ SConstruct 2010-01-15 22:36:00.000000000 +0300 +@@ -6,36 +6,19 @@ + import os + + # Create the environment +-env = Environment() +- +-# For multiprocessors +-SetOption("num_jobs", 4) ++env = Environment(ENV=os.environ, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems())) + + # Get the source files + SOURCES = glob.glob("src/*.cpp") + glob.glob("src/tinyxml/*.cpp") + glob.glob("src/objects/*.cpp") + glob.glob("src/engine/*.cpp") + glob.glob("src/bullet/BulletCollision/BroadphaseCollision/*.cpp") + glob.glob("src/bullet/BulletCollision/CollisionDispatch/*.cpp") + glob.glob("src/bullet/BulletCollision/CollisionShapes/*.cpp") + glob.glob("src/bullet/BulletCollision/NarrowPhaseCollision/*.cpp") + glob.glob("src/bullet/BulletDynamics/ConstraintSolver/*.cpp") + glob.glob("src/bullet/BulletDynamics/Dynamics/*.cpp") + glob.glob("src/bullet/LinearMath/*.cpp") + + # Compiler flags +-#env.Append(CCFLAGS=Split("-O0 -g3 -Wall")) +-if os.environ.has_key("CXXFLAGS"): +- env.Append(CCFLAGS=Split((os.environ["CXXFLAGS"]) + " -O2 -DNDEBUG")) +-else: +- env.Append(CCFLAGS=Split(" -O2 -DNDEBUG")) +- +-# Detect lua-5.1 name +-lua_name = "lua" +-lua_cpppath = "/usr/include" +-for path in ["/usr/include","/usr/local/include"]: +- if os.path.isdir(os.path.join(path,'lua5.1')): +- lua_name = "lua5.1" +- lua_cpppath = lua_cpppath + "/lua5.1" +- break ++env.Append(CCFLAGS=Split(" -DNDEBUG")) + + # Paths +-env.Append(CPPPATH=Split("./src/bullet " + lua_cpppath )) +-env.Append(LIBPATH="/usr/local/lib") ++env.Append(CPPPATH=Split("./src/bullet")) + + # Libraries +-env.Append(LIBS=Split("Irrlicht sqlite3 " + lua_name)) ++env.Append(LIBS=Split("Irrlicht sqlite3 lua")) + + # Build the program + irrlamb = env.Program("irrlamb", SOURCES) diff --git a/games/irrlamb/pkg-descr b/games/irrlamb/pkg-descr new file mode 100644 index 000000000000..bed7dc75d7c0 --- /dev/null +++ b/games/irrlamb/pkg-descr @@ -0,0 +1,4 @@ +irrlamb is a 3D game that probably involves a lot of physics and +frustrating gameplay + +WWW: http://code.google.com/p/irrlamb/ diff --git a/games/irrlamb/pkg-plist b/games/irrlamb/pkg-plist new file mode 100644 index 000000000000..296cd68696df --- /dev/null +++ b/games/irrlamb/pkg-plist @@ -0,0 +1,154 @@ +bin/irrlamb +%%DATADIR%%/art/button_100.png +%%DATADIR%%/art/button_128.png +%%DATADIR%%/art/button_80.png +%%DATADIR%%/art/button_dec.png +%%DATADIR%%/art/button_ff.png +%%DATADIR%%/art/button_fr.png +%%DATADIR%%/art/button_inc.png +%%DATADIR%%/art/button_pause.png +%%DATADIR%%/art/button_rewind.png +%%DATADIR%%/art/cursor.png +%%DATADIR%%/art/fade.png +%%DATADIR%%/art/logo.jpg +%%DATADIR%%/art/sheet_textbox0.png +%%DATADIR%%/art/sheet_textbox1.png +%%DATADIR%%/art/sheet_textbox2.png +%%DATADIR%%/campaigns/irrlamb.xml +%%DATADIR%%/collision/a_skate0.col +%%DATADIR%%/collision/a_skate1.col +%%DATADIR%%/collision/tut_cylinder0.col +%%DATADIR%%/collision/tut_cylinder1.col +%%DATADIR%%/collision/tut_hill0.col +%%DATADIR%%/collision/tut_jump0.col +%%DATADIR%%/collision/tut_jump1.col +%%DATADIR%%/collision/tut_jump2.col +%%DATADIR%%/collision/tut_jump3.col +%%DATADIR%%/collision/tut_jump4.col +%%DATADIR%%/collision/tut_move0.col +%%DATADIR%%/collision/tut_move1.col +%%DATADIR%%/collision/tut_move2.col +%%DATADIR%%/collision/tut_sphere0.col +%%DATADIR%%/fonts/font_large.png +%%DATADIR%%/fonts/font_large.xml +%%DATADIR%%/fonts/font_medium.png +%%DATADIR%%/fonts/font_medium.xml +%%DATADIR%%/fonts/font_small.png +%%DATADIR%%/fonts/font_small.xml +%%DATADIR%%/levels/a_skate0.xml +%%DATADIR%%/levels/a_skate1.xml +%%DATADIR%%/levels/icons/a_skate0.jpg +%%DATADIR%%/levels/icons/a_skate1.jpg +%%DATADIR%%/levels/icons/locked.png +%%DATADIR%%/levels/icons/tut_cylinder0.jpg +%%DATADIR%%/levels/icons/tut_cylinder1.jpg +%%DATADIR%%/levels/icons/tut_hill0.jpg +%%DATADIR%%/levels/icons/tut_jump0.jpg +%%DATADIR%%/levels/icons/tut_jump1.jpg +%%DATADIR%%/levels/icons/tut_jump2.jpg +%%DATADIR%%/levels/icons/tut_jump3.jpg +%%DATADIR%%/levels/icons/tut_jump4.jpg +%%DATADIR%%/levels/icons/tut_move0.jpg +%%DATADIR%%/levels/icons/tut_move1.jpg +%%DATADIR%%/levels/icons/tut_move2.jpg +%%DATADIR%%/levels/icons/tut_sphere0.jpg +%%DATADIR%%/levels/test.xml +%%DATADIR%%/levels/tut_cylinder0.xml +%%DATADIR%%/levels/tut_cylinder1.xml +%%DATADIR%%/levels/tut_hill0.xml +%%DATADIR%%/levels/tut_jump0.xml +%%DATADIR%%/levels/tut_jump1.xml +%%DATADIR%%/levels/tut_jump2.xml +%%DATADIR%%/levels/tut_jump3.xml +%%DATADIR%%/levels/tut_jump4.xml +%%DATADIR%%/levels/tut_move0.xml +%%DATADIR%%/levels/tut_move1.xml +%%DATADIR%%/levels/tut_move2.xml +%%DATADIR%%/levels/tut_sphere0.xml +%%DATADIR%%/meshes/a_skate0.irrmesh +%%DATADIR%%/meshes/a_skate1.irrmesh +%%DATADIR%%/meshes/cube.irrmesh +%%DATADIR%%/meshes/cylinder.irrmesh +%%DATADIR%%/meshes/skate_corner0.irrmesh +%%DATADIR%%/meshes/skate_corner1.irrmesh +%%DATADIR%%/meshes/skate_quarterpipe0.irrmesh +%%DATADIR%%/meshes/skate_rail0.irrmesh +%%DATADIR%%/meshes/skate_rail1.irrmesh +%%DATADIR%%/meshes/skate_ramp0.irrmesh +%%DATADIR%%/meshes/sphere.irrmesh +%%DATADIR%%/meshes/tut_cylinder0.irrmesh +%%DATADIR%%/meshes/tut_cylinder1.irrmesh +%%DATADIR%%/meshes/tut_hill0.irrmesh +%%DATADIR%%/meshes/tut_jump0.irrmesh +%%DATADIR%%/meshes/tut_jump1.irrmesh +%%DATADIR%%/meshes/tut_jump2.irrmesh +%%DATADIR%%/meshes/tut_jump3.irrmesh +%%DATADIR%%/meshes/tut_jump4.irrmesh +%%DATADIR%%/meshes/tut_move0.irrmesh +%%DATADIR%%/meshes/tut_move1.irrmesh +%%DATADIR%%/meshes/tut_move2.irrmesh +%%DATADIR%%/meshes/tut_sphere0.irrmesh +%%DATADIR%%/scenes/a_skate0.irr +%%DATADIR%%/scenes/a_skate1.irr +%%DATADIR%%/scenes/tut_cylinder0.irr +%%DATADIR%%/scenes/tut_cylinder0_lm.png +%%DATADIR%%/scenes/tut_cylinder1.irr +%%DATADIR%%/scenes/tut_cylinder1_lm.png +%%DATADIR%%/scenes/tut_hill0.irr +%%DATADIR%%/scenes/tut_jump0.irr +%%DATADIR%%/scenes/tut_jump0_lm.png +%%DATADIR%%/scenes/tut_jump1.irr +%%DATADIR%%/scenes/tut_jump1_lm.png +%%DATADIR%%/scenes/tut_jump2.irr +%%DATADIR%%/scenes/tut_jump2_lm.png +%%DATADIR%%/scenes/tut_jump3.irr +%%DATADIR%%/scenes/tut_jump3_lm.png +%%DATADIR%%/scenes/tut_jump4.irr +%%DATADIR%%/scenes/tut_jump4_lm.png +%%DATADIR%%/scenes/tut_move0.irr +%%DATADIR%%/scenes/tut_move0_lm.png +%%DATADIR%%/scenes/tut_move1.irr +%%DATADIR%%/scenes/tut_move1_lm.png +%%DATADIR%%/scenes/tut_move2.irr +%%DATADIR%%/scenes/tut_sphere0.irr +%%DATADIR%%/scenes/tut_sphere0_lm.png +%%DATADIR%%/scripts/a_skate0.lua +%%DATADIR%%/scripts/a_skate1.lua +%%DATADIR%%/scripts/default.lua +%%DATADIR%%/scripts/tut_cylinder0.lua +%%DATADIR%%/scripts/tut_cylinder1.lua +%%DATADIR%%/scripts/tut_hill0.lua +%%DATADIR%%/scripts/tut_jump0.lua +%%DATADIR%%/scripts/tut_jump1.lua +%%DATADIR%%/scripts/tut_jump2.lua +%%DATADIR%%/scripts/tut_jump3.lua +%%DATADIR%%/scripts/tut_jump4.lua +%%DATADIR%%/scripts/tut_move0.lua +%%DATADIR%%/scripts/tut_move1.lua +%%DATADIR%%/scripts/tut_move2.lua +%%DATADIR%%/scripts/tut_sphere0.lua +%%DATADIR%%/textures/blue.jpg +%%DATADIR%%/textures/brick0.jpg +%%DATADIR%%/textures/checker0.png +%%DATADIR%%/textures/concrete0.jpg +%%DATADIR%%/textures/crate0.jpg +%%DATADIR%%/textures/dark0.jpg +%%DATADIR%%/textures/grass0.jpg +%%DATADIR%%/textures/orb_glow0.png +%%DATADIR%%/textures/orb_outer0.png +%%DATADIR%%/textures/player_glow0.png +%%DATADIR%%/textures/player_outer0.png +%%DATADIR%%/textures/player_trail0.png +%%DATADIR%%/textures/tiles0.jpg +%%DATADIR%%/textures/woodfloor0.jpg +@dirrm %%DATADIR%%/textures +@dirrm %%DATADIR%%/scripts +@dirrm %%DATADIR%%/scenes +@dirrm %%DATADIR%%/meshes +@dirrm %%DATADIR%%/levels/icons +@dirrm %%DATADIR%%/levels +@dirrm %%DATADIR%%/fonts +@dirrm %%DATADIR%%/collision +@dirrm %%DATADIR%%/campaigns +@dirrm %%DATADIR%%/art +@dirrm %%DATADIR%% |