From ff08dd2de775e1f60e33cac505a0a0cf2b0b7e62 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 27 Jan 2014 00:57:25 +0000 Subject: version bump Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 RepoMan-Options: --ignore-arches Manifest-Sign-Key: 0xE73C35B3 --- games-strategy/megaglest/ChangeLog | 11 +- games-strategy/megaglest/Manifest | 20 ++- .../megaglest/files/megaglest-3.9.1-cmake.patch | 18 +++ .../files/megaglest-3.9.1-static-build.patch | 63 ++++++++ games-strategy/megaglest/megaglest-3.9.1.ebuild | 166 +++++++++++++++++++++ 5 files changed, 268 insertions(+), 10 deletions(-) create mode 100644 games-strategy/megaglest/files/megaglest-3.9.1-cmake.patch create mode 100644 games-strategy/megaglest/files/megaglest-3.9.1-static-build.patch create mode 100644 games-strategy/megaglest/megaglest-3.9.1.ebuild (limited to 'games-strategy') diff --git a/games-strategy/megaglest/ChangeLog b/games-strategy/megaglest/ChangeLog index 1107e0f8c3f9..85c927e76f76 100644 --- a/games-strategy/megaglest/ChangeLog +++ b/games-strategy/megaglest/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-strategy/megaglest -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest/ChangeLog,v 1.17 2013/11/20 19:24:36 hasufell Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest/ChangeLog,v 1.18 2014/01/27 00:57:20 hasufell Exp $ + +*megaglest-3.9.1 (27 Jan 2014) + + 27 Jan 2014; Julian Ospald +megaglest-3.9.1.ebuild, + +files/megaglest-3.9.1-cmake.patch, + +files/megaglest-3.9.1-static-build.patch: + version bump *megaglest-3.9.0.4 (20 Nov 2013) diff --git a/games-strategy/megaglest/Manifest b/games-strategy/megaglest/Manifest index 022dca64b311..bbc715b94875 100644 --- a/games-strategy/megaglest/Manifest +++ b/games-strategy/megaglest/Manifest @@ -13,24 +13,28 @@ AUX megaglest-3.7.1-gcc47.patch 1033 SHA256 3b68d2cc802ef53a47570faf3d15164efa94 AUX megaglest-3.7.1-miniupnpc-1.8.patch 6273 SHA256 d93fcd76a9fdbbb72b6b6c9bc2abde64433727f5833bf9e3adf145091beb05d7 SHA512 54c5c45dfe211ec462ec38c67696bbd40b630ea8976bc06d3bd704773d14aefbab7a2e60ab7e80b092b384da7ce19955cd8d5c6c140f4201ec9adefd6a9f67b3 WHIRLPOOL 9b9841aebb853fec5cf711af79f31fc5413f9626f4998822f76cd23e9624daf44cbd061cf4b467b8a019b75df7966a789cf53771dd8761bb3bdcc6efee4bf454 AUX megaglest-3.7.1-static-build.patch 4008 SHA256 8067115f3424ce213c87ed476d227aebe5f910de935d65bb96c079b6faf44cff SHA512 0403e04783009c66a0199b2c3c793b74dd11cc89189b29494e56b826297afab8349a4e4ad1c5c5c6dc302e9d1b82b62f010ec379e28d6760c0ee89803ceef571 WHIRLPOOL 0bc7c36b10d9256dd5cc49b2c0fba93f2874b7cbf26aed7dd91f20675dff4d742736866960138d66516c4e27ca63be69f0248f82376e32494967f7125af9d291 AUX megaglest-3.9.0.4-static-build.patch 1939 SHA256 c34102f40497240a659540bbf4926e9b8ac02aec2e6202b94eb10e923a224e5f SHA512 c83c8ed2700cd951516d497ac2a2cadbbb9fe56634e368a252ea7186266ada0bb744edb05fc2d8f1483a5f968854e46606f54926b50677cf424503b6c496dee5 WHIRLPOOL f6df24ade01171ab5095b3b6b8034c92183fbc5df64154e393d20c2a2ebf87c5dd8736684402103d945c544c3c0009f7865d485ede205fcb0f2c439e868ca09c +AUX megaglest-3.9.1-cmake.patch 800 SHA256 2d773202f24a25bedf0369a5000de5a5d024cebad21685f62fac532c07b31c98 SHA512 063ff67139ec702c100b93a488daa6cf6b34909860fdbb964c242c7464876947ba45dd9dfee084f8f37dcc2c16dc8bb80842cbf497e36810745df5a29d73d7da WHIRLPOOL fbc198abc48a6d09d1247d8fd7bed084acf9b9d60e74ea3a4e90d19390ed09eeb9820861ec3096dce9943c850216addd195b91bf9231de4419f256fa758124da +AUX megaglest-3.9.1-static-build.patch 1939 SHA256 c34102f40497240a659540bbf4926e9b8ac02aec2e6202b94eb10e923a224e5f SHA512 c83c8ed2700cd951516d497ac2a2cadbbb9fe56634e368a252ea7186266ada0bb744edb05fc2d8f1483a5f968854e46606f54926b50677cf424503b6c496dee5 WHIRLPOOL f6df24ade01171ab5095b3b6b8034c92183fbc5df64154e393d20c2a2ebf87c5dd8736684402103d945c544c3c0009f7865d485ede205fcb0f2c439e868ca09c DIST megaglest-source-3.6.0.3.tar.xz 1336432 SHA256 700b1eef534d72fa5efd329445aa085259a87dcea5e739eda629e6c41386b9f7 SHA512 0152457444c8d4ed65ed2ae565a73a2921a3706bb653fa818be03fb15d6fac196d50fc616583ce4c6fe7e76d4fb82cc83eb7c16809a90edf705701bab9c95387 WHIRLPOOL e452cd6dafb9024b663c62c9c3077af725601c6bc7b34b54cef641feb7ecbf2d1c1b6625e016e6e149055782d303a7bff78b59f29eb3c72d010c2a8b8a554b6f DIST megaglest-source-3.7.0.tar.xz 1442444 SHA256 5fdf2ed072c8a207a42b280929a7ce097ed6f966b2b85a7f0a89e741ac5cca23 SHA512 113bb59a4f8ec2b0d83b30952f7723c8a9a835b4854a083327c13a87f69c45d66184025bc0dd1af4ebfebeaa6d8ea7f488b859bcb8c04a8ecc5bcad8ac8bb35c WHIRLPOOL 16c5c56c0b8b9374b024178a3d780a21b7594398acb27f4d32ede39567edb6238a1122baaa57272134e62ae2de7c855db8384efd31d6171b7dbc4717249f63a6 DIST megaglest-source-3.7.1.tar.xz 1439864 SHA256 0222196c6a274cfd1b5fd074206a6bedcf3da4f343345f3e2682e704f94adc26 SHA512 b285421175d7eeb7c52c45c9397d270ed4352ec1c9f547b5a18ec596d676a8fd00b54d7138c9b6ccba07bc8218054587ccb9822c30216a846d4da64c7a2ae600 WHIRLPOOL a8d50d49b9470aaf29121e427ee9137980f0fcbc11f962217581d679d6e7d10c2daa5a68648b45c5384ff1bfed7cfa73fb2600cf872b12f64f59729ca759872f DIST megaglest-source-3.9.0.4.tar.xz 1596692 SHA256 3362ade61af3c01c2d8976d2d481769698dc0c800f35251b8c5489f8e41d9bc3 SHA512 5680461565837aa8eabcfc248cdfe9758bd25aabf2f419d14eea2ca94b3bc975b553e099cf59aeae38509f43798d9ede95ff8f6bed327177186d9e16f1697b69 WHIRLPOOL b2c30ce662ee718513a0d7b38265f1d334ef471df8b98b56213c7ce43b7ecdda2c96b45da411df43414ea41e61e90f41c0fb6dd51ca84c99ac366150192c5678 +DIST megaglest-source-3.9.1.tar.xz 2957360 SHA256 e62314b8108ba3c80706aa896f4fed5992a8ea8d82a410e09fbb242c4bf54edc SHA512 2a3d402aa68a1b1ee326bf49b6b6dee5ed561623b541ab47c1545596fa9c77f805245b66bd8457ecd82625a3f1d4868269a4a3888a54245c73d9cb6babbace70 WHIRLPOOL 59ad629c66633b2f320c7c80eef627f4326cbacb0cc48169c33b6783bfc26d1a8baef1773f0d05a1bc589ec5ae6bbedbb1f394c34616b166faa6e7f9630a22e5 EBUILD megaglest-3.6.0.3.ebuild 4602 SHA256 c50a057a15587f88127fa1dedf42135f79724e1a33d272745b574d33dc3b1564 SHA512 6d35db30ce2a3be436caccf727865644b9a89ac0ba6319fea76ce17d26c5be501fdad7e2bc4931db2d2754fc5325faed167103fbfa6578a798abde31d0b6527a WHIRLPOOL 5953781d35153af0a0d965f16f37c07aeefb21ba8575d6a51b5e664216c304843f313c7a69f3f4d6d95a405d1a814d082ab843211cab7b69518a63c9c48fd659 EBUILD megaglest-3.7.0.ebuild 4289 SHA256 3f7182b2e27c82b1f7a11b07dd1d66394a60927cd338e0daa239544a1a936b95 SHA512 bf212ca8fd71f91f1c85320041e94c5db66035b98a4e373c20e790615f30cc58692e43afd52dd0ad9a7c5d0ec94571135bcae7a37506547bb9e032c92c9a73c5 WHIRLPOOL 71c11c44fb40f21b03c0180fc49a780a31791947febae24cb3f2bcbe7b7081de7766c7d7cb978bd2d5543c33ed2f9588029710cfef70920217158e79d7fc7045 EBUILD megaglest-3.7.1.ebuild 4298 SHA256 2e15b02937254c66fa8a0420b92f8b779fc100148c75845274e185f8551cc34c SHA512 adbc8a83747ba78c57e3b7cd3d46f3dba3dde1a2944c43866c121fb20fc4ca0a0b717cb44a6746780ee7ffec97ccf5077919a6099d307857ce46e7ae135849bf WHIRLPOOL f70beefbdbb5ed3967b656c63c8cb0a5bf5e9e62c98d5a0f984cc9c2410337db1072338df3d5874bfb1d7c5c45285ff3f8f3b124f51b61fa423392ba5d0c1cff EBUILD megaglest-3.9.0.4.ebuild 4467 SHA256 94ebc72a58f70eb8c40e28303d68d7d29103a8b51fc413e729571a515c37646f SHA512 4aa3c4ee7dbad0a5889325d20d495cf65bb85ca7cda6e3c38a710b2716600847c3c986f6edcbc64986f5b56cbbcec5f320df6763e0fd465042dbb5a17c22efb1 WHIRLPOOL cc19e11a3ff5d3e31ea630c4efabb8cc335ee034fb0ac23423912417ed24185f8b356fff110d87ca006271b0c4ccb6705bd75baec1415aebc3657ca9e31f5715 -MISC ChangeLog 3146 SHA256 862069f6544863e1b7c50f94f9ca2d678dcae0dd7c75a3e02866b48e32188908 SHA512 a7c9b3836eccd7cadc4bb593f4ac00262626ca96fa045b1ac05af1d76842e05d908afc7937f99d059a7bf924f1edad7fde184542fd32c908119ce96a6b1d7876 WHIRLPOOL bc647775ceb79e1614e37641db953d1e08c96d33d9c9d11d280649f7d268a92a7441a3cd47c9d6baf79bf7474c8501c7119c2c64d6e365854cdec9578c5118cf +EBUILD megaglest-3.9.1.ebuild 4526 SHA256 f979fd272541306a59bf19cdeb1dbd8076d690b334c11cc5f1a7e05f465cf602 SHA512 9e5c852d307429bf0d1d2543930c117343fc86ddf54a8ff071ed37752b2b012d5daaa7c910e93e37f7b4adbbea63d2a3c11c8cbb43990b0250b6d060ab310c97 WHIRLPOOL 4213d91abf520ccc06b2d9215f4a525a9a851103d14a1bd2dfaa43e2a39e94bad4e22d50ecd6ef9d52528dcddc21163379c846acd522c9c4c74cbdb176e252f3 +MISC ChangeLog 3353 SHA256 a6b4ab03d276f46bf7409d06556def733fde1ac9e3074e140de969b3d8986789 SHA512 2280a82e27b041a48fabe89712c9530b922b81556ea5fadf20b68044723d8e96e4ac3ac7a900904f7870c98eb5d45c491aa51df55dbff5aecb5bfb8dcfc7e074 WHIRLPOOL 463c5f6e189600a29117b481f96acb25f73dc773d66298fce3b09007786dad20a4ecc2fd686ab9a2d510fb489339d94d00fcc75330a525d4060c5a3a75beb5b2 MISC metadata.xml 1603 SHA256 f73b1ed75f710c55fa073350554f4214aba02e2f8127ac3cf1f13bc9c5833735 SHA512 3c7746bdca2816d93fe3627452d22cbbe95606de20dca0278cb3c04abc4b98c0bbeac56f658ace1b97bbf876975f523ace126f636950b30a73facb18b6e1783e WHIRLPOOL 8676431de745d6ab986298c29eba0a58131af8736dd5551259faf3b12cd06ec5c90fdfee619a97c7103c5409aeb7c8c1dbce89b77f080d96ddbfdf850ba652ea -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJSjQx6AAoJEFpvPKfnPDWzqMUIAIka1Xkrp++y4D0K67+qU1Iv -7vPQp9vI1vtiTa1zgJBOzGYlTk4xX+XLM1F6YOw6lWrsEeCR1LH4jjV5CdZ2W96Z -wRZDSSRso2Dv2jfz/HNurieT+ZobkqumPBJi+lFO1smuv0S6c+ZSMxq7pSYqaQgE -sMuAmNwSGFPZ+C1HeEjJ/38aJWZ1Zovm3SY009tuz+6ED8DemEK9tQpdXYfXuTZC -UwYBnTWTXldtGtZY1aOmBOQlBk/DmdTvajHObYLexAKJ3O/8ud99VXI21OM0ks5h -L7XRVIGAM1J93EGe5TP8yEJK8bqbCNO28tNm06iCaanzSuBFxfuz0ofBJbuWAlY= -=5R+F +iQEcBAEBCAAGBQJS5a71AAoJEFpvPKfnPDWzFCAIALX7Hn+ZJxFa0b7sdcV7kj19 +JwZ9sqpecpC2olJeFu/gWZW22wCGLEL1k0b2SKtIb+02p+hGstQMhZvSUdSrMwqh +IFHL7jbnTt3RBXwuxsY8Z3xgDzVmQrL/6+Mwaae43AwbtDCIwbzvNBTlSUkX0ZXk +MUO459IAlSKB+8hA7eWUEHFgR4HkCUctPe9goC7HTbv4bay8NOg9NtKtCJSPvHDC +8WWN3K+vHwxo9Ugzv8q2SwqzMv7epKVQMnFlU3YnUhuBS4yH+BQhD2pr43pmSWju +VRbhYf1DP7FitLEnGXQRQQOkSs4PF4PhHHBH2m0VB0UOJkmLnARI2kS/XJ8BH7A= +=KXfL -----END PGP SIGNATURE----- diff --git a/games-strategy/megaglest/files/megaglest-3.9.1-cmake.patch b/games-strategy/megaglest/files/megaglest-3.9.1-cmake.patch new file mode 100644 index 000000000000..1c04ea28262e --- /dev/null +++ b/games-strategy/megaglest/files/megaglest-3.9.1-cmake.patch @@ -0,0 +1,18 @@ +From: Julian Ospald +Date: Mon Jan 27 00:46:56 UTC 2014 +Subject: fix installation + +--- megaglest-source-3.9.1.tar.xz/source/glest_game/CMakeLists.txt ++++ megaglest-source-3.9.1.tar.xz/source/glest_game/CMakeLists.txt +@@ -310,9 +310,9 @@ + "${PROJECT_SOURCE_DIR}/mk/linux/megaglest.png" + "${PROJECT_SOURCE_DIR}/mk/linux/megaglest.xpm" + "${PROJECT_SOURCE_DIR}/mk/linux/megaglest.bmp" +- "${PROJECT_SOURCE_DIR}/data/glest_game/editor.ico" ++ "${PROJECT_SOURCE_DIR}/editor.ico" + "${PROJECT_SOURCE_DIR}/mk/linux/glest.ico" +- "${PROJECT_SOURCE_DIR}/data/glest_game/g3dviewer.ico" ++ "${PROJECT_SOURCE_DIR}/g3dviewer.ico" + DESTINATION ${MEGAGLEST_ICON_INSTALL_PATH}) + ELSE() + diff --git a/games-strategy/megaglest/files/megaglest-3.9.1-static-build.patch b/games-strategy/megaglest/files/megaglest-3.9.1-static-build.patch new file mode 100644 index 000000000000..2586a561956b --- /dev/null +++ b/games-strategy/megaglest/files/megaglest-3.9.1-static-build.patch @@ -0,0 +1,63 @@ +commit 754a6eb9f81a4a40a2a0102ffe1bfdbba734b36a +Author: hasufell +Date: Mon Nov 18 21:54:54 2013 +0100 + + fix static build + +diff --git a/mk/cmake/Modules/FindOGG.cmake b/mk/cmake/Modules/FindOGG.cmake +index 2a026cc..8ca8a23 100644 +--- a/mk/cmake/Modules/FindOGG.cmake ++++ b/mk/cmake/Modules/FindOGG.cmake +@@ -19,11 +19,11 @@ + + FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h) + +-#IF (OGG_STATIC AND NOT OGG_LIBRARY) +-# FIND_LIBRARY(OGG_LIBRARY NAMES libogg.a ogg) +-#ELSE() +- FIND_LIBRARY(OGG_LIBRARY NAMES ogg) +-#ENDIF() ++IF (OGG_STATIC AND NOT OGG_LIBRARY) ++ FIND_LIBRARY(OGG_LIBRARY NAMES libogg.a) ++ELSE() ++ FIND_LIBRARY(OGG_LIBRARY NAMES libogg.so) ++ENDIF() + + #IF (OGG_STATIC AND NOT VORBIS_LIBRARY) + # FIND_LIBRARY(VORBIS_LIBRARY NAMES libvorbis.a vorbis) +--- a/mk/cmake/Modules/FindXercesC.cmake ++++ b/mk/cmake/Modules/FindXercesC.cmake +@@ -83,6 +83,9 @@ + /usr/lib + /usr/local/lib + ) ++ ++ FIND_LIBRARY(ICUUC_LIBRARY NAMES libicuuc.a) ++ FIND_LIBRARY(ICUDATA_LIBRARY NAMES libicudata.a) + + IF (XERCESC_INCLUDE AND XERCESC_LIBRARY) + MESSAGE(STATUS "Found static Xerces-C lib [${XERCESC_LIBRARY}]") +@@ -90,7 +93,7 @@ + + IF(UNIX AND NOT APPLE) + #SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY} -Bdynamic -licuuc -licudata") +- SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY}") ++ SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY} ${ICUUC_LIBRARY} ${ICUDATA_LIBRARY}") + ENDIF() + ENDIF() + ENDIF() +--- a/mk/cmake/Modules/FindFriBiDi.cmake ++++ b/mk/cmake/Modules/FindFriBiDi.cmake +@@ -28,9 +28,9 @@ + SET(FRIBIDI_NAMES ${FRIBIDI_NAMES} fribidi libfribidi) + + OPTION(WANT_STATIC_LIBS "builds as many static libs as possible" OFF) +-IF(WANT_STATIC_LIBS) +- SET(FRIBIDI_NAMES fribidi.a libfribidi.a ${FRIBIDI_NAMES}) +-ENDIF() ++#IF(WANT_STATIC_LIBS) ++# SET(FRIBIDI_NAMES fribidi.a libfribidi.a ${FRIBIDI_NAMES}) ++#ENDIF() + + MESSAGE(STATUS "** Searching for library names: [${FRIBIDI_NAMES}] ...") + diff --git a/games-strategy/megaglest/megaglest-3.9.1.ebuild b/games-strategy/megaglest/megaglest-3.9.1.ebuild new file mode 100644 index 000000000000..1ab77e588295 --- /dev/null +++ b/games-strategy/megaglest/megaglest-3.9.1.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest/megaglest-3.9.1.ebuild,v 1.1 2014/01/27 00:57:20 hasufell Exp $ + +# google-breakpad +# TODO: fribidi, libvorbis static + +EAPI=5 +VIRTUALX_REQUIRED="manual" +inherit eutils flag-o-matic cmake-utils virtualx wxwidgets gnome2-utils games + +DESCRIPTION="Cross-platform 3D realtime strategy game" +HOMEPAGE="http://www.megaglest.org/" +SRC_URI="https://github.com/MegaGlest/megaglest-source/releases/download/${PV}/megaglest-source-${PV}.tar.xz" + +LICENSE="GPL-3 BitstreamVera" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +editor fribidi sse sse2 sse3 static +streflop +tools +unicode wxuniversal +model-viewer videos" + +RDEPEND=" + >=dev-lang/lua-5.1 + dev-libs/libxml2 + media-libs/fontconfig + media-libs/freetype + media-libs/libsdl[X,audio,joystick,opengl,video] + media-libs/libvorbis + media-libs/openal + net-libs/gnutls + sys-libs/zlib + virtual/opengl + virtual/glu + x11-libs/libX11 + x11-libs/libXext + editor? ( x11-libs/wxGTK:2.8[X,opengl] ) + fribidi? ( dev-libs/fribidi ) + model-viewer? ( x11-libs/wxGTK:2.8[X] ) + !static? ( + dev-libs/icu + dev-libs/xerces-c[icu] + media-libs/ftgl + media-libs/glew + media-libs/libpng:0 + net-libs/libircclient + >=net-libs/miniupnpc-1.8 + net-misc/curl + virtual/jpeg + ) + videos? ( media-video/vlc )" +DEPEND="${RDEPEND} + sys-apps/help2man + virtual/pkgconfig + editor? ( ${VIRTUALX_DEPEND} ) + model-viewer? ( ${VIRTUALX_DEPEND} ) + static? ( + dev-libs/icu[static-libs] + dev-libs/xerces-c[icu,static-libs] + media-libs/ftgl[static-libs] + media-libs/glew[static-libs] + media-libs/libpng:0[static-libs] + net-libs/libircclient[static-libs] + net-libs/miniupnpc[static-libs] + net-misc/curl[static-libs] + virtual/jpeg[static-libs] + )" +PDEPEND="~games-strategy/${PN}-data-${PV}" + +src_prepare() { + if use editor || use model-viewer ; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + fi + + epatch "${FILESDIR}"/${P}-static-build.patch \ + "${FILESDIR}"/${P}-cmake.patch +} + +src_configure() { + if use sse3; then + SSE=3 + elif use sse2; then + SSE=2 + elif use sse; then + SSE=1 + else + SSE=0 + fi + + local mycmakeargs=( + $(cmake-utils_use_enable fribidi FRIBIDI) + $(cmake-utils_use_build editor MEGAGLEST_MAP_EDITOR) + $(cmake-utils_use_build tools MEGAGLEST_MODEL_IMPORT_EXPORT_TOOLS) + $(cmake-utils_use_build model-viewer MEGAGLEST_MODEL_VIEWER) + $(cmake-utils_use_with videos VLC) + -DMAX_SSE_LEVEL_DESIRED="${SSE}" + -DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}" + -DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${PN}" + # icons are used at runtime, wrong default location share/pixmaps + -DMEGAGLEST_ICON_INSTALL_PATH="${GAMES_DATADIR}/${PN}" + -DUSE_FTGL=ON + $(cmake-utils_use_want static STATIC_LIBS) + $(cmake-utils_use_want streflop STREFLOP) + -DWANT_SVN_STAMP=off + $(cmake-utils_use static wxWidgets_USE_STATIC) + $(cmake-utils_use unicode wxWidgets_USE_UNICODE) + $(cmake-utils_use wxuniversal wxWidgets_USE_UNIVERSAL) + + $(usex debug "-DBUILD_MEGAGLEST_UPNP_DEBUG=ON -DwxWidgets_USE_DEBUG=ON" "") + ) + + # support CMAKE_BUILD_TYPE=Gentoo + append-cppflags '-DCUSTOM_DATA_INSTALL_PATH=\\\"'${GAMES_DATADIR}/${PN}/'\\\"' + + cmake-utils_src_configure +} + +src_compile() { + if use editor || use model-viewer; then + VIRTUALX_COMMAND="cmake-utils_src_compile" virtualmake + else + cmake-utils_src_compile + fi +} + +src_install() { + # rebuilds some targets randomly without fast option + emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" "$@" install/fast + + dodoc docs/{AUTHORS.source_code,CHANGELOG,README}.txt + doicon -s 48 ${PN}.png + + use editor && + make_desktop_entry ${PN}_editor "MegaGlest Map Editor" + use model-viewer && + make_desktop_entry ${PN}_g3dviewer "MegaGlest Model Viewer" + + # provided by megaglest-data + rm "${ED%/}/${GAMES_DATADIR}"/${PN}/${PN}.bmp || die + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + einfo + elog 'Note about Configuration:' + elog 'DO NOT directly edit glest.ini and glestkeys.ini but rather glestuser.ini' + elog 'and glestuserkeys.ini in ~/.megaglest/ and create your user over-ride' + elog 'values in these files.' + elog + elog 'If you have an older graphics card which only supports OpenGL 1.2, and the' + elog 'game crashes when you try to play, try starting with "megaglest --disable-vbo"' + elog 'Some graphics cards may require setting Max Lights to 1.' + einfo + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} -- cgit v1.2.3-65-gdbad