diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-12 12:19:47 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-12 12:19:47 +0000 |
commit | 0c9f5cfa1db2b63bec6ec516bf75b8debeb2e75a (patch) | |
tree | 46e58860f5d8e2c2e5f1224b3148c3a3e5536392 /games-action | |
parent | Actually depend on gst-1 for r100, bug #451028. (diff) | |
download | gentoo-2-0c9f5cfa1db2b63bec6ec516bf75b8debeb2e75a.tar.gz gentoo-2-0c9f5cfa1db2b63bec6ec516bf75b8debeb2e75a.tar.bz2 gentoo-2-0c9f5cfa1db2b63bec6ec516bf75b8debeb2e75a.zip |
Revision bump: EAPI 5, add enhancement patches, wrt bug #450158. Thanks to Michael Kurinnoy for providing patches
(Portage version: 2.2.0_alpha151/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-action')
5 files changed, 199 insertions, 1 deletions
diff --git a/games-action/openastromenace/ChangeLog b/games-action/openastromenace/ChangeLog index bd7c666271e8..42ec8ab81550 100644 --- a/games-action/openastromenace/ChangeLog +++ b/games-action/openastromenace/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for games-action/openastromenace # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/ChangeLog,v 1.12 2013/01/03 21:04:56 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/ChangeLog,v 1.13 2013/01/12 12:19:47 pinkbyte Exp $ + +*openastromenace-1.3.1-r1 (12 Jan 2013) + + 12 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> + +openastromenace-1.3.1-r1.ebuild, + +files/openastromenace-1.3.1-keyboard_control-fix.patch, + +files/openastromenace-1.3.1-rendering-blinking_triangles-fix.patch, + +files/openastromenace-1.3.1-textures_quality-fix.patch: + Revision bump: EAPI 5, add enhancement patches, wrt bug #450158. Thanks to + Michael Kurinnoy for providing patches *openastromenace-1.3.1 (03 Jan 2013) diff --git a/games-action/openastromenace/files/openastromenace-1.3.1-keyboard_control-fix.patch b/games-action/openastromenace/files/openastromenace-1.3.1-keyboard_control-fix.patch new file mode 100644 index 000000000000..ce092ce709e7 --- /dev/null +++ b/games-action/openastromenace/files/openastromenace-1.3.1-keyboard_control-fix.patch @@ -0,0 +1,10 @@ +--- AstroMenaceSource/Menu/Menu_ConfControl.cpp.orig ++++ AstroMenaceSource/Menu/Menu_ConfControl.cpp +@@ -136,6 +136,7 @@ + break; + } + ++ vw_SetKeys(i, false); + NeedCheck = 0; + } + } diff --git a/games-action/openastromenace/files/openastromenace-1.3.1-rendering-blinking_triangles-fix.patch b/games-action/openastromenace/files/openastromenace-1.3.1-rendering-blinking_triangles-fix.patch new file mode 100644 index 000000000000..8965e3a57991 --- /dev/null +++ b/games-action/openastromenace/files/openastromenace-1.3.1-rendering-blinking_triangles-fix.patch @@ -0,0 +1,10 @@ +--- AstroMenaceSource/Object3D/GroundObject/GroundObject.cpp.orig ++++ AstroMenaceSource/Object3D/GroundObject/GroundObject.cpp +@@ -47,6 +47,7 @@ + MaxWheelRotateAngle = 20.0f; + TrackObjectNum = -1; + TrackRotationDirection = 1; ++ WheelTrackSpeed = 0.0f; + + TargetHorizObjectQuantity = 0; + TargetHorizObject = 0; diff --git a/games-action/openastromenace/files/openastromenace-1.3.1-textures_quality-fix.patch b/games-action/openastromenace/files/openastromenace-1.3.1-textures_quality-fix.patch new file mode 100644 index 000000000000..232deb483f17 --- /dev/null +++ b/games-action/openastromenace/files/openastromenace-1.3.1-textures_quality-fix.patch @@ -0,0 +1,87 @@ +--- AstroMenaceSource/Loading.cpp.orig ++++ AstroMenaceSource/Loading.cpp +@@ -1566,51 +1566,63 @@ + vw_SetTextureProp(CurrentList[i].TextFiltr, CurrentList[i].TextWrap, + CurrentList[i].Alpha, CurrentList[i].AlphaMode, CurrentList[i].MipMap); + ++ // мы можем принудительно менять размер текстур через настройки, но надо учитывать их размеры ++ // базовый размер почти всех текстур моделей - 512х512 пикселей, небольшая часть текстур 256х256 (мины, турели) ++ // текстуры всех планет - 1024х512 ++ // "неформатные" текстуры - track.VW2D и asteroid-01.tga, им вообще не надо менять размеры ++ + if (Setup.TexturesQuality == 1) + { ++ // только для текстур в папке MODELS (скайбоксы никогда не трогаем) + if (!strncmp("DATA/MODELS/", CurrentList[i].FileName, strlen("DATA/MODELS/")) && ++ // не меняем размеры небольших текстур вообще + strcmp("DATA/MODELS/track.VW2D", CurrentList[i].FileName) && +- // не ставим низкое для текстур-подсветки файтеров землян - плохо... ++ strcmp("DATA/MODELS/SPACE/asteroid-01.tga", CurrentList[i].FileName) && ++ // не меняем размер или ставим спец размер ++ strncmp("DATA/MODELS/SPACEBASE/", CurrentList[i].FileName, strlen("DATA/MODELS/SPACEBASE/")) && ++ strncmp("DATA/MODELS/PLANET/", CurrentList[i].FileName, strlen("DATA/MODELS/PLANET/")) && ++ strncmp("DATA/MODELS/NORMALMAP/", CurrentList[i].FileName, strlen("DATA/MODELS/NORMALMAP/")) && ++ // не ставим маленький размер для текстур-подсветки файтеров землян - плохо смотрится + strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum01.VW2D", CurrentList[i].FileName) && + strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum02.VW2D", CurrentList[i].FileName) && + strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum03.VW2D", CurrentList[i].FileName) && +- strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum04.VW2D", CurrentList[i].FileName) && +- strncmp("DATA/MODELS/SPACE/", CurrentList[i].FileName, strlen("DATA/MODELS/SPACE/")) && +- strncmp("DATA/MODELS/SPACEBASE/", CurrentList[i].FileName, strlen("DATA/MODELS/SPACEBASE/")) && +- strncmp("DATA/MODELS/PLANET/", CurrentList[i].FileName, strlen("DATA/MODELS/PLANET/"))) ++ strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum04.VW2D", CurrentList[i].FileName)) + { + H = W = 128; + } + else + { +- if (!strncmp("DATA/SKYBOX/", CurrentList[i].FileName, strlen("DATA/SKYBOX/"))) ++ // для подсветки файтеров землян и частей баз (с решетками на альфа канале) - ставим больше размер ++ if (!strncmp("DATA/MODELS/SPACEBASE/", CurrentList[i].FileName, strlen("DATA/MODELS/SPACEBASE/")) || ++ !strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum01.VW2D", CurrentList[i].FileName) || ++ !strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum02.VW2D", CurrentList[i].FileName) || ++ !strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum03.VW2D", CurrentList[i].FileName) || ++ !strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum04.VW2D", CurrentList[i].FileName)) + { +- H = W = 512; ++ H = W = 256; + } +- else// не ставим низкое для текстур-подсветки файтеров землян - плохо... +- if (!strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum01.VW2D", CurrentList[i].FileName) || +- !strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum02.VW2D", CurrentList[i].FileName) || +- !strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum03.VW2D", CurrentList[i].FileName) || +- !strcmp("DATA/MODELS/EARTHFIGHTER/sf-illum04.VW2D", CurrentList[i].FileName) || +- !strncmp("DATA/MODELS/SPACEBASE/", CurrentList[i].FileName, strlen("DATA/MODELS/SPACEBASE/")) || +- !strncmp("DATA/MODELS/PLANET/", CurrentList[i].FileName, strlen("DATA/MODELS/PLANET/"))) +- { +- H = W = 256; +- } +- ++ // текстуры планет не квадратные, учитываем это ++ if (!strncmp("DATA/MODELS/PLANET/", CurrentList[i].FileName, strlen("DATA/MODELS/PLANET/")) && ++ strcmp("DATA/MODELS/PLANET/asteroid.tga", CurrentList[i].FileName)) ++ { ++ W = 512; H = 256; ++ } + } + } + if (Setup.TexturesQuality == 2) + { ++ // только для текстур в папке MODELS (скайбоксы никогда не трогаем) + if (!strncmp("DATA/MODELS/", CurrentList[i].FileName, strlen("DATA/MODELS/")) && ++ // не меняем размеры небольших текстур вообще + strcmp("DATA/MODELS/track.VW2D", CurrentList[i].FileName) && +- strncmp("DATA/MODELS/SPACE/", CurrentList[i].FileName, strlen("DATA/MODELS/SPACE/")) && ++ strcmp("DATA/MODELS/SPACE/asteroid-01.tga", CurrentList[i].FileName) && ++ // не меняем размер + strncmp("DATA/MODELS/SPACEBASE/", CurrentList[i].FileName, strlen("DATA/MODELS/SPACEBASE/")) && +- strncmp("DATA/MODELS/PLANET/", CurrentList[i].FileName, strlen("DATA/MODELS/PLANET/"))) ++ strncmp("DATA/MODELS/PLANET/", CurrentList[i].FileName, strlen("DATA/MODELS/PLANET/")) && ++ strncmp("DATA/MODELS/NORMALMAP/", CurrentList[i].FileName, strlen("DATA/MODELS/NORMALMAP/"))) + { + H = W = 256; + } +- + } + + // если это карта нормалей, но у нас не включены шейдеры - пропускаем diff --git a/games-action/openastromenace/openastromenace-1.3.1-r1.ebuild b/games-action/openastromenace/openastromenace-1.3.1-r1.ebuild new file mode 100644 index 000000000000..e91c515022bc --- /dev/null +++ b/games-action/openastromenace/openastromenace-1.3.1-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/openastromenace-1.3.1-r1.ebuild,v 1.1 2013/01/12 12:19:47 pinkbyte Exp $ + +EAPI=5 +inherit gnome2-utils cmake-utils eutils games + +DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities" +HOMEPAGE="http://sourceforge.net/projects/openastromenace/" +SRC_URI="mirror://sourceforge/openastromenace/${PV}/astromenace-src-${PV}.tar.bz2" + +LICENSE="GPL-3 GPL-3+ CCPL-Attribution-ShareAlike-3.0 UbuntuFontLicense-1.0 OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="virtual/opengl + virtual/glu + media-libs/libsdl[joystick,video,X] + media-libs/openal + media-libs/freealut + media-libs/freetype:2 + media-libs/libogg + media-libs/libvorbis + x11-libs/libXinerama" + +S="${WORKDIR}/AstroMenace" + +src_prepare() { + # no messing with CXXFLAGS please. + sed -i -e '/ADD_DEFINITIONS.*O3/d' CMakeLists.txt || die + epatch "${FILESDIR}"/${P}-overflow.patch + + # enhancements patches(all - in upstream), bug #450158 + epatch "${FILESDIR}"/${P}-keyboard_control-fix.patch + epatch "${FILESDIR}"/${P}-rendering-blinking_triangles-fix.patch + epatch "${FILESDIR}"/${P}-textures_quality-fix.patch +} + +src_configure() { + local mycmakeargs="-DDATADIR=${GAMES_DATADIR}/${PN}" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + "${CMAKE_BUILD_DIR}"/AstroMenace --pack \ + --rawdata="${S}"/RAW_VFS_DATA \ + --dir=$(dirname "${CMAKE_BUILD_DIR}") || die +} + +src_install() { + newgamesbin "${CMAKE_BUILD_DIR}"/AstroMenace "${PN}" + + insinto "${GAMES_DATADIR}/${PN}" + doins ../*.vfs + + newicon -s 128 astromenace_128.png ${PN}.png + newicon -s 64 astromenace_64.png ${PN}.png + + dodoc ChangeLog.txt ReadMe.txt + + make_desktop_entry "${PN}" OpenAstroMenace + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |