diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/criticalmass |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/criticalmass')
8 files changed, 281 insertions, 0 deletions
diff --git a/games-arcade/criticalmass/Manifest b/games-arcade/criticalmass/Manifest new file mode 100644 index 000000000000..24b7af62b49a --- /dev/null +++ b/games-arcade/criticalmass/Manifest @@ -0,0 +1,10 @@ +AUX criticalmass-1.0.2-cflags.patch 864 SHA256 e6c6698fc2ae2b96c2db6409de004adead248b5aa51e6a789a7e3dd0b978d035 SHA512 9368ce03d9b07c3e9428f98021f133c3692cf75e87eb59cf19c2e13b5dd8213281598ab6d51508ba4af2576c1408a105e18b54780e8ff1494f44e6d5a5ac509c WHIRLPOOL 476793a6258ddd0ff7420929e64ac27e3eaf17c464edb029ed7fd40eb5d97900d3116d7a57f4fdaffa73b375516ff446925519afeddd49b75e42d38e31113842 +AUX criticalmass-1.0.2-gcc43.patch 3150 SHA256 a7f74c031aa03fa2a4dd522b4c289f7b992e045b498e71700aed88aea397459c SHA512 a3a23367de54d99b3e47951477c3c85fa861a6a48c3a2d81e2352e55d0a32d6c319f5fd37ff287c93a5b9b0dfa230c89a90a507219960bb72a567977058f3bd6 WHIRLPOOL c43cac1ee7cc7c80861d3bcf2f1fbe4a720d95991a13a996fd4f8777fc09df27c0edb71dc6ff3715cb3c8fba51f003940d2f99d813ec645a3fddd350f265c395 +AUX criticalmass-1.0.2-libpng14.patch 445 SHA256 7f20895eceb0caafb3bd7315b99080731647677c7b938e512625b3b9885dfaf3 SHA512 2dc628e5fe30163a865e08573556a808c9746c3d5a6bf1c57185743f7831f5761f83fcbbeba64deb135000f82b3b8da8f3c5159b9f761d4eac0f9be7efaad353 WHIRLPOOL e91cae16b0b3ebfc4b482894c886a7fafb61df64a0fbab747dc2acc666293d38c2fe550f19d6bc8dfdd58f11cc91c58287346e53fb1cea11ea45143f2803ff1d +AUX criticalmass-1.0.2-libpng15.patch 678 SHA256 fcf92674547fa96389d64df2612906a2aac7d82ef19fb01b4665def32a518585 SHA512 016a48d854f522b720161c35e0fa734579bf765d8996e3f82f92ebe95561a1315083406ffcaf1fa3879c25b6e8358d75c346afcec607b2b8c2d0d843d6bb76e3 WHIRLPOOL ebf116ac6c2d030abc0ae1acf2c282cb2eff17ade6786929ae2f2c28d84768d5c4bbdb4abfe3fa8872beeeb6898ca9d4caaf03346ef6395624ce85aaed9c3c68 +AUX criticalmass-1.0.2-system_curl.patch 964 SHA256 0fc918bea78df003ba37370a83fc349bfec6d191959c0d443c1e33df96be409d SHA512 b4937525dd6a186fc420e79b2c5ee05cf24c429e57650dcf82656a6d30cacdd77f0b64371f3684b3c396efdf89668bec511361ee70b49fb7ed93522997b3b306 WHIRLPOOL c2a9e2e50046e0c61c24bf2a9aa36081bb8f065f12b3619c1f8d2e6b30ac2952126b8a5e124ef89bad4f34c0a6bffaf427d6b78e821b7f9c2fe9999868284703 +DIST CriticalMass-1.0.2.tar.bz2 5122126 SHA256 846db2d30d39e559612328594084a7aef980169948b2cfaee9fddec8ffdef724 SHA512 af3200adc4b6ed9f24eaa89ef5b2f31e8d09e402d0c2eef8db604afcbb2d36bad48e76c3c11c1b2410d2d4e0ffd8554e2e9749a8c8cc4752b4636b8919a66037 WHIRLPOOL 647dc5b82069cb1c26335f3b590f9fe675e319310933f83799c1b4ab2319ba51285c6dc260c110f0e61b76e8f4cf9b3e0ede4bb8f90a49b0cfa31c83b64ed273 +EBUILD criticalmass-1.0.2.ebuild 1260 SHA256 38d06dcf425fe2ff30d8af9842c1720cb74865329e50b600e03cb86c1cc45b16 SHA512 fcd88e03070fceaf205c78a356bce4a702668bcb5767bd8598a1ebb997533e6f69050c46f14fb07a540d5c96042c10749068828cf72a1fe46126bf0d622f5b1a WHIRLPOOL d85d64b650fbb3713155f220853dfbd981d2fed49c0e38cb2cc173d83fa3b932307879e61bc3c4c6b1780facc9f0b95acdb4b4dc31b29b2179b4a299ba9c5dd9 +MISC ChangeLog 2662 SHA256 d82ebd58c4c3e82fedd766c29df992415a8dec70a2765d36f8ce57560d038d91 SHA512 e2ff565c9556a8016c71049569afda5df5deeadce8dd081299506ea651d32c40c1317f0132bd2782032a0e673945788f859aa57aba384110e682fbc1d366e4b1 WHIRLPOOL 0ed2f9b2c76c320c5c8f36aeb333c7773c90e20ada22a9abc587d3d0c954317519c0c285e96925a8a97457f36a8d62c3f2d827d474805ea3a7e8b27b45845d0c +MISC ChangeLog-2015 5534 SHA256 f8aeef66bfe188c5b931b11e227835eb1dc177c5bdd32df213ce96f8b8453571 SHA512 d2789c97d4a351546a9a35270427476aa88c09a464e1057896f69da76bf76dad1611621966c1e3767b31283a1ed01caf55ebbc30923170508f951a2c70e80463 WHIRLPOOL a80ac9378d9a48e53d47b0925c0181adc5a9bbb367d32889baadb25072b093a4bcc1085f35da57340aee853a649bf419c9d711b2e08f0c8f3fbdf34dbb160b7c +MISC metadata.xml 335 SHA256 dc0cbba662f09469700f64a8581a639de8aa689458ae2b80e5428763d0f2f36c SHA512 ef6dcb84323c49c9a21a59eea375bd3c1419ba2c7490f3e20e9daeab88942b4574d3d8668c465e2b2fc4221dff97695ba122d6790ebade3202f873f890fef9e4 WHIRLPOOL 861f0725885ada70e5a9237167168f938a6f8c72e193fe4d8745bab87c1e0e91d7fac4d5e773d8ba2699332cdc423835c9bca9961cac56aea3cfd118e3dd46c1 diff --git a/games-arcade/criticalmass/criticalmass-1.0.2.ebuild b/games-arcade/criticalmass/criticalmass-1.0.2.ebuild new file mode 100644 index 000000000000..b3e5262bb5d1 --- /dev/null +++ b/games-arcade/criticalmass/criticalmass-1.0.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils flag-o-matic games + +DESCRIPTION="SDL/OpenGL space shoot'em up game" +HOMEPAGE="http://criticalmass.sourceforge.net/" +SRC_URI="mirror://sourceforge/criticalmass/CriticalMass-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/sdl-mixer + media-libs/sdl-image[png] + media-libs/libpng:0 + virtual/opengl + net-misc/curl" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/CriticalMass-${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-system_curl.patch \ + "${FILESDIR}"/${P}-libpng14.patch \ + "${FILESDIR}"/${P}-cflags.patch \ + "${FILESDIR}"/${P}-libpng15.patch + rm -rf curl + eautoreconf +} + +src_configure() { + append-cxxflags -std=gnu++98 # Bug 612758 + default +} + +src_install() { + default + rm -f "${D}${GAMES_BINDIR}/Packer" + dohtml Readme.html + newicon critter.png ${PN}.png + make_desktop_entry critter "Critical Mass" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + if ! has_version "media-libs/sdl-mixer[mod]" ; then + ewarn + ewarn "To hear music, you will have to rebuild media-libs/sdl-mixer" + ewarn "with the \"mod\" USE flag turned on." + ewarn + fi +} diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch new file mode 100644 index 000000000000..8b801e51c2cb --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch @@ -0,0 +1,27 @@ +--- configure.in.orig 2011-07-20 11:23:19.849122541 -0400 ++++ configure.in 2011-07-20 11:24:28.169713094 -0400 +@@ -35,9 +35,6 @@ + AM_CONDITIONAL(APPLE,test "x$TARGET" = xAPPLE) + AM_CONDITIONAL(WIN32,test "x$TARGET" = xWIN32) + +-CFLAGS="" +-CXXFLAGS="" +- + if test "x$GCC" = xyes; then + CFLAGS="$CFLAGS -W -Wall" + CXXFLAGS="$CXXFLAGS -W -Wall -fno-exceptions" +@@ -51,14 +48,6 @@ + CXXFLAGS="$CXXFLAGS -g" + fi + +-AC_ARG_ENABLE(optimize, +-[ --enable-optimize=level Enable optimization [default=2]], +- enable_optmize=$enableval, enable_optimize=2) +-if test "x$enable_optimize" != "xno" ; then +- CFLAGS="$CFLAGS -O$enable_optimize" +- CXXFLAGS="$CXXFLAGS -O$enable_optimize" +-fi +- + AC_ARG_ENABLE(dyngl, + [ --enable-dyngl Load GL library dynamically [default=off]], + enable_dyngl=$enableval, enable_dyngl=off) diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch new file mode 100644 index 000000000000..e57c11f5af28 --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch @@ -0,0 +1,101 @@ +--- CriticalMass-1.0.0.orig/tinyxml/tinyxml.cpp 2003-03-03 03:34:58.000000000 +0100 ++++ CriticalMass-1.0.0/tinyxml/tinyxml.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -21,10 +21,12 @@ + distribution.
+ */
+
+ #include "tinyxml.h"
+
++#include <cstring> ++ +
+ TiXmlNode::TiXmlNode( NodeType _type )
+ {
+ parent = 0;
+ type = _type;
+--- CriticalMass-1.0.0.orig/tinyxml/tinyxml.h 2003-03-03 03:34:58.000000000 +0100 ++++ CriticalMass-1.0.0/tinyxml/tinyxml.h 2008-04-18 19:40:35.000000000 +0200 +@@ -28,10 +28,11 @@ + #ifdef _MSC_VER
+ #pragma warning( disable : 4530 )
+ #pragma warning( disable : 4786 )
+ #endif
+
++#include <cstdlib> + #include <string>
+ #include <stdio.h>
+ #include <assert.h>
+
+ class TiXmlDocument;
+--- CriticalMass-1.0.0.orig/tinyxml/tinyxmlparser.cpp 2003-03-03 03:34:58.000000000 +0100 ++++ CriticalMass-1.0.0/tinyxml/tinyxmlparser.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -23,10 +23,12 @@ +
+
+ #include "tinyxml.h"
+ #include <ctype.h>
+
++#include <cstring> ++ + const char* TiXmlBase::SkipWhiteSpace( const char* p )
+ {
+ while ( p && *p &&
+ ( isspace( *p ) || *p == '\n' || *p == '\r' ) )
+ p++;
+--- CriticalMass-1.0.0.orig/utils/ResourceManager.cpp 2005-01-02 03:59:29.000000000 +0100 ++++ CriticalMass-1.0.0/utils/ResourceManager.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -20,10 +20,12 @@ + #include <ResourceManager.hpp> + #include <FindHash.hpp> + #include <Endian.hpp> + #include <WalkDirectory.hpp> + ++#include <cstring> ++ + #ifdef WIN32 + const char PATH_SEPERATOR = '\\'; + #else + const char PATH_SEPERATOR = '/'; + #endif +--- CriticalMass-1.0.0.orig/utils/Value.hpp 2004-12-18 03:41:24.000000000 +0100 ++++ CriticalMass-1.0.0/utils/Value.hpp 2008-04-18 19:40:35.000000000 +0200 +@@ -13,10 +13,11 @@ + // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details + // + #ifndef _Value_hpp_ + #define _Value_hpp_ + ++#include <cstdlib> + #include <stdio.h> + #include <string> + + #include <Trace.hpp> + +--- CriticalMass-1.0.0.orig/utils/zStreamBufferImplZLib.cpp 2005-07-31 22:06:14.000000000 +0200 ++++ CriticalMass-1.0.0/utils/zStreamBufferImplZLib.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -10,10 +10,11 @@ + // + // This program is distributed in the hope that it will be useful, but WITHOUT + // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details + // ++#include <cstdlib> + #include <Trace.hpp> + #include <zStreamBufferImplZLib.hpp> + + bool ziStreamBufferImplZLib::init( void) + { +--- CriticalMass-1.0.0.orig/utils/zStream.cpp 2005-07-31 22:06:14.000000000 +0200 ++++ CriticalMass-1.0.0/utils/zStream.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -10,10 +10,11 @@ + // + // This program is distributed in the hope that it will be useful, but WITHOUT + // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details + // ++#include <cstdlib> + #include <Trace.hpp> + #include <Endian.hpp> + #include <zStream.hpp> + #include <zStreamBufferImplLZMA.hpp> + #include <zStreamBufferImplZLib.hpp> diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch new file mode 100644 index 000000000000..882869b43a14 --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch @@ -0,0 +1,11 @@ +--- configure.in ++++ configure.in +@@ -99,7 +99,7 @@ if test "x$TARGET" = xWIN32; then + else + LIBS="-L/usr/local/lib -L/usr/X11R6/lib $LIBS" + CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include" +- AC_CHECK_LIB(png12, main,, AC_MSG_ERROR(libpng is needed)) ++ AC_CHECK_LIB(png, main,, AC_MSG_ERROR(libpng is needed)) + AC_CHECK_LIB(z, main,, AC_MSG_ERROR(libz is needed)) + if test "x$TARGET" = xUNIX; then + if test "x$enable_dyngl" = xoff; then diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch new file mode 100644 index 000000000000..ac1b8c0c617f --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch @@ -0,0 +1,31 @@ +--- game/main.cpp ++++ game/main.cpp +@@ -28,6 +28,8 @@ + #include <sys/stat.h> + #include <sys/types.h> + ++#include <zlib.h> ++ + void migrateConfig( void) + { + //if onlineCheck is not set, default it to true +--- utilssdl/PNG.cpp ++++ utilssdl/PNG.cpp +@@ -45,7 +45,7 @@ + { + png_size_t check; + +- check = fwrite( data, 1, length, (FILE *)(png->io_ptr)); ++ check = fwrite( data, 1, length, (FILE *)(png_get_io_ptr(png))); + if( check != length) + { + png_error( png, "Write Error"); +@@ -72,7 +72,7 @@ + return false; + } + +- if( setjmp(_png->jmpbuf)) ++ if( setjmp(png_jmpbuf(_png))) + { + fclose( fp); + png_destroy_write_struct(&_png, (png_infopp)NULL); diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch new file mode 100644 index 000000000000..02307ad7d8fc --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch @@ -0,0 +1,33 @@ +--- configure.in ++++ configure.in +@@ -115,8 +115,6 @@ fi + AC_CHECK_LIB(m, sin,, + AC_MSG_ERROR(libm is needed)) + +-AC_CONFIG_SUBDIRS(curl) +- + AC_OUTPUT(Makefile utils/Makefile utilssdl/Makefile utilsgl/Makefile game/Makefile tools/Makefile data/Makefile data/music/Makefile tinyxml/Makefile) + + echo "Configuration: +--- game/Makefile.am ++++ game/Makefile.am +@@ -41,7 +41,7 @@ critter_SOURCES = \ + main.cpp + + LDADD = \ +- ../curl/lib/libcurl.a \ ++ -lcurl \ + ../utils/libutils.a \ + ../utilssdl/libutilssdl.a \ + ../utilsgl/libutilsgl.a \ +--- Makefile.am ++++ Makefile.am +@@ -4,7 +4,7 @@ + AUTOMAKE_OPTIONS = 1.4 + + ## Any directories that you want built and installed should go here. +-SUBDIRS = curl tinyxml utils utilssdl utilsgl tools data game ++SUBDIRS = tinyxml utils utilssdl utilsgl tools data game + + ## Any directories you want a part of the distribution should be listed + ## here, as well as have a Makefile generated at the end of configure.in diff --git a/games-arcade/criticalmass/metadata.xml b/games-arcade/criticalmass/metadata.xml new file mode 100644 index 000000000000..26c1c9ca5f2d --- /dev/null +++ b/games-arcade/criticalmass/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">criticalmass</remote-id> + </upstream> +</pkgmetadata> |