From owner-svn-ports-all@FreeBSD.ORG Sat Dec 21 00:43:39 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6FB04C6E; Sat, 21 Dec 2013 00:43:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 505E81892; Sat, 21 Dec 2013 00:43:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBL0hdIj034921; Sat, 21 Dec 2013 00:43:39 GMT (envelope-from amdmi3@svn.freebsd.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBL0hce0034918; Sat, 21 Dec 2013 00:43:38 GMT (envelope-from amdmi3@svn.freebsd.org) Message-Id: <201312210043.rBL0hce0034918@svn.freebsd.org> From: Dmitry Marakasov Date: Sat, 21 Dec 2013 00:43:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337111 - in head/games/irrlamb: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Dec 2013 00:43:39 -0000 Author: amdmi3 Date: Sat Dec 21 00:43:38 2013 New Revision: 337111 URL: http://svnweb.freebsd.org/changeset/ports/337111 Log: - Support staging - Fix build on 10.x Added: head/games/irrlamb/files/patch-src-objects-orb.cpp (contents, props changed) head/games/irrlamb/files/patch-src-objects-player.cpp (contents, props changed) Modified: head/games/irrlamb/Makefile Modified: head/games/irrlamb/Makefile ============================================================================== --- head/games/irrlamb/Makefile Sat Dec 21 00:40:04 2013 (r337110) +++ head/games/irrlamb/Makefile Sat Dec 21 00:43:38 2013 (r337111) @@ -17,21 +17,20 @@ RUN_DEPENDS= ${LOCALBASE}/lib/libIrrlich USE_LUA= 5.1+ USE_SCONS= yes -USE_DOS2UNIX= src/engine/save.h +USES= scons dos2unix +DOS2UNIX_FILES= src/engine/save.h src/objects/orb.cpp src/objects/player.cpp CPPPATH= ${LOCALBASE}/include ${LUA_INCDIR} LIBPATH= ${LOCALBASE}/lib ${LUA_LIBDIR} WRKSRC= ${WRKDIR}/${PORTNAME} -PORTDOCS= readme.txt changelog.txt -PORTDATA= * - PLIST_FILES= bin/${PORTNAME} +PORTDOCS= * +PORTDATA= * DATA_DIRS= art campaigns collision fonts levels meshes scenes scripts textures -NO_STAGE= yes .include post-patch: @@ -44,14 +43,9 @@ post-patch: @${FIND} ${WRKSRC} -name "*.bak" -delete do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/irrlamb ${PREFIX}/bin -.if !defined(NOPORTDATA) - ${MKDIR} ${DATADIR} - cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${DATADIR} -.endif -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/irrlamb ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${STAGEDIR}${DATADIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} readme.txt changelog.txt ${STAGEDIR}${DOCSDIR}/ .include Added: head/games/irrlamb/files/patch-src-objects-orb.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/irrlamb/files/patch-src-objects-orb.cpp Sat Dec 21 00:43:38 2013 (r337111) @@ -0,0 +1,20 @@ +--- src/objects/orb.cpp.orig 2013-12-19 22:19:20.406056087 +0400 ++++ src/objects/orb.cpp 2013-12-19 22:19:55.234053221 +0400 +@@ -40,7 +40,7 @@ + else + Node->setMaterialTexture(0, irrDriver->getTexture("/home/amdmi3/projects/freebsd/ports/games/irrlamb/prefix/share/irrlamb/textures/orb_outer0.png")); + Node->setMaterialType(EMT_ONETEXTURE_BLEND); +- Node->getMaterial(0).MaterialTypeParam = pack_texureBlendFunc(EBF_ONE, EBF_ONE); ++ Node->getMaterial(0).MaterialTypeParam = pack_textureBlendFunc(EBF_ONE, EBF_ONE); + + // Create glow + //GlowColor = SColor(255, 255, 240, 130); +@@ -50,7 +50,7 @@ + InnerNode->setMaterialFlag(EMF_LIGHTING, false); + InnerNode->setMaterialFlag(EMF_ZBUFFER, false); + InnerNode->setMaterialType(EMT_ONETEXTURE_BLEND); +- InnerNode->getMaterial(0).MaterialTypeParam = pack_texureBlendFunc(EBF_ONE, EBF_ONE); ++ InnerNode->getMaterial(0).MaterialTypeParam = pack_textureBlendFunc(EBF_ONE, EBF_ONE); + if(Template->Textures[1] != "") + InnerNode->setMaterialTexture(0, irrDriver->getTexture(Template->Textures[1].c_str())); + else Added: head/games/irrlamb/files/patch-src-objects-player.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/irrlamb/files/patch-src-objects-player.cpp Sat Dec 21 00:43:38 2013 (r337111) @@ -0,0 +1,20 @@ +--- src/objects/player.cpp.orig 2013-12-19 22:20:16.890052259 +0400 ++++ src/objects/player.cpp 2013-12-19 22:20:57.089132087 +0400 +@@ -45,7 +45,7 @@ + Node->setMaterialType(EMT_TRANSPARENT_ADD_COLOR); + Node->setMaterialFlag(EMF_LIGHTING, false); + Node->setMaterialType(EMT_ONETEXTURE_BLEND); +- Node->getMaterial(0).MaterialTypeParam = pack_texureBlendFunc(EBF_ONE, EBF_ONE); ++ Node->getMaterial(0).MaterialTypeParam = pack_textureBlendFunc(EBF_ONE, EBF_ONE); + + // Light + //Light = irrScene->addLightSceneNode(0, core::vector3df(0.0f, 0.0f, 0.0f), video::SColorf(0.2f, 0.2f, 1.0f), 20.0f); +@@ -57,7 +57,7 @@ + InnerNode->setMaterialFlag(EMF_ZBUFFER, false); + InnerNode->setMaterialTexture(0, irrDriver->getTexture("/home/amdmi3/projects/freebsd/ports/games/irrlamb/prefix/share/irrlamb/textures/player_glow0.png")); + InnerNode->setMaterialType(EMT_ONETEXTURE_BLEND); +- InnerNode->getMaterial(0).MaterialTypeParam = pack_texureBlendFunc(EBF_ONE, EBF_ONE); ++ InnerNode->getMaterial(0).MaterialTypeParam = pack_textureBlendFunc(EBF_ONE, EBF_ONE); + + // Particle system + IParticleSystemSceneNode *ParticleSystem = irrScene->addParticleSystemSceneNode(false, Node);