From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- games-simulation/bcs-demo/Manifest | 2 + games-simulation/bcs-demo/bcs-demo-1.3.ebuild | 59 +++++++ games-simulation/bcs-demo/metadata.xml | 26 +++ games-simulation/cannonsmash/Manifest | 2 + .../cannonsmash/cannonsmash-0.6.6.ebuild | 69 ++++++++ .../files/cannonsmash-0.6.6-flags.patch | 21 +++ .../files/cannonsmash-0.6.6-gcc41.patch | 22 +++ .../files/cannonsmash-0.6.6-sizeof-cast.patch | 11 ++ .../files/cannonsmash-0.6.6-x-inc.patch | 18 +++ games-simulation/cannonsmash/metadata.xml | 8 + games-simulation/corsix-th/Manifest | 2 + .../corsix-th/corsix-th-0.21-r1.ebuild | 62 ++++++++ games-simulation/corsix-th/corsix-th-0.30.ebuild | 92 +++++++++++ .../corsix-th/files/corsix-th-0.21-naming.patch | 17 ++ .../corsix-th/files/corsix-th-0.30-install.patch | 40 +++++ .../corsix-th/files/corsix-th-nodoc.patch | 11 ++ games-simulation/corsix-th/metadata.xml | 24 +++ games-simulation/crashtest/Manifest | 1 + games-simulation/crashtest/crashtest-1.1.ebuild | 42 +++++ .../crashtest/files/crashtest-1.1-gentoo.patch | 94 +++++++++++ games-simulation/crashtest/metadata.xml | 11 ++ games-simulation/crrcsim/Manifest | 1 + games-simulation/crrcsim/crrcsim-0.9.12-r1.ebuild | 60 +++++++ .../crrcsim/files/crrcsim-buildsystem.patch | 25 +++ .../crrcsim/files/crrcsim-cgal_gmp.patch | 11 ++ games-simulation/crrcsim/metadata.xml | 12 ++ games-simulation/dangerdeep/Manifest | 2 + .../dangerdeep/dangerdeep-0.3.0.ebuild | 63 ++++++++ .../dangerdeep/files/dangerdeep-0.3.0-build.patch | 39 +++++ .../dangerdeep/files/dangerdeep-0.3.0-gcc43.patch | 80 ++++++++++ .../dangerdeep/files/dangerdeep-0.3.0-gcc44.patch | 20 +++ .../dangerdeep/files/dangerdeep-0.3.0-gcc47.patch | 10 ++ games-simulation/dangerdeep/metadata.xml | 8 + games-simulation/fgrun/Manifest | 1 + games-simulation/fgrun/fgrun-3.0.0.ebuild | 53 ++++++ games-simulation/fgrun/metadata.xml | 8 + games-simulation/flightgear-data/Manifest | 1 + .../flightgear-data/flightgear-data-3.4.0.ebuild | 30 ++++ games-simulation/flightgear-data/metadata.xml | 9 ++ games-simulation/flightgear/Manifest | 1 + .../files/0001-flightgear-3.4.0-cmake.patch | 30 ++++ .../files/0002-flightgear-3.4.0-cmake.patch | 54 +++++++ games-simulation/flightgear/files/ac3d.vim | 1 + games-simulation/flightgear/files/nasal.vim | 1 + .../flightgear/flightgear-3.4.0.ebuild | 138 ++++++++++++++++ games-simulation/flightgear/metadata.xml | 18 +++ games-simulation/gl117/Manifest | 1 + .../gl117/files/gl117-1.3.2-mode.patch | 12 ++ games-simulation/gl117/gl117-1.3.2.ebuild | 38 +++++ games-simulation/gl117/metadata.xml | 8 + games-simulation/lincity-ng/Manifest | 1 + .../lincity-ng/files/lincity-ng-2.0-build.patch | 35 ++++ games-simulation/lincity-ng/lincity-ng-2.0.ebuild | 48 ++++++ games-simulation/lincity-ng/metadata.xml | 8 + games-simulation/lincity/Manifest | 1 + games-simulation/lincity/lincity-1.13.1.ebuild | 52 ++++++ games-simulation/lincity/metadata.xml | 8 + games-simulation/metadata.xml | 32 ++++ games-simulation/micropolis/Manifest | 2 + games-simulation/micropolis/metadata.xml | 6 + games-simulation/micropolis/micropolis-1.0.ebuild | 56 +++++++ games-simulation/openttd/Manifest | 1 + .../openttd/files/openttd-1.5.0-cflags.patch | 42 +++++ games-simulation/openttd/files/openttd.initd | 20 +++ games-simulation/openttd/metadata.xml | 12 ++ games-simulation/openttd/openttd-1.5.0.ebuild | 177 +++++++++++++++++++++ games-simulation/planets/Manifest | 1 + games-simulation/planets/metadata.xml | 5 + games-simulation/planets/planets-0.1.13.ebuild | 32 ++++ games-simulation/pmars-sdl/Manifest | 1 + games-simulation/pmars-sdl/metadata.xml | 5 + games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild | 87 ++++++++++ games-simulation/qct/Manifest | 1 + games-simulation/qct/files/qct-0.7-constant.patch | 21 +++ games-simulation/qct/metadata.xml | 5 + games-simulation/qct/qct-0.7-r1.ebuild | 49 ++++++ games-simulation/searchandrescue/Manifest | 2 + .../files/searchandrescue-1.5.0-build.patch | 66 ++++++++ games-simulation/searchandrescue/metadata.xml | 8 + .../searchandrescue/searchandrescue-1.5.0.ebuild | 73 +++++++++ games-simulation/senken/Manifest | 1 + .../senken/files/senken-0.3.0-as-needed.patch | 24 +++ .../senken/files/senken-0.3.0-warnings.patch | 31 ++++ games-simulation/senken/metadata.xml | 5 + games-simulation/senken/senken-0.3.0.ebuild | 50 ++++++ games-simulation/simutrans/Manifest | 2 + .../files/simutrans-0.120.0.1-Makefile.patch | 89 +++++++++++ games-simulation/simutrans/metadata.xml | 8 + .../simutrans/simutrans-0.120.0.1.ebuild | 54 +++++++ games-simulation/singularity/Manifest | 2 + games-simulation/singularity/metadata.xml | 11 ++ .../singularity/singularity-0.30c-r1.ebuild | 49 ++++++ 92 files changed, 2552 insertions(+) create mode 100644 games-simulation/bcs-demo/Manifest create mode 100644 games-simulation/bcs-demo/bcs-demo-1.3.ebuild create mode 100644 games-simulation/bcs-demo/metadata.xml create mode 100644 games-simulation/cannonsmash/Manifest create mode 100644 games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild create mode 100644 games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch create mode 100644 games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch create mode 100644 games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch create mode 100644 games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch create mode 100644 games-simulation/cannonsmash/metadata.xml create mode 100644 games-simulation/corsix-th/Manifest create mode 100644 games-simulation/corsix-th/corsix-th-0.21-r1.ebuild create mode 100644 games-simulation/corsix-th/corsix-th-0.30.ebuild create mode 100644 games-simulation/corsix-th/files/corsix-th-0.21-naming.patch create mode 100644 games-simulation/corsix-th/files/corsix-th-0.30-install.patch create mode 100644 games-simulation/corsix-th/files/corsix-th-nodoc.patch create mode 100644 games-simulation/corsix-th/metadata.xml create mode 100644 games-simulation/crashtest/Manifest create mode 100644 games-simulation/crashtest/crashtest-1.1.ebuild create mode 100644 games-simulation/crashtest/files/crashtest-1.1-gentoo.patch create mode 100644 games-simulation/crashtest/metadata.xml create mode 100644 games-simulation/crrcsim/Manifest create mode 100644 games-simulation/crrcsim/crrcsim-0.9.12-r1.ebuild create mode 100644 games-simulation/crrcsim/files/crrcsim-buildsystem.patch create mode 100644 games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch create mode 100644 games-simulation/crrcsim/metadata.xml create mode 100644 games-simulation/dangerdeep/Manifest create mode 100644 games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild create mode 100644 games-simulation/dangerdeep/files/dangerdeep-0.3.0-build.patch create mode 100644 games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc43.patch create mode 100644 games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc44.patch create mode 100644 games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc47.patch create mode 100644 games-simulation/dangerdeep/metadata.xml create mode 100644 games-simulation/fgrun/Manifest create mode 100644 games-simulation/fgrun/fgrun-3.0.0.ebuild create mode 100644 games-simulation/fgrun/metadata.xml create mode 100644 games-simulation/flightgear-data/Manifest create mode 100644 games-simulation/flightgear-data/flightgear-data-3.4.0.ebuild create mode 100644 games-simulation/flightgear-data/metadata.xml create mode 100644 games-simulation/flightgear/Manifest create mode 100644 games-simulation/flightgear/files/0001-flightgear-3.4.0-cmake.patch create mode 100644 games-simulation/flightgear/files/0002-flightgear-3.4.0-cmake.patch create mode 100644 games-simulation/flightgear/files/ac3d.vim create mode 100644 games-simulation/flightgear/files/nasal.vim create mode 100644 games-simulation/flightgear/flightgear-3.4.0.ebuild create mode 100644 games-simulation/flightgear/metadata.xml create mode 100644 games-simulation/gl117/Manifest create mode 100644 games-simulation/gl117/files/gl117-1.3.2-mode.patch create mode 100644 games-simulation/gl117/gl117-1.3.2.ebuild create mode 100644 games-simulation/gl117/metadata.xml create mode 100644 games-simulation/lincity-ng/Manifest create mode 100644 games-simulation/lincity-ng/files/lincity-ng-2.0-build.patch create mode 100644 games-simulation/lincity-ng/lincity-ng-2.0.ebuild create mode 100644 games-simulation/lincity-ng/metadata.xml create mode 100644 games-simulation/lincity/Manifest create mode 100644 games-simulation/lincity/lincity-1.13.1.ebuild create mode 100644 games-simulation/lincity/metadata.xml create mode 100644 games-simulation/metadata.xml create mode 100644 games-simulation/micropolis/Manifest create mode 100644 games-simulation/micropolis/metadata.xml create mode 100644 games-simulation/micropolis/micropolis-1.0.ebuild create mode 100644 games-simulation/openttd/Manifest create mode 100644 games-simulation/openttd/files/openttd-1.5.0-cflags.patch create mode 100755 games-simulation/openttd/files/openttd.initd create mode 100644 games-simulation/openttd/metadata.xml create mode 100644 games-simulation/openttd/openttd-1.5.0.ebuild create mode 100644 games-simulation/planets/Manifest create mode 100644 games-simulation/planets/metadata.xml create mode 100644 games-simulation/planets/planets-0.1.13.ebuild create mode 100644 games-simulation/pmars-sdl/Manifest create mode 100644 games-simulation/pmars-sdl/metadata.xml create mode 100644 games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild create mode 100644 games-simulation/qct/Manifest create mode 100644 games-simulation/qct/files/qct-0.7-constant.patch create mode 100644 games-simulation/qct/metadata.xml create mode 100644 games-simulation/qct/qct-0.7-r1.ebuild create mode 100644 games-simulation/searchandrescue/Manifest create mode 100644 games-simulation/searchandrescue/files/searchandrescue-1.5.0-build.patch create mode 100644 games-simulation/searchandrescue/metadata.xml create mode 100644 games-simulation/searchandrescue/searchandrescue-1.5.0.ebuild create mode 100644 games-simulation/senken/Manifest create mode 100644 games-simulation/senken/files/senken-0.3.0-as-needed.patch create mode 100644 games-simulation/senken/files/senken-0.3.0-warnings.patch create mode 100644 games-simulation/senken/metadata.xml create mode 100644 games-simulation/senken/senken-0.3.0.ebuild create mode 100644 games-simulation/simutrans/Manifest create mode 100644 games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch create mode 100644 games-simulation/simutrans/metadata.xml create mode 100644 games-simulation/simutrans/simutrans-0.120.0.1.ebuild create mode 100644 games-simulation/singularity/Manifest create mode 100644 games-simulation/singularity/metadata.xml create mode 100644 games-simulation/singularity/singularity-0.30c-r1.ebuild (limited to 'games-simulation') diff --git a/games-simulation/bcs-demo/Manifest b/games-simulation/bcs-demo/Manifest new file mode 100644 index 000000000000..2f083fc42cdd --- /dev/null +++ b/games-simulation/bcs-demo/Manifest @@ -0,0 +1,2 @@ +DIST bcsdemo_v1_3.sh.bin 5965217 SHA256 1e23f1fd2ec95e27c56037761c25e3af1ef1f23365540434b12e8b31527dbad7 SHA512 b3916ac72d21e80a09b80a406ea18ab4365d9c1b8139eec848f2e5d697d3d5afb6f27de5dac31c6b6fd860e3b406a3eae8a28aac0e00134629dbd5906bde816d WHIRLPOOL 25d2b12b9bdf6acd6695ae78f72e7712b1c0df4b99fb54c6c4621f1005d9375d265a1451955819c0d58630568533919439000f94c3adbd51ac68f6e0c7f205af +DIST openal-alan-hack-0.0.1.tar.gz 86168 SHA256 86e09a5d43461031094c1a09382b369c6f8e231e644dde9d98b7b35fb2e0767a SHA512 1794461cb917dcf2130977bd0ac9f09bf93cd235dd742d29e50a3e2666e6db60865bacd1927fc4607a4b308dcdf421fa2a186ad2a06eea778069ce712a89d943 WHIRLPOOL 4daec7dcabacde0494ba9b4f3cf245201d6e755fd432a8edc6a73105688a1e87ac1f33334afc546617bfb45b6560cc67e150873c982b7d2b38a79ecec203e056 diff --git a/games-simulation/bcs-demo/bcs-demo-1.3.ebuild b/games-simulation/bcs-demo/bcs-demo-1.3.ebuild new file mode 100644 index 000000000000..6ea1cd4050c2 --- /dev/null +++ b/games-simulation/bcs-demo/bcs-demo-1.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker games + +DESCRIPTION="design and build bridges and then stress test them with trains" +HOMEPAGE="http://www.chroniclogic.com/pontifex2.htm" +SRC_URI="ftp://ggdev-1.homelan.com/bcs/bcsdemo_v${PV/./_}.sh.bin + http://www.highprogrammer.com/alan/pfx2/openal-alan-hack-0.0.1.tar.gz" + +LICENSE="BCS" +SLOT="0" +KEYWORDS="-* ~amd64 x86" +IUSE="" +RESTRICT="strip" + +RDEPEND="sys-libs/glibc + media-libs/libsdl[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXau[abi_x86_32(-)] + x11-libs/libXdmcp[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)]" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} +QA_PREBUILT="${dir:1}/*" + +src_unpack() { + unpack_makeself bcsdemo_v${PV/./_}.sh.bin + unpack openal-alan-hack-0.0.1.tar.gz +} + +src_install() { + dodir "${dir}" "${GAMES_BINDIR}" + + tar -zxf bcsdemo.tar.gz -C "${Ddir}" || die + rm -f "${Ddir}"/bcs-linux-openal-fixer.sh || die + + exeinto "${dir}" +# doexe bin/Linux/x86/rungame.sh +# exeinto ${dir}/lib + mv "${Ddir}"/bcs "${Ddir}"/bcs-bin + newexe libopenal.so.0.0.6 libopenal.so.0 + echo '#!/bin/bash' >> "${Ddir}"/bcs + echo 'LD_PRELOAD="./libopenal.so.0" ./bcs-bin' >> "${Ddir}"/bcs + fperms 750 "${dir}"/bcs + games_make_wrapper bcs-demo ./bcs "${dir}" "${dir}" + + insinto "${dir}" + doins *.cfg + dodoc readme* + + prepgamesdirs +} diff --git a/games-simulation/bcs-demo/metadata.xml b/games-simulation/bcs-demo/metadata.xml new file mode 100644 index 000000000000..fb28670977d9 --- /dev/null +++ b/games-simulation/bcs-demo/metadata.xml @@ -0,0 +1,26 @@ + + + +games + +Building a bridge that doesn't break is what its all about, although watching +your bridge creation break and plunge a train into the watery depths below can be +half the fun. In the Bridge Construction Set you design and build bridges and +then stress test them to see how your creations hold up under pressure. If when +test vehicles pass over your bridge they make it safely across you know you've +succeeded. If they plummet into the river you know you need to go back to the +drawing board. + +The robust physics deployed in the Bridge Construction Set let you build a wide +variety of bridges that can span the river. The 3D graphics allow you to view +your bridge from any angle including a first person train view - its like being +strapped to the front of the train when your bridge is first tested (if this +happened in real life I think we might have engineers checking all their bridges +in a simulator). + +The Bridge Construction Set includes many types of bridge building levels in +varying degrees of difficulty from simple to complex with a tutorial secition to +get you started. A Level Editor is also included so you can create your own +levels and trade them with others. + + diff --git a/games-simulation/cannonsmash/Manifest b/games-simulation/cannonsmash/Manifest new file mode 100644 index 000000000000..1ad783838317 --- /dev/null +++ b/games-simulation/cannonsmash/Manifest @@ -0,0 +1,2 @@ +DIST csmash-0.6.6.tar.gz 1989943 SHA256 1be0b27dac46ba891b955bf8f122151baea6ee05b3c29616a09423250cfd9d3d SHA512 e8406eb17adf6c6cc4454b7d0a432ad1b071e1f72d9867fd46e458ade2d1dc1e927a7f2a336c80988b97051b9d188c3027dd8207f89f7e1fa60e1d0a6a5e8916 WHIRLPOOL 0b0af9343bdf47fdca52b3f91b7cd137c5731c41ee00b077e86efcfc13057cdc66bfc5601124bc983813ad9cfc3fbe3e0da101cc62de6b2cb3a0428cb8a535ba +DIST danslatristesse2-48.ogg 1070787 SHA256 aab5b276bc55ecad65c4b2e17f11daa6d173fc077e982e42997f10695f070bfe SHA512 5cbc457d511bdc736f3b359a8ddd3a514bd0d14418f2dbd68409394baadfcd9fd7630b228e4e9654b14b513e158e9a46b67bc58c5c04bfe382ee6e624dd16834 WHIRLPOOL dc87627a79900c9747ae620d3339a809cc72d7fc3b8a9fa05ab6b2423c02531600a4761c966b29bda5f531de96a68f58978d269f96c9603aae82ed87a0f52924 diff --git a/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild b/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild new file mode 100644 index 000000000000..f13546c7a2e3 --- /dev/null +++ b/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_OGG=danslatristesse2-48.ogg +DESCRIPTION="3D tabletennis game" +HOMEPAGE="http://cannonsmash.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/csmash-${PV}.tar.gz + vorbis? ( http://nan.p.utmc.or.jp/${MY_OGG} )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="vorbis nls" + +RDEPEND="virtual/opengl + virtual/glu + media-libs/libsdl[sound,video] + media-libs/sdl-mixer[vorbis?] + media-libs/sdl-image[jpeg,png] + x11-libs/gtk+:2 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/csmash-${PV} + +src_unpack() { + unpack csmash-${PV}.tar.gz +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-x-inc.patch \ + "${FILESDIR}"/${P}-sizeof-cast.patch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-flags.patch + if use vorbis ; then + sed -i \ + -e "s:${MY_OGG}:${GAMES_DATADIR}/csmash/${MY_OGG}:" ttinc.h \ + || die "sed failed" + fi +} + +src_configure() { + egamesconf \ + $(use_enable nls) \ + --datadir="${GAMES_DATADIR_BASE}" +} + +src_compile() { + emake \ + localedir="/usr/share" +} + +src_install() { + default + if use vorbis ; then + insinto "${GAMES_DATADIR}"/csmash + doins "${DISTDIR}"/${MY_OGG} + fi + newicon win32/orange.ico ${PN}.ico + make_desktop_entry csmash "Cannon Smash" /usr/share/pixmaps/${PN}.ico + prepgamesdirs +} diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch new file mode 100644 index 000000000000..85612b929c59 --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch @@ -0,0 +1,21 @@ +--- configure.old 2010-10-18 15:05:02.000000000 +0200 ++++ configure 2010-10-18 15:05:31.000000000 +0200 +@@ -5516,12 +5516,12 @@ + + + if test "x$x_includes" != "x"; then +- CFLAGS="-I $x_includes" +-else +- CFLAGS="" +-fi +-LDFLAGS="-L/usr/local/lib -L$x_libraries -L$libdir" +-CXXFLAGS="$CFLAGS -Wall" ++ CFLAGS="${CFLAGS} -I $x_includes" ++else ++ CFLAGS="${CFLAGS}" ++fi ++LDFLAGS="${LDFLAGS} -L/usr/local/lib -L$x_libraries -L$libdir" ++CXXFLAGS="${CXXFLAGS} -Wall" + + + echo "$as_me:$LINENO: checking for main in -lXmu" >&5 diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch new file mode 100644 index 000000000000..0f3e511f09cc --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch @@ -0,0 +1,22 @@ +--- BallView.h.old 2006-04-11 00:10:37.000000000 +0200 ++++ BallView.h 2006-04-11 00:10:53.000000000 +0200 +@@ -32,7 +32,7 @@ + + static GLuint m_number[10]; + private: +- void BallView::DrawTargetCircle(); ++ void DrawTargetCircle(); + GLUquadricObj *m_quad; + + void DrawBall(); +--- matrix.old 2006-04-11 00:13:18.000000000 +0200 ++++ matrix 2006-04-11 00:19:34.000000000 +0200 +@@ -42,7 +42,7 @@ + + /* __BEGIN__BEGIN__ */ + //__NAMESPACE_BEGIN(ese); +-#if (!defined __GNUG__) || (__GNUC__ == 3) ++#if (!defined __GNUG__) || (__GNUC__ >= 3) + template + void swap(T& a, T& b) + { diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch new file mode 100644 index 000000000000..9237f95978ef --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch @@ -0,0 +1,11 @@ +Don't typecast otherwise C++ will fail to match on some arches. + +http://bugs.gentoo.org/84187 + +--- loadparts.cpp ++++ loadparts.cpp +@@ -247,3 +247,3 @@ + // concat next line(s) +- int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1); ++ int bufsize = clamp((size_t)0, sizeof(line)-l, sizeof(line)-1); + fgets(&line[l-2], bufsize, fp); diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch new file mode 100644 index 000000000000..99c1e2f944fa --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch @@ -0,0 +1,18 @@ +Patch by Jason Bucata. +http://bugs.gentoo.org/84187 + +--- configure ++++ configure +@@ -5515,7 +5515,11 @@ + fi + + +-CFLAGS="-I $x_includes" ++if test "x$x_includes" != "x"; then ++ CFLAGS="-I $x_includes" ++else ++ CFLAGS="" ++fi + LDFLAGS="-L/usr/local/lib -L$x_libraries -L$libdir" + CXXFLAGS="$CFLAGS -Wall" + diff --git a/games-simulation/cannonsmash/metadata.xml b/games-simulation/cannonsmash/metadata.xml new file mode 100644 index 000000000000..bb95f92d8ecc --- /dev/null +++ b/games-simulation/cannonsmash/metadata.xml @@ -0,0 +1,8 @@ + + + + games + + cannonsmash + + diff --git a/games-simulation/corsix-th/Manifest b/games-simulation/corsix-th/Manifest new file mode 100644 index 000000000000..53f07f345574 --- /dev/null +++ b/games-simulation/corsix-th/Manifest @@ -0,0 +1,2 @@ +DIST CorsixTH-0.21-Source.tar.gz 3908197 SHA256 9a8b54644e614dc13d4b5d97bf023b8e023e0186f931695b8f4ec7e4577a4ead SHA512 6f75772a7af0a09d216f042eda437e4159061637b404c0282472dab4751b7d515e25c6a922bb51051cfe7c351396491ac68d7969e3f37dafb1862fb6c85b6b52 WHIRLPOOL 69e3a57581e0a7446fda839284d2200ed8be559403504a42cfa187c8180689b175a96fb7b15b2b124ac3605dd936190f8ee882f4ea464acdc81157f598b0b20a +DIST corsix-th-0.30.tar.gz 4345385 SHA256 4947ebdc50b01fde0aca797250d50b9806b9e6f3f4323872fd914f033f4c92e7 SHA512 1afd9d68dd6db82393e454e2c234179029902b701aafe4d2ca76381be195acba55f0ee062ce071a78cf3f5e8762e25452f386276aecc1af816553532b870964a WHIRLPOOL b01a1d72c0408c1d7d7d0a72e55c9b9f0863acfe064c07f4920c3f66bfb29fb0acf0a7e4e1d80e214b2e81d073e070427fbd8fca9cd34e14cda561159a88d4d0 diff --git a/games-simulation/corsix-th/corsix-th-0.21-r1.ebuild b/games-simulation/corsix-th/corsix-th-0.21-r1.ebuild new file mode 100644 index 000000000000..e0a87fb1a91c --- /dev/null +++ b/games-simulation/corsix-th/corsix-th-0.21-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils games + +MY_P="CorsixTH-${PV}-Source" + +DESCRIPTION="Open source clone of Theme Hospital" +HOMEPAGE="http://code.google.com/p/corsix-th/" +SRC_URI="http://corsix-th.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ffmpeg truetype opengl +sdl +sound +midi" +REQUIRED_USE="|| ( sdl opengl )" + +RDEPEND=">=dev-lang/lua-5.1 + media-libs/libsdl[X] + ffmpeg? ( virtual/ffmpeg ) + truetype? ( media-libs/freetype:2 ) + opengl? ( virtual/opengl ) + sound? ( media-libs/sdl-mixer ) + midi? ( media-libs/sdl-mixer[timidity] )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-nodoc.patch" + + # Use a coherent naming for installation dir + epatch "${FILESDIR}/${P}-naming.patch" +} + +src_configure() { + local mycmakeargs="$(cmake-utils_use_with opengl OPENGL) \ + $(cmake-utils_use_with sdl SDL) \ + $(cmake-utils_use_with sound AUDIO) \ + $(cmake-utils_use_with truetype FREETYPE2) \ + $(cmake-utils_use_with ffmpeg MOVIES) \ + -DCMAKE_INSTALL_PREFIX=${GAMES_DATADIR}" + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + DOCS="CorsixTH/README.txt CorsixTH/changelog.txt" cmake-utils_src_install + games_make_wrapper ${PN} "${GAMES_DATADIR}/${PN}/CorsixTH" || die + make_desktop_entry ${PN} ${PN} \ + "${GAMES_DATADIR}/${PN}/CorsixTH.ico" + prepgamesdirs +} diff --git a/games-simulation/corsix-th/corsix-th-0.30.ebuild b/games-simulation/corsix-th/corsix-th-0.30.ebuild new file mode 100644 index 000000000000..b62d08cd16c5 --- /dev/null +++ b/games-simulation/corsix-th/corsix-th-0.30.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CMAKE_IN_SOURCE_BUILD=1 +WX_GTK_VER="3.0" +inherit eutils cmake-utils gnome2-utils wxwidgets games + +MY_P="CorsixTH-${PV}-Source" + +DESCRIPTION="Open source clone of Theme Hospital" +HOMEPAGE="https://github.com/CorsixTH/CorsixTH" +SRC_URI="https://github.com/CorsixTH/CorsixTH/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ffmpeg mapeditor truetype opengl +sound" + +RDEPEND=">=dev-lang/lua-5.1 + media-libs/libsdl[X] + ffmpeg? ( virtual/ffmpeg ) + mapeditor? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) + truetype? ( media-libs/freetype:2 ) + opengl? ( virtual/opengl ) + sound? ( media-libs/sdl-mixer )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/CorsixTH-${PV} + +pkg_setup() { + games_pkg_setup + + if use mapeditor && use !opengl ; then + eerror "need opengl enabled for mapeditor to work!" + die "need opengl enabled for mapeditor to work!" + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-install.patch +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with opengl OPENGL) + $(cmake-utils_use_with sound AUDIO) + $(cmake-utils_use_with truetype FREETYPE2) + $(cmake-utils_use_with ffmpeg MOVIES) + $(cmake-utils_use_build mapeditor MAPEDITOR) + -DCMAKE_INSTALL_PREFIX="${GAMES_DATADIR}" + -DBINDIR="$(games_get_libdir)/${PN}" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + DOCS="CorsixTH/changelog.txt" cmake-utils_src_install + games_make_wrapper ${PN} "$(games_get_libdir)/${PN}/CorsixTH" \ + "${GAMES_DATADIR}/CorsixTH" + games_make_wrapper ${PN}-mapedit "$(games_get_libdir)/${PN}/MapEdit" \ + "${GAMES_DATADIR}/CorsixTH" + newicon -s scalable CorsixTH/Original_Logo.svg ${PN}.svg + make_desktop_entry ${PN} + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "optional dependencies:" + elog " media-libs/sdl-mixer[timidity] (MIDI sound support)" + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-simulation/corsix-th/files/corsix-th-0.21-naming.patch b/games-simulation/corsix-th/files/corsix-th-0.21-naming.patch new file mode 100644 index 000000000000..b82b5fa91297 --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-0.21-naming.patch @@ -0,0 +1,17 @@ +--- CorsixTH/CMakeLists.txt 2013-07-26 19:35:30.463506153 +0200 ++++ CorsixTH/CMakeLists.txt.new 2013-07-26 19:38:07.944473631 +0200 +@@ -222,10 +222,10 @@ + ENDIF() + + ELSE() +- install(TARGETS CorsixTH RUNTIME DESTINATION CorsixTH) +- install(DIRECTORY Lua Levels DESTINATION CorsixTH PATTERN "*.svn" EXCLUDE) +- install(DIRECTORY Bitmap DESTINATION CorsixTH ++ install(TARGETS CorsixTH RUNTIME DESTINATION corsix-th) ++ install(DIRECTORY Lua Levels DESTINATION corsix-th PATTERN "*.svn" EXCLUDE) ++ install(DIRECTORY Bitmap DESTINATION corsix-th + FILES_MATCHING REGEX ".*\\.(tab|pal|dat|png)$" + PATTERN "*.svn" EXCLUDE) +- install(FILES CorsixTH.lua CorsixTH.ico DESTINATION CorsixTH ) ++ install(FILES CorsixTH.lua CorsixTH.ico DESTINATION corsix-th ) + ENDIF() diff --git a/games-simulation/corsix-th/files/corsix-th-0.30-install.patch b/games-simulation/corsix-th/files/corsix-th-0.30-install.patch new file mode 100644 index 000000000000..6c84bb09870f --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-0.30-install.patch @@ -0,0 +1,40 @@ +From: Julian Ospald +Date: Sun Oct 12 21:30:07 UTC 2014 +Subject: + +--- MapEdit/CMakeLists.txt ++++ MapEdit/CMakeLists.txt +@@ -207,5 +207,5 @@ + ENDIF() + + ELSE() +- install(TARGETS MapEdit RUNTIME DESTINATION CorsixTH) ++ install(TARGETS MapEdit RUNTIME DESTINATION ${BINDIR}) + ENDIF() +--- CorsixTH/CMakeLists.txt ++++ CorsixTH/CMakeLists.txt +@@ -223,10 +223,10 @@ + ENDIF() + + ELSE() +- install(TARGETS CorsixTH RUNTIME DESTINATION CorsixTH) ++ install(TARGETS CorsixTH RUNTIME DESTINATION ${BINDIR}) + install(DIRECTORY Lua Levels DESTINATION CorsixTH PATTERN "*.svn" EXCLUDE) + install(DIRECTORY Bitmap DESTINATION CorsixTH + FILES_MATCHING REGEX ".*\\.(tab|pal|dat|png)$" + PATTERN "*.svn" EXCLUDE) +- install(FILES CorsixTH.lua LICENSE.txt CorsixTH.ico DESTINATION CorsixTH ) ++ install(FILES CorsixTH.lua CorsixTH.ico DESTINATION CorsixTH ) + ENDIF() +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -25,6 +25,9 @@ + SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.5) + ENDIF() + ++# paths ++set(BINDIR bin CACHE PATH "where to install binaries") ++ + # Define our options + OPTION(WITH_OPENGL "Activate OpenGL Renderer" OFF) + OPTION(WITH_DIRECTX "Activate DirectX Renderer" OFF) diff --git a/games-simulation/corsix-th/files/corsix-th-nodoc.patch b/games-simulation/corsix-th/files/corsix-th-nodoc.patch new file mode 100644 index 000000000000..0fcae9bcd702 --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-nodoc.patch @@ -0,0 +1,11 @@ +diff --git a/CorsixTH/CMakeLists.txt b/CorsixTH/CMakeLists.txt +index dfdb59e..9b97b3c 100755 +--- a/CorsixTH/CMakeLists.txt ++++ b/CorsixTH/CMakeLists.txt +@@ -191,5 +191,5 @@ ELSE() + install(DIRECTORY Bitmap DESTINATION CorsixTH + FILES_MATCHING REGEX ".*\\.(tab|pal|dat|png)$" + PATTERN "*.svn" EXCLUDE) +- install(FILES CorsixTH.lua LICENSE.txt CorsixTH.ico DESTINATION CorsixTH ) ++ install(FILES CorsixTH.lua CorsixTH.ico DESTINATION CorsixTH ) + ENDIF() diff --git a/games-simulation/corsix-th/metadata.xml b/games-simulation/corsix-th/metadata.xml new file mode 100644 index 000000000000..4adeb5616a34 --- /dev/null +++ b/games-simulation/corsix-th/metadata.xml @@ -0,0 +1,24 @@ + + + + + miknix@gentoo.org + Angelo Arrifano + + + Use ffmpeg for playing in-game cutscenes. + Use OpenGL for rendering. + Use SDL for rendering. + Use SDL mixer for in-game sound. + Build the map editor (needs opengl enabled!). + + Use SDL mixer and timidity for in-game music. + Use high quality fonts. + + + CorsixTH aims to reimplement the game engine of Theme Hospital, with the capability of loading assets including graphics and levels from the original game. This means that you will need a purchased copy of Theme Hospital, or a copy of the demo, in order to use CorsixTH. + + + CorsixTH/CorsixTH + + diff --git a/games-simulation/crashtest/Manifest b/games-simulation/crashtest/Manifest new file mode 100644 index 000000000000..dcd50f19a3ea --- /dev/null +++ b/games-simulation/crashtest/Manifest @@ -0,0 +1 @@ +DIST crashtest-1.1.tar.gz 134769 SHA256 55c5ce29857263ceebc1c3f42c153f275dfc47711e9248395fd4398d6ef52ab9 SHA512 f361b5f202cdcdca871357eb2a2158af2958f4058b6754c63dc5a20c3e08e2ef532e984596d0daac073f2321b2db02e3f8c2a0a4998450fc953c1661d712d59c WHIRLPOOL 272352015016844afe6f02fff92be96b6f52e0c2cdfb2e545cc3a2f6e5196f4825bd99c971b89c371be18c6b983e5b04a1bbe739df5cae7c8579ac6319ea80cd diff --git a/games-simulation/crashtest/crashtest-1.1.ebuild b/games-simulation/crashtest/crashtest-1.1.ebuild new file mode 100644 index 000000000000..0525ffe1f9ce --- /dev/null +++ b/games-simulation/crashtest/crashtest-1.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic games + +DESCRIPTION="Educational car crash simulator" +HOMEPAGE="http://www.stolk.org/crashtest/" +SRC_URI="http://www.stolk.org/crashtest/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + x11-libs/fltk:1[opengl] + dev-games/ode + media-libs/alsa-lib + virtual/opengl + virtual/glu + media-libs/freeglut" +DEPEND="${RDEPEND} + >=media-libs/plib-1.8.4" + +S=${WORKDIR}/${P}/src-${PN} + +src_prepare() { + epatch "${FILESDIR}/${P}"-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \ + Makefile ${PN}.cxx || die + append-flags -DHAVE_ISNANF +} + +src_install() { + default + make_desktop_entry ${PN} Crashtest + prepgamesdirs +} diff --git a/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch new file mode 100644 index 000000000000..820fd4924737 --- /dev/null +++ b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch @@ -0,0 +1,94 @@ +diff -ru crashtest-1.1.orig/src-crashtest/Makefile crashtest-1.1/src-crashtest/Makefile +--- crashtest-1.1.orig/src-crashtest/Makefile 2009-02-15 17:11:31.000000000 -0500 ++++ crashtest-1.1/src-crashtest/Makefile 2009-10-14 01:00:13.900627555 -0400 +@@ -1,34 +1,12 @@ +-# EDIT THESE SETTINGS +- +-PLIBPREFIX=/usr +-ODEPREFIX=/usr +-CXX=g++ +- +-#PLIBPREFIX=$(HOME) +-#ODEPREFIX=$(HOME) +-#CXX=g++-4.0 +- +-# END OF CUSTOM SETTINGS +- +-CXXFLAGS=\ +- -I$(ODEPREFIX)/include \ +- -I$(PLIBPREFIX)/include \ +- -I../src-common \ +- -O2 -g -Wall +- +-LFLAGS=\ +- -L$(PLIBPREFIX)/lib \ +- -L/usr/X11R6/lib +- + OBJS=staticworldobject.o crashtest.o dynamicobject.o cartobject.o ++CXXFLAGS+=-I `fltk-config --includedir` `ode-config --cflags` + +-LIBS= $(ODEPREFIX)/lib/libode.a -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL `fltk-config --use-gl --use-images --ldflags` +- ++LIBS= `ode-config --libs` -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL -lasound `fltk-config --use-gl --use-images --ldflags` -lglut + + all: crashtest + + crashtest: $(OBJS) +- $(CXX) -o crashtest $(OBJS) $(LFLAGS) $(LIBS) ++ $(CXX) -o crashtest $(OBJS) $(LDFLAGS) $(LIBS) + + staticworldobject.o: ../src-common/staticworldobject.cxx ../src-common/staticworldobject.h ../src-common/worldobject.h + $(CXX) -c $(CXXFLAGS) ../src-common/staticworldobject.cxx +@@ -37,10 +14,10 @@ + $(CXX) -c $(CXXFLAGS) ../src-common/dynamicobject.cxx + + cartobject.o: cartobject.cxx cartobject.h +- $(CXX) -c $(CXXFLAGS) cartobject.cxx ++ $(CXX) -c $(CXXFLAGS) -I../src-common cartobject.cxx + + crashtest.o: crashtest.cxx crashworld.h ../src-common/modelmap.h cartobject.h bipedobject.h ../src-common/brickwall.h ../src-common/stereocontext.h ../src-common/usercam.h +- $(CXX) -c $(CXXFLAGS) crashtest.cxx ++ $(CXX) -c $(CXXFLAGS) -I../src-common crashtest.cxx + + + +@@ -48,13 +25,13 @@ + PLODE_DATADIR=`pwd` ./crashtest + + +-GAMEDIR=$(DESTDIR)/usr/share/games/crashtest ++GAMEDIR=$(DESTDIR)@GENTOO_DATADIR@ + install: crashtest + # Directories +- mkdir -p $(DESTDIR)/usr/games/ ++ mkdir -p $(DESTDIR)@GENTOO_BINDIR@ + mkdir -p $(GAMEDIR)/models/ + # Binary +- install crashtest $(DESTDIR)/usr/games/crashtest ++ install crashtest $(DESTDIR)@GENTOO_BINDIR@ + # Models + install -m 644 models/testground.3ds $(GAMEDIR)/models/testground.3ds + install -m 644 models/biped_torso.3ds $(GAMEDIR)/models/biped_torso.3ds +diff -ru crashtest-1.1.orig/src-crashtest/crashtest.cxx crashtest-1.1/src-crashtest/crashtest.cxx +--- crashtest-1.1.orig/src-crashtest/crashtest.cxx 2009-02-15 17:08:24.000000000 -0500 ++++ crashtest-1.1/src-crashtest/crashtest.cxx 2009-10-14 01:01:25.822753522 -0400 +@@ -615,13 +615,7 @@ + + int main(int argc, char *argv[]) + { +- char *bindirname = dirname(argv[0]); +- if (!strcmp(bindirname,".")) +- dirprefix="/usr/share/games/crashtest"; +- else +- { +- dirprefix = dirname(bindirname) + std::string("/share/games/crashtest"); +- } ++ dirprefix="@GENTOO_DATADIR@"; + if (getenv("PLODE_DATADIR")) + dirprefix = getenv("PLODE_DATADIR"); + modelmap = new ModelMap(dirprefix); +@@ -745,4 +739,3 @@ + Fl::add_idle(idle, &simwin); + Fl::run(); + } +- diff --git a/games-simulation/crashtest/metadata.xml b/games-simulation/crashtest/metadata.xml new file mode 100644 index 000000000000..d06057ad270b --- /dev/null +++ b/games-simulation/crashtest/metadata.xml @@ -0,0 +1,11 @@ + + + +games + +Crashtest simulates car crashes. This is an educational tool that can be used to +acquire much insight into this complex process. The user can learn about the +relation between speed, reaction-time and stopping distance. Also, many physical +properties can be studied. + + diff --git a/games-simulation/crrcsim/Manifest b/games-simulation/crrcsim/Manifest new file mode 100644 index 000000000000..0a90e22b8274 --- /dev/null +++ b/games-simulation/crrcsim/Manifest @@ -0,0 +1 @@ +DIST crrcsim-0.9.12.tar.gz 7355827 SHA256 2d166aec9ff4394a0252368d4cfcac5ba4ab8a29f58f99cd1649721a8f65a3fb SHA512 53c4a530922d58ca0211a5a3171d927c9c9161139c63e73d8dbc602e0aa1c259ef0f3ba712b30a71dc357889bbf59fa76888315bdcd264e0d29307e66b70b00a WHIRLPOOL 3f177ae208e0f70b0ebdc9aa4e1e200ff73bdf656fecb67c6ffe7a8e303bae4ce8caab4c4e01e52371c42ae389574e9c821dcb5c4afb4dc32b94661add18b7ee diff --git a/games-simulation/crrcsim/crrcsim-0.9.12-r1.ebuild b/games-simulation/crrcsim/crrcsim-0.9.12-r1.ebuild new file mode 100644 index 000000000000..b0b44cc47800 --- /dev/null +++ b/games-simulation/crrcsim/crrcsim-0.9.12-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +WANT_AUTOMAKE="1.10" +inherit autotools eutils gnome2-utils games + +DESCRIPTION="model-airplane flight simulation program" +HOMEPAGE="http://sourceforge.net/projects/crrcsim/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="portaudio" + +RDEPEND="sci-mathematics/cgal + media-libs/plib + media-libs/libsdl[X,sound,joystick,opengl,video] + portaudio? ( media-libs/portaudio )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-buildsystem.patch + if has_version "sci-mathematics/cgal[gmp(+)]" ; then + epatch "${FILESDIR}"/${PN}-cgal_gmp.patch + fi + eautoreconf +} + +src_configure() { + egamesconf \ + --datarootdir="${EPREFIX%/}/usr/share" \ + --datadir="${GAMES_DATADIR}" \ + --docdir="${EPREFIX%/}/usr/share/doc/${PF}" \ + $(use_with portaudio) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS HISTORY NEWS README + doicon -s 32 packages/icons/${PN}.png + make_desktop_entry ${PN} + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-simulation/crrcsim/files/crrcsim-buildsystem.patch b/games-simulation/crrcsim/files/crrcsim-buildsystem.patch new file mode 100644 index 000000000000..3bc784d16bd7 --- /dev/null +++ b/games-simulation/crrcsim/files/crrcsim-buildsystem.patch @@ -0,0 +1,25 @@ +--- crrcsim-0.9.11/configure.ac ++++ crrcsim-0.9.11/configure.ac +@@ -79,8 +79,12 @@ + dnl Default is: no portaudio present + portaudio=0 + ++AC_ARG_WITH([portaudio], AS_HELP_STRING([--without-portaudio], [Build without portaudio library (default: test)])) ++ ++AS_IF([test "x$with_portaudio" != "xno"], [ + dnl Check for the Portaudio header file + AC_CHECK_HEADER([portaudio.h]) ++]) + + if (test "x$ac_cv_header_portaudio_h" = "xyes"); then + dnl Check for Portaudio 18 +--- crrcsim-0.9.12/locale/Makefile.am ++++ crrcsim-0.9.12/locale/Makefile.am +@@ -1,7 +1,5 @@ + # Makefile.am for "/locale" + +-localedir = $(datadir)/locale +- + nobase_locale_DATA = fr/LC_MESSAGES/crrcsim.mo \ + de/LC_MESSAGES/crrcsim.mo \ + it/LC_MESSAGES/crrcsim.mo diff --git a/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch b/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch new file mode 100644 index 000000000000..10d6bff6b769 --- /dev/null +++ b/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch @@ -0,0 +1,11 @@ +--- crrcsim-0.9.11/configure.ac ++++ crrcsim-0.9.11/configure.ac +@@ -229,7 +229,7 @@ + has_CGAL="yes (found CGAL v3)" + fi + CGAL_CFLAGS=-frounding-math +- CGAL_LIBS=-lCGAL ++ CGAL_LIBS="-lCGAL -lgmp" + AC_DEFINE([WINDDATA3D], [1], [Import code for wind data, needs CGAL, 0 to disable]) + else + has_CGAL="no (CGAL not found)" diff --git a/games-simulation/crrcsim/metadata.xml b/games-simulation/crrcsim/metadata.xml new file mode 100644 index 000000000000..dabacf6fdea0 --- /dev/null +++ b/games-simulation/crrcsim/metadata.xml @@ -0,0 +1,12 @@ + + + + games + + xmw@gentoo.org + Michael Weber + + + crrcsim + + diff --git a/games-simulation/dangerdeep/Manifest b/games-simulation/dangerdeep/Manifest new file mode 100644 index 000000000000..6f9a3c89db07 --- /dev/null +++ b/games-simulation/dangerdeep/Manifest @@ -0,0 +1,2 @@ +DIST dangerdeep-0.3.0.tar.gz 1100972 SHA256 bdab6b9b1c2b5f8e618f5c346965ec1f48c9edc9bff1d4f5ff7c8d235464283f SHA512 97d47654d6d3728365ec0f7955f360a35ad105442663f5dd05f0a37ae6ae67216eb33f183df788c3cd0ba9878dbef22d607ddac86bf43159e87ef1c2429b7f87 WHIRLPOOL bdd7c2b089fe50500a16a2ff882a9b72236e69f5218fe1bfd8d2443edf851aeafd03deb3c8c6269ce1219ae8d2e83300251d8fbda5df93b13169bdcd6480cdb3 +DIST dangerdeep-data-0.3.0.zip 61914764 SHA256 00412a4f8f571a9291df48fa40fbbe846680b4fcb1de2f168539b1606cb4fb81 SHA512 c6d7de055abc77c1c61d0f999d885f44121934d66f89c8e4e55231cc20605ef679cd278bebadc879862e3da07d46bae3ab02f97d3ee4179762efd895e8f91b3e WHIRLPOOL 47eeca4f4c0ff4f573b26938c5db8f0c4f9f8c2f4d77de34fa2362a1cfa396a176553efb3928818d61c96b0c6f915a9157b8cc97918821875bdefff2cf10b3c7 diff --git a/games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild b/games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild new file mode 100644 index 000000000000..f0d22bf06ff2 --- /dev/null +++ b/games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils scons-utils games + +DESCRIPTION="a World War II German submarine simulation" +HOMEPAGE="http://dangerdeep.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz + mirror://sourceforge/${PN}/${PN}-data-${PV}.zip" + +LICENSE="GPL-2 CC-BY-NC-ND-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="cpu_flags_x86_sse debug" + +RDEPEND="virtual/opengl + virtual/glu + sci-libs/fftw:3.0 + media-libs/libsdl[joystick,opengl,video] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-net" +DEPEND="${RDEPEND} + app-arch/unzip" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc47.patch \ + "${FILESDIR}"/${P}-gcc44.patch + sed -i -e "/console_log.txt/ s:fopen.*:stderr;:" src/system.cpp || die +} + +src_compile() { + local sse=-1 + + if use cpu_flags_x86_sse ; then + use amd64 && sse=3 || sse=1 + fi + + escons \ + usex86sse=${sse} \ + datadir="${GAMES_DATADIR}"/${PN} \ + $(use_scons debug) +} + +src_install() { + dogamesbin build/linux/${PN} + + insinto "${GAMES_DATADIR}"/${PN} + doins -r ../data/* + + newicon dftd_icon.png ${PN}.png + make_desktop_entry ${PN} "Danger from the Deep" + + dodoc ChangeLog CREDITS README + doman doc/man/${PN}.6 + + prepgamesdirs +} diff --git a/games-simulation/dangerdeep/files/dangerdeep-0.3.0-build.patch b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-build.patch new file mode 100644 index 000000000000..367db1cfbb96 --- /dev/null +++ b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-build.patch @@ -0,0 +1,39 @@ +--- SConstruct ++++ SConstruct +@@ -119,6 +119,7 @@ + + else: + print "Compiling for Unix/Posix/Linux Environment" ++ SConsignFile() + env = Environment(ENV = os.environ) + env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL']) + libpath = ['/usr/X11R6/lib'] +@@ -126,13 +127,18 @@ + sdllibs = ['SDL', 'SDL_image'] + ccflags = '-Wall `sdl-config --cflags` `pkg-config --cflags x11`' + env.Append(LINKFLAGS = '`pkg-config --libs-only-L x11`') ++ if os.environ.has_key('CXX'): ++ env['CXX'] = os.environ['CXX'] ++ if os.environ.has_key('CXXFLAGS'): ++ ccflags += os.environ['CXXFLAGS'] ++ if os.environ.has_key('LDFLAGS'): ++ env.Append(LINKFLAGS = os.environ['LDFLAGS']) + if (debug >= 3): + ccflags += ' -g -pg -O3' # profiling + elif (debug == 2): + ccflags += ' -g -O0' + env.Append(CPPDEFINES = ['DEBUG']) + elif (debug == 1): +- ccflags += ' -g -O1' + env.Append(CPPDEFINES = ['DEBUG']) + elif (debug == -1): + ccflags += ' -g -O3 -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow' +@@ -140,8 +144,6 @@ + ccflags += ' -g -O3 -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -ftree-vectorize -ftree-vectorizer-verbose=2' + elif (debug == -3): # special g++4.0+ auto vectorization + ccflags += ' -g -O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -m3dnow -ftree-vectorize -ftree-vectorizer-verbose=2' +- else: +- ccflags += ' -g -O2' # debug symbols will be stripped by the linker for a debian package + # choose specific architecture if requested + if archflag != '': + ccflags += ' -march=' + archflag diff --git a/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc43.patch b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc43.patch new file mode 100644 index 000000000000..1588b0bbae07 --- /dev/null +++ b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc43.patch @@ -0,0 +1,80 @@ +--- src/bspline_test.cpp ++++ src/bspline_test.cpp +@@ -1,6 +1,7 @@ + // some test code for the 2d bsplines! + #include "bspline.h" + #include ++#include + using namespace std; + + double rnd() { return double(rand())/RAND_MAX; } +--- src/convoy.h ++++ src/convoy.h +@@ -27,6 +27,7 @@ + #include "vector2.h" + #include + #include ++#include + class ship; + + ///\brief Grouping of ships and other objects with central control. +--- src/date.cpp ++++ src/date.cpp +@@ -21,6 +21,7 @@ + // subsim (C)+(W) Markus Petermann and Thorsten Jordan. SEE LICENSE + + #include ++#include + #include "date.h" + #include "texts.h" + +--- src/ocean_wave_generator.h ++++ src/ocean_wave_generator.h +@@ -29,6 +29,7 @@ + #include "environment.h" + #include + #include ++#include + + // use float fftw (faster) or double (default) ? + #ifdef WITH_FLOAT_FFTW +--- src/ptrlist.h ++++ src/ptrlist.h +@@ -25,6 +25,7 @@ + + #include + #include ++#include + + // same as std::list regarding the interface (partly), but handles pointers. + template +--- src/ptrvector.h ++++ src/ptrvector.h +@@ -25,6 +25,7 @@ + + #include + #include ++#include + + // same as std::vector regarding the interface, but handles pointers. + template +--- src/sea_object.h ++++ src/sea_object.h +@@ -27,6 +27,7 @@ + #include "ptrvector.h" + #include + #include ++#include + + #include "vector3.h" + #include "angle.h" +--- src/widget.cpp ++++ src/widget.cpp +@@ -32,6 +32,7 @@ + #include "datadirs.h" + #include + #include ++#include + using std::vector; + using std::list; + using std::string; diff --git a/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc44.patch b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc44.patch new file mode 100644 index 000000000000..23d3c470c900 --- /dev/null +++ b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc44.patch @@ -0,0 +1,20 @@ +--- src/date.cpp ++++ src/date.cpp +@@ -22,6 +22,7 @@ + + #include + #include ++#include + #include "date.h" + #include "texts.h" + +--- src/filehelper.cpp ++++ src/filehelper.cpp +@@ -23,6 +23,7 @@ + #include "filehelper.h" + #include "error.h" + #include ++#include + using namespace std; + + #ifdef WIN32 diff --git a/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc47.patch b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc47.patch new file mode 100644 index 000000000000..54adcec10daf --- /dev/null +++ b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc47.patch @@ -0,0 +1,10 @@ +--- src/faulthandler.h.old 2012-07-25 14:37:32.000000000 +0200 ++++ src/faulthandler.h 2012-07-25 14:38:16.000000000 +0200 +@@ -50,6 +50,7 @@ + #include + #include + #include ++#include + + // Note: use --export-dynamic as linker option or you won't get function names here. + diff --git a/games-simulation/dangerdeep/metadata.xml b/games-simulation/dangerdeep/metadata.xml new file mode 100644 index 000000000000..f6539c9a89b3 --- /dev/null +++ b/games-simulation/dangerdeep/metadata.xml @@ -0,0 +1,8 @@ + + + + games + + dangerdeep + + diff --git a/games-simulation/fgrun/Manifest b/games-simulation/fgrun/Manifest new file mode 100644 index 000000000000..afb8fca0d824 --- /dev/null +++ b/games-simulation/fgrun/Manifest @@ -0,0 +1 @@ +DIST fg-fgrun-e13e42811239008fded7685d8f2311bb571f6a58.tar.gz 194601 SHA256 004cbed58ffcc8a4e7f65de462081dc414e8c58f76b4425bf84ff39f51c073f0 SHA512 16bb59a8d5c05fb55a52dcc470742d28affff9db837d01197c915c98ca6232b4831d0b5908075601a6e3e0c96c784ea042f5382376fbb506179fc97da487abbc WHIRLPOOL 713b5768651af14eacb0371de28d0e89a33a85c1e1e7da43a1139fda7662cedd0b270db2e3238bcd2de2f6be7547d8a1ce292e0dc3486f642c6bdf4f84b4aacb diff --git a/games-simulation/fgrun/fgrun-3.0.0.ebuild b/games-simulation/fgrun/fgrun-3.0.0.ebuild new file mode 100644 index 000000000000..18a5d7aa893b --- /dev/null +++ b/games-simulation/fgrun/fgrun-3.0.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit games cmake-utils + +# Exported from git tag 3.0.0-final +MY_PN=fg-fgrun +MY_PV=e13e42811239008fded7685d8f2311bb571f6a58 +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="A graphical frontend for the FlightGear Flight Simulator" +HOMEPAGE="http://sourceforge.net/projects/fgrun" +SRC_URI="mirror://gentoo/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug nls" + +COMMON_DEPEND=" + >=dev-games/openscenegraph-3.0.1 + sys-libs/zlib + x11-libs/fltk:1[opengl,threads] +" +DEPEND="${COMMON_DEPEND} + >=dev-games/simgear-${PV} + >=dev-libs/boost-1.34 + nls? ( sys-devel/gettext ) +" +RDEPEND="${COMMON_DEPEND} + >=games-simulation/flightgear-${PV} +" + +S=${WORKDIR}/${MY_PN} +DOCS=(AUTHORS NEWS) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + $(cmake-utils_use_enable nls) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + prepgamesdirs +} diff --git a/games-simulation/fgrun/metadata.xml b/games-simulation/fgrun/metadata.xml new file mode 100644 index 000000000000..49453da3b0bc --- /dev/null +++ b/games-simulation/fgrun/metadata.xml @@ -0,0 +1,8 @@ + + + +games + +A graphical frontend to run FlightGear Flight Simulator. + + diff --git a/games-simulation/flightgear-data/Manifest b/games-simulation/flightgear-data/Manifest new file mode 100644 index 000000000000..48b1633a4282 --- /dev/null +++ b/games-simulation/flightgear-data/Manifest @@ -0,0 +1 @@ +DIST FlightGear-data-3.4.0.tar.bz2 1145893777 SHA256 8cefa7c323d974d8e51fd23c97ae79dc731e65b81e1729cb1bc9bc1f99df128b SHA512 791ff1b1f7f759ccc73f738ba6cb6fd050d1341ae031a872745b4c1145cdb92de62193df7ea6e9fe05a1c95a60fa664da56015d643244d38c7b0b72a2c3146d9 WHIRLPOOL 0abaa4da7e9032469da80500fc23c84d6b696fc596529853a3a614bb3627ef6081c12ea78e6e8c987e6b11b303cca0d8da5c9628164d2a93bed452230302a655 diff --git a/games-simulation/flightgear-data/flightgear-data-3.4.0.ebuild b/games-simulation/flightgear-data/flightgear-data-3.4.0.ebuild new file mode 100644 index 000000000000..f464e4023a00 --- /dev/null +++ b/games-simulation/flightgear-data/flightgear-data-3.4.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit games + +DESCRIPTION="FlightGear data files" +HOMEPAGE="http://www.flightgear.org/" +SRC_URI="mirror://flightgear/Shared/FlightGear-data-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +# data files split to separate package since 2.10.0 +RDEPEND=" + ! + + +games + + reavertm@gentoo.org + Maciej Mrozowski + + diff --git a/games-simulation/flightgear/Manifest b/games-simulation/flightgear/Manifest new file mode 100644 index 000000000000..7988a9ffd062 --- /dev/null +++ b/games-simulation/flightgear/Manifest @@ -0,0 +1 @@ +DIST flightgear-3.4.0.tar.bz2 7522457 SHA256 b5645d05b50728a89f091292bc557f440d8f8719dd9cebf7f5bf3fa8ea795780 SHA512 10626d00b34255753dc5a5c82076909c296219472faf51c38460cc357ac014b40bd127454f28b2d857f1a1a299716430fd8f04dc7881552b3c24dee6eb616b1e WHIRLPOOL 636ca7e012175141bc4b081cb6137e5348d49b873d241c5d0f1ed0a2581b32d2f23f4fe0ed97d5a1b72440afd14687e5de4e6ebeeaf07b4e854b0ca47875b82f diff --git a/games-simulation/flightgear/files/0001-flightgear-3.4.0-cmake.patch b/games-simulation/flightgear/files/0001-flightgear-3.4.0-cmake.patch new file mode 100644 index 000000000000..e14920b246c2 --- /dev/null +++ b/games-simulation/flightgear/files/0001-flightgear-3.4.0-cmake.patch @@ -0,0 +1,30 @@ +From 06a260822c0eb10f47533a2cbf5cbbc968878c17 Mon Sep 17 00:00:00 2001 +From: James Turner +Date: Tue, 17 Mar 2015 23:33:57 +0000 +Subject: [PATCH] Make 3.2.1 fix: make thread check platform specific. + +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8847614..c881c32 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -109,6 +109,8 @@ IF(APPLE) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7") + elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR + ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") ++ find_package(Threads REQUIRED) ++ + set(USE_DBUS_DEFAULT 1) + + find_package(UDev) +@@ -230,7 +232,6 @@ endif(EVENT_INPUT) + # check required dependencies + find_package(Boost REQUIRED) + find_package(ZLIB REQUIRED) +-find_package(Threads REQUIRED) + find_package(OpenGL REQUIRED) + find_package(OpenAL REQUIRED) + find_package(OpenSceneGraph 3.2.0 REQUIRED diff --git a/games-simulation/flightgear/files/0002-flightgear-3.4.0-cmake.patch b/games-simulation/flightgear/files/0002-flightgear-3.4.0-cmake.patch new file mode 100644 index 000000000000..2151acdbbcf4 --- /dev/null +++ b/games-simulation/flightgear/files/0002-flightgear-3.4.0-cmake.patch @@ -0,0 +1,54 @@ +From 14405fe2e397b9a6ab9b004cb8c7459eeb41ec59 Mon Sep 17 00:00:00 2001 +From: "Rebecca N. Palmer" +Date: Fri, 3 Apr 2015 19:15:52 +0100 +Subject: [PATCH] Fix compile with CMake 3.2.1, by Kevin Seroux + +Explicitly link X11, as this no longer comes with OpenGL +--- + CMakeLists.txt | 1 + + src/Main/CMakeLists.txt | 4 +++- + utils/fgviewer/CMakeLists.txt | 4 ++++ + 3 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c881c32..c443f58 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -110,6 +110,7 @@ IF(APPLE) + elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR + ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + find_package(Threads REQUIRED) ++ find_package(X11 REQUIRED) + + set(USE_DBUS_DEFAULT 1) + +diff --git a/src/Main/CMakeLists.txt b/src/Main/CMakeLists.txt +index 949b379..4b6926e 100644 +--- a/src/Main/CMakeLists.txt ++++ b/src/Main/CMakeLists.txt +@@ -130,7 +130,9 @@ endif() + if (CRASHRPT_FOUND) + target_link_libraries(fgfs ${CRASHRPT_LIBRARY}) + endif() +- ++if(X11_FOUND) ++ target_link_libraries(fgfs ${X11_LIBRARIES}) ++endif() + target_link_libraries(fgfs + ${SQLITE3_LIBRARY} + ${SIMGEAR_LIBRARIES} +diff --git a/utils/fgviewer/CMakeLists.txt b/utils/fgviewer/CMakeLists.txt +index 165be74..bfc52ad 100644 +--- a/utils/fgviewer/CMakeLists.txt ++++ b/utils/fgviewer/CMakeLists.txt +@@ -42,6 +42,10 @@ else() + endif() + + add_executable(fgviewer ${FGVIEWER_SOURCES} ${FGVIEWER_RTI_SOURCES}) ++if(X11_FOUND) ++ target_link_libraries(fgviewer ${X11_LIBRARIES}) ++endif() ++ + target_link_libraries(fgviewer + ${SIMGEAR_LIBRARIES} + ${OPENSCENEGRAPH_LIBRARIES} diff --git a/games-simulation/flightgear/files/ac3d.vim b/games-simulation/flightgear/files/ac3d.vim new file mode 100644 index 000000000000..6477d949b762 --- /dev/null +++ b/games-simulation/flightgear/files/ac3d.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.ac set filetype=ac3d diff --git a/games-simulation/flightgear/files/nasal.vim b/games-simulation/flightgear/files/nasal.vim new file mode 100644 index 000000000000..65a2ed17fc26 --- /dev/null +++ b/games-simulation/flightgear/files/nasal.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.nas set filetype=nasal diff --git a/games-simulation/flightgear/flightgear-3.4.0.ebuild b/games-simulation/flightgear/flightgear-3.4.0.ebuild new file mode 100644 index 000000000000..f0fe697574fc --- /dev/null +++ b/games-simulation/flightgear/flightgear-3.4.0.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit games cmake-utils bash-completion-r1 + +DESCRIPTION="Open Source Flight Simulator" +HOMEPAGE="http://www.flightgear.org/" +SRC_URI="mirror://flightgear/Source/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="dbus debug examples +jsbsim oldfdm qt5 test +udev +utils vim-syntax +yasim" + +COMMON_DEPEND=" + dev-db/sqlite:3 + >=dev-games/openscenegraph-3.2.0[png] + ~dev-games/simgear-${PV} + media-libs/openal + media-libs/speex + media-sound/gsm + sys-libs/zlib + x11-libs/libX11 + dbus? ( >=sys-apps/dbus-1.6.18-r1 ) + qt5? ( + >=dev-qt/qtcore-5.4.1:5 + >=dev-qt/qtgui-5.4.1:5 + >=dev-qt/qtwidgets-5.4.1:5 + ) + udev? ( virtual/udev ) + utils? ( + media-libs/freeglut + media-libs/libpng:0 + virtual/opengl + ) +" +DEPEND="${COMMON_DEPEND} + >=dev-libs/boost-1.44 + >=media-libs/plib-1.8.5 +" +RDEPEND="${COMMON_DEPEND} + ~games-simulation/${PN}-data-${PV} +" + +PATCHES=( + "${FILESDIR}/0001-${P}-cmake.patch" + "${FILESDIR}/0002-${P}-cmake.patch" +) + +DOCS=(AUTHORS ChangeLog NEWS README Thanks) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + -DENABLE_FLITE=OFF + -DENABLE_PROFILE=OFF + -DENABLE_RTI=OFF + -DFG_DATA_DIR="${GAMES_DATADIR}"/${PN} + -DSIMGEAR_SHARED=ON + -DSP_FDMS=OFF + -DSYSTEM_FLITE=ON + -DSYSTEM_HTS_ENGINE=ON + -DSYSTEM_SPEEX=ON + -DSYSTEM_GSM=ON + -DSYSTEM_SQLITE=ON + $(cmake-utils_use_use dbus) + $(cmake-utils_use_enable jsbsim) + $(cmake-utils_use jsbsim JSBSIM_TERRAIN) + $(cmake-utils_use_enable oldfdm LARCSIM) + $(cmake-utils_use_enable oldfdm UIUC_MODEL) + $(cmake-utils_use_enable qt5 QT) + $(cmake-utils_use test LOGGING) + $(cmake-utils_use_enable test TESTS) + $(cmake-utils_use udev EVENT_INPUT) + $(cmake-utils_use_enable utils FGCOM) + $(cmake-utils_use_enable utils FGELEV) + $(cmake-utils_use_enable utils FGJS) + $(cmake-utils_use_with utils FGPANEL) + $(cmake-utils_use_enable utils FGVIEWER) + $(cmake-utils_use_enable utils GPSSMOOTH) + $(cmake-utils_use_enable utils JS_DEMO) + $(cmake-utils_use_enable utils METAR) + $(cmake-utils_use_enable utils TERRASYNC) + $(cmake-utils_use_enable yasim) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # Install icons and menu entry + local s + for s in 16 22 24 32 48 64 128; do + doicon -s ${s} icons/${s}x${s}/apps/${PN}.png + use utils && doicon -s ${s} icons/${s}x${s}/apps/fgcom.png + done + doicon -s scalable icons/scalable/${PN}.svg + use utils && doicon -s scalable icons/scalable/fgcom.svg + + newmenu package/${PN}.desktop ${PN}.desktop + + # Install bash completion (TODO zsh) + # Uncomment below when scripts stops writing files... +# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \ +# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT' +# newbashcomp scripts/completion/fg-completion.bash ${PN} + + # Install examples and other misc files + if use examples; then + insinto /usr/share/doc/"${PF}"/examples + doins -r scripts/java scripts/perl scripts/python + insinto /usr/share/doc/"${PF}"/examples/c++ + doins -r scripts/example/* + insinto /usr/share/doc/"${PF}"/tools + doins -r scripts/atis scripts/tools/* + fi + + # Install nasal script syntax + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins scripts/syntax/{ac3d,nasal}.vim + insinto /usr/share/vim/vimfiles/ftdetect/ + doins "${FILESDIR}"/{ac3d,nasal}.vim + fi + + prepgamesdirs +} + +pkg_postinst() { + if use qt5; then + einfo "To use launcher, run fgfs with '--launcher' parameter" + fi +} diff --git a/games-simulation/flightgear/metadata.xml b/games-simulation/flightgear/metadata.xml new file mode 100644 index 000000000000..cdd7400022f7 --- /dev/null +++ b/games-simulation/flightgear/metadata.xml @@ -0,0 +1,18 @@ + + + +games + + reavertm@gentoo.org + Maciej Mrozowski + + + Enable screensaver DBus interaction + Enables JSBSim Flight Dynamics Model (default) + Enables deprecated Flight Dynamics Models (LaRCsim, UIUC) + Builds Qt5 launcher application + Enables event-based Input devices through virtual/udev + Builds various utilities (fgpanel, terrasync, fgviewer among others) + Enables YASim Flight Dynamics Model + + diff --git a/games-simulation/gl117/Manifest b/games-simulation/gl117/Manifest new file mode 100644 index 000000000000..c4d143367f64 --- /dev/null +++ b/games-simulation/gl117/Manifest @@ -0,0 +1 @@ +DIST gl-117-1.3.2-src.tar.bz2 2411075 SHA256 64bd0190a102725c76eba4983a5d79a0979ec42a087c56c8025b461f6e0e6ffb SHA512 1d2382576c6399d8c84d56ddc7eb2b11b9e1e3ffeebcc1bd30e258ef231626d15d1be649f8c791f30e4f2f78aca2b4290c5d08036c5f482eef01eda8f4f48b5f WHIRLPOOL a94ec54e7b4d436f65932c53e24da96223de93a2382188f0b449282de20f132899d519dec898682c9a0e07a0a8621b403bb74a416454a0da86811f1066889ef1 diff --git a/games-simulation/gl117/files/gl117-1.3.2-mode.patch b/games-simulation/gl117/files/gl117-1.3.2-mode.patch new file mode 100644 index 000000000000..c74e07c1cafd --- /dev/null +++ b/games-simulation/gl117/files/gl117-1.3.2-mode.patch @@ -0,0 +1,12 @@ +--- src/main.cpp.orig 2010-07-13 09:35:18.374122609 +0100 ++++ src/main.cpp 2010-07-13 09:35:45.334955120 +0100 +@@ -71,8 +71,7 @@ int mode = 0; + + // pre-defined screen resolutions (x, y, bpp, fullscreen) + int resolution [4] [4] = +- { { 1024, 768, 32, 1 }, +- { 800, 600, 32, 1 }, ++ { { 800, 600, 32, 1 }, + { 640, 480, 32, 1 }, + { 640, 480, 32, 0 } }; + diff --git a/games-simulation/gl117/gl117-1.3.2.ebuild b/games-simulation/gl117/gl117-1.3.2.ebuild new file mode 100644 index 000000000000..479f53b7eca5 --- /dev/null +++ b/games-simulation/gl117/gl117-1.3.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P="gl-117-${PV}-src" +DESCRIPTION="An action flight simulator" +HOMEPAGE="http://www.heptargon.de/gl-117/gl-117.html" +SRC_URI="mirror://sourceforge/gl-117/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,joystick,opengl,video] + media-libs/sdl-mixer[mod] + virtual/opengl + virtual/glu + media-libs/freeglut" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-mode.patch +} + +src_install() { + DOCS="doc/gl-117.pdf AUTHORS ChangeLog FAQ NEWS README" \ + default + newicon doc/src/falcon.jpg ${PN}.jpg + make_desktop_entry gl-117 GL-117 /usr/share/pixmaps/${PN}.jpg + doman doc/gl-117.6 + prepgamesdirs +} diff --git a/games-simulation/gl117/metadata.xml b/games-simulation/gl117/metadata.xml new file mode 100644 index 000000000000..dde59ceb2927 --- /dev/null +++ b/games-simulation/gl117/metadata.xml @@ -0,0 +1,8 @@ + + + + games + + gl-117 + + diff --git a/games-simulation/lincity-ng/Manifest b/games-simulation/lincity-ng/Manifest new file mode 100644 index 000000000000..215a313311ea --- /dev/null +++ b/games-simulation/lincity-ng/Manifest @@ -0,0 +1 @@ +DIST lincity-ng-2.0.tar.bz2 39475719 SHA256 a6b206a5dfc7a817669f4fc7cbc012bd4a7073c42f918ceb2f1f484cc0b06606 SHA512 d85cd398145d1591f8640458c076f2a0b55713c39ede28b67d99adc7b76d38f09b58cd2ec84d9acac11bbaa794f6d97f6200f54efcdd4286315e6b3133284c55 WHIRLPOOL d218d0475198c9852abf18caab55df57c2dc0026c74db3215c66c4915758c9f4e608906ccdeb8ff9b83eace67ad4cdcb3e5d5d7dd5d1a7aa4c18131e03646d91 diff --git a/games-simulation/lincity-ng/files/lincity-ng-2.0-build.patch b/games-simulation/lincity-ng/files/lincity-ng-2.0-build.patch new file mode 100644 index 000000000000..ad2f2eeaff8d --- /dev/null +++ b/games-simulation/lincity-ng/files/lincity-ng-2.0-build.patch @@ -0,0 +1,35 @@ +From: Julian Ospald +Date: Mon Jul 30 07:06:54 UTC 2012 +Subject: build system + +arguments to AR would be overwritten if we export AR + +--- lincity-ng-2.0.orig/lincity-ng.desktop ++++ lincity-ng-2.0/lincity-ng.desktop +@@ -1,12 +1,11 @@ + [Desktop Entry] + Type=Application + Version=1.0 +-Encoding=UTF-8 + Name=Lincity-NG + GenericName=City Simulation Game + GenericName[de]=Stadtsimulationsspiel + Comment=Plan and Build a city and take care of transport, economics, electricityand others. +-Icon=lincity-ng.png ++Icon=lincity-ng + Exec=lincity-ng + Terminal=false + StartupNotify=false +--- lincity-ng-2.0.orig/mk/jam/unix.jam ++++ lincity-ng-2.0/mk/jam/unix.jam +@@ -45,4 +45,10 @@ + $(LINK) -o $(<) $(>) $(EXTRAOBJECTS) $(NEEDLIBS) $(LIBS) + } + ++# jam Archive action seems to include the arguments which will break our AR export ++actions Archive ++{ ++ $(AR) ru $(<) $(>) ++} ++ + diff --git a/games-simulation/lincity-ng/lincity-ng-2.0.ebuild b/games-simulation/lincity-ng/lincity-ng-2.0.ebuild new file mode 100644 index 000000000000..ec04ef607f07 --- /dev/null +++ b/games-simulation/lincity-ng/lincity-ng-2.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multiprocessing games + +DESCRIPTION="city/country simulation game for X and opengl" +HOMEPAGE="http://sourceforge.net/projects/lincity-ng.berlios/" +SRC_URI="mirror://sourceforge/lincity-ng.berlios/${P}.tar.bz2" + +LICENSE="GPL-2 BitstreamVera" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc x86" +IUSE="" +RESTRICT=mirror + +RDEPEND="virtual/opengl + sys-libs/zlib + dev-libs/libxml2 + media-libs/libsdl[sound,joystick,opengl,video] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-image[png] + media-libs/sdl-ttf + media-libs/sdl-gfx + dev-games/physfs" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-util/ftjam" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + jam -q -dx -j $(makeopts_jobs) || die "jam failed" +} + +src_install() { + jam -sDESTDIR="${D}" \ + -sappdocdir="/usr/share/doc/${PF}" \ + -sapplicationsdir="/usr/share/applications" \ + -spixmapsdir="/usr/share/pixmaps" \ + install \ + || die "jam install failed" + rm -f "${D}"/usr/share/doc/${PF}/COPYING* + prepgamesdirs +} diff --git a/games-simulation/lincity-ng/metadata.xml b/games-simulation/lincity-ng/metadata.xml new file mode 100644 index 000000000000..2389db40c6bc --- /dev/null +++ b/games-simulation/lincity-ng/metadata.xml @@ -0,0 +1,8 @@ + + + + games + + lincity-ng.berlios + + diff --git a/games-simulation/lincity/Manifest b/games-simulation/lincity/Manifest new file mode 100644 index 000000000000..361a1f67ff5c --- /dev/null +++ b/games-simulation/lincity/Manifest @@ -0,0 +1 @@ +DIST lincity-1.13.1.tar.gz 1064236 SHA256 7b4cbd11ffd4cbed79a0aadb25f2b1c34e25a8201182fbb259ce2f450fe5015d SHA512 bc4ee7a1642b1efa25f9edaabd3aeb52d1ca1d016735c5094586f52fda3ec4e9080ff35fe518c1ccbfad9fd54babb370f4b9b6a158b4d2f43b7182155084eefc WHIRLPOOL b2065c73fda1f1ce3fc7803653a3ee9acadd58ad3d1f6b040cca7fe0c58df9d27d72894688b932013124ab0b866fc1fab68b94c25ab3fbf02c7f0b2a21d700c5 diff --git a/games-simulation/lincity/lincity-1.13.1.ebuild b/games-simulation/lincity/lincity-1.13.1.ebuild new file mode 100644 index 000000000000..81e0bf2f1d3a --- /dev/null +++ b/games-simulation/lincity/lincity-1.13.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="city/country simulation game for X and Linux SVGALib" +HOMEPAGE="http://lincity.sourceforge.net/" +SRC_URI="mirror://sourceforge/lincity/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="nls" + +# dep fix (bug #82318) +RDEPEND="media-libs/libpng:0 + x11-libs/libXext + x11-libs/libSM + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e '/^localedir/s:$(datadir):/usr/share:' \ + po/Makefile.in.in \ + intl/Makefile.in \ + || die 'sed failed' +} + +src_configure() { + egamesconf \ + --with-gzip \ + $(use_enable nls) \ + --with-x +} + +src_compile() { + # build system logic is severely broken + emake + emake X_PROGS +} + +src_install() { + emake DESTDIR="${D}" install + dodoc Acknowledgements CHANGES README* TODO + make_desktop_entry xlincity Lincity + dogamesbin xlincity + prepgamesdirs +} diff --git a/games-simulation/lincity/metadata.xml b/games-simulation/lincity/metadata.xml new file mode 100644 index 000000000000..bb050ef9b982 --- /dev/null +++ b/games-simulation/lincity/metadata.xml @@ -0,0 +1,8 @@ + + + + games + + lincity + + diff --git a/games-simulation/metadata.xml b/games-simulation/metadata.xml new file mode 100644 index 000000000000..9a1d4a49170f --- /dev/null +++ b/games-simulation/metadata.xml @@ -0,0 +1,32 @@ + + + + + The games-simulation category contains simulation games. + + + Die Kategorie games-simulation enthält Simulatoren. + + + La categoría games-simulation contiene juegos de simulación. + + + games-simulationカテゴリーにはシミュレーション・ゲームが含まれています。 + + + De games-simulation categorie bevat simulatiespellen. + + + Nhóm games-simulation chứa các trò chơi mô phỏng. + + + La categoria games-simulation contiene giochi di simulazione. + + + A categoria games-simulation contém jogos de simulação. + + + Kategoria games-simulation zawiera gry symulacyjne. + + + diff --git a/games-simulation/micropolis/Manifest b/games-simulation/micropolis/Manifest new file mode 100644 index 000000000000..b8c9da534f59 --- /dev/null +++ b/games-simulation/micropolis/Manifest @@ -0,0 +1,2 @@ +DIST micropolis-activity-source.tgz 7676438 SHA256 1b3c72dc3680a34b5fc5a740a6fb5cfc0b8775514da8ab7bb3b2965b20d4f8bc SHA512 fe65966c43d044e01a63a3cfe3cad48466eb1e5ec8b13c03abb52d582395a8ab527332d4d04454a4f32e85b65e55d72fe5e4d53a3f37b422d90e9208f00d9976 WHIRLPOOL 2bc497ce79b9041a6e3a2dcd84b4e135c844652afe23d546ad7aa5c66dee3422151329a04bbbc105a199427b4ed0580f79d3232d0b13f09a89b013e006321f3e +DIST micropolis_git.patch 83549 SHA256 13419a4394242cd11d5cabd8b1b50787282ea16b55fdcfbeadf8505af46b0592 SHA512 9d1801478a27184c48d327094cad8238f7972c2cf3624c7c196375f2dd20c3374575b393d44cb2fb99613e19d66c4cc4fb27ae52df9fddf4e42adb42523bdc17 WHIRLPOOL fde6ad3bf7395ef51f482aba816d99bb5af302f357e4d9cd218d9ba7e4a0d78f8927e33c76cf0e340c5ff3b9b5b16f5e26495b07b5d80f701f560a1a7c7730ad diff --git a/games-simulation/micropolis/metadata.xml b/games-simulation/micropolis/metadata.xml new file mode 100644 index 000000000000..dbefa85e7356 --- /dev/null +++ b/games-simulation/micropolis/metadata.xml @@ -0,0 +1,6 @@ + + + +games +hanno@gentoo.org + diff --git a/games-simulation/micropolis/micropolis-1.0.ebuild b/games-simulation/micropolis/micropolis-1.0.ebuild new file mode 100644 index 000000000000..c2a4457352c8 --- /dev/null +++ b/games-simulation/micropolis/micropolis-1.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Free version of the well-known city building simulation" +HOMEPAGE="http://www.donhopkins.com/home/micropolis/" +SRC_URI="http://www.donhopkins.com/home/micropolis/${PN}-activity-source.tgz + http://rmdir.de/~michael/${PN}_git.patch" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXpm + media-libs/libsdl + media-libs/sdl-mixer" +DEPEND="${RDEPEND} + sys-devel/bison" + +S=${WORKDIR}/${PN}-activity/ + +src_unpack() { + unpack ${PN}-activity-source.tgz +} + +src_prepare() { + epatch "${DISTDIR}"/${PN}_git.patch + sed -i -e "s:-O3:${CFLAGS}:" \ + src/tclx/config.mk src/{sim,tcl,tk}/makefile || die + sed -i -e "s:XLDFLAGS=:&${LDFLAGS}:" \ + src/tclx/config.mk || die +} + +src_compile() { + emake -C src LDFLAGS="${LDFLAGS}" +} + +src_install() { + local dir=${GAMES_DATADIR}/${PN} + + exeinto "${dir}/res" + doexe src/sim/sim + insinto "${dir}" + doins -r activity cities images manual res + + games_make_wrapper micropolis res/sim "${dir}" + doicon Micropolis.png + make_desktop_entry micropolis "Micropolis" Micropolis + + prepgamesdirs +} diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest new file mode 100644 index 000000000000..056f59ab067e --- /dev/null +++ b/games-simulation/openttd/Manifest @@ -0,0 +1 @@ +DIST openttd-1.5.0-source.tar.gz 10018865 SHA256 4c357205a63a475001a13e4ade59a73635e2f0c480ad097f4d7f03d2ae290ee0 SHA512 c2459165bd8f957d56d4171361237e6de42221f7b8c02f98503e2225a81fd496f10da9d9c60335edb981f86c4c4ce45fafc9edf43ea38a94b84f67136a17a165 WHIRLPOOL 88a15852d1ae01f7a03ea1bcc929bcdf450265a81462aa5316d2e16e86b79167d04503a83bc231eb411d159b70073c650db6e5604adbf07eccda43a193af3e20 diff --git a/games-simulation/openttd/files/openttd-1.5.0-cflags.patch b/games-simulation/openttd/files/openttd-1.5.0-cflags.patch new file mode 100644 index 000000000000..bb7f768b3798 --- /dev/null +++ b/games-simulation/openttd/files/openttd-1.5.0-cflags.patch @@ -0,0 +1,42 @@ +--- openttd-1.4.4/config.lib ++++ openttd-1.4.4/config.lib +@@ -1450,12 +1450,6 @@ + CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS" + LDFLAGS="$LDFLAGS -noixemul" + fi +- +- if [ "$enable_profiling" = "0" ]; then +- # -fomit-frame-pointer and -pg do not go well together (gcc errors they are incompatible) +- CFLAGS="-fomit-frame-pointer $CFLAGS" +- fi +- CFLAGS="-O2 $CFLAGS" + else + OBJS_SUBDIR="debug" + +@@ -1466,14 +1460,6 @@ + CFLAGS="$CFLAGS -G0" + fi + fi +- if [ $enable_debug -ge 2 ]; then +- CFLAGS="$CFLAGS -fno-inline" +- fi +- if [ $enable_debug -ge 3 ]; then +- CFLAGS="$CFLAGS -O0" +- else +- CFLAGS="$CFLAGS -O2" +- fi + fi + + if [ $enable_debug -le 2 ]; then +@@ -1498,11 +1484,6 @@ + CFLAGS="$CFLAGS -fno-expensive-optimizations" + fi + +- if [ "$enable_profiling" != "0" ]; then +- CFLAGS="$CFLAGS -pg" +- LDFLAGS="$LDFLAGS -pg" +- fi +- + if [ "$with_threads" = "0" ]; then + CFLAGS="$CFLAGS -DNO_THREADS" + fi diff --git a/games-simulation/openttd/files/openttd.initd b/games-simulation/openttd/files/openttd.initd new file mode 100755 index 000000000000..629f1857c259 --- /dev/null +++ b/games-simulation/openttd/files/openttd.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting OpenTTD dedicated server" + start-stop-daemon --start -q --exec /usr/games/bin/openttd -- -D -f > /dev/null + eend $? +} + +stop() { + ebegin "Stopping OpenTTD dedicated server" + start-stop-daemon --stop -q -n openttd + eend $? +} diff --git a/games-simulation/openttd/metadata.xml b/games-simulation/openttd/metadata.xml new file mode 100644 index 000000000000..031679386643 --- /dev/null +++ b/games-simulation/openttd/metadata.xml @@ -0,0 +1,12 @@ + + + + games + + Enables midi music in game, using aplaymidi as an external player + + Enables the free open media sets: OpenGFX, OpenSFX, OpenMSX, removing the requirement for proprietary TTD assets to play OpenTTD. + Enables LZO compression for savegames. This is only needed to load extremely old savegames. (versions before 0.2) + Build only the openttd server, and not the client. + + diff --git a/games-simulation/openttd/openttd-1.5.0.ebuild b/games-simulation/openttd/openttd-1.5.0.ebuild new file mode 100644 index 000000000000..cb4fe056c13c --- /dev/null +++ b/games-simulation/openttd/openttd-1.5.0.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils games + +DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" +HOMEPAGE="http://www.openttd.org/" +SRC_URI="http://binaries.openttd.org/releases/${PV}/${P}-source.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib" +RESTRICT="test" # needs a graphics set in order to test + +RDEPEND="!dedicated? ( + media-libs/libsdl[sound,X,video] + icu? ( dev-libs/icu:= ) + truetype? ( + media-libs/fontconfig + media-libs/freetype:2 + sys-libs/zlib + ) + ) + lzo? ( dev-libs/lzo:2 ) + iconv? ( virtual/libiconv ) + png? ( media-libs/libpng:0 ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + virtual/pkgconfig" +PDEPEND=" + !dedicated? ( + openmedia? ( + games-misc/openmsx + games-misc/opensfx + ) + aplaymidi? ( media-sound/alsa-utils ) + !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) + ) + openmedia? ( >=games-misc/opengfx-0.4.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cflags.patch + sed -i \ + -e '/Keywords/s/$/;/' \ + media/openttd.desktop.in || die +} + +src_configure() { + # there is an allegro interface available as well as sdl, but + # the configure for it looks broken so the sdl interface is + # always built instead. + local myopts=" --without-allegro" + + # libtimidity not needed except for some embedded platform + # nevertheless, it will be automagically linked if it is + # installed. Hence, we disable it. + myopts+=" --without-libtimidity" + + use debug && myopts+=" --enable-debug=3" + + if use dedicated ; then + myopts+=" --enable-dedicated" + else + use aplaymidi && myopts+=" --with-midi='/usr/bin/aplaymidi'" + myopts+=" + $(use_with truetype freetype) + $(use_with icu) + --with-sdl" + fi + if use png || { use !dedicated && use truetype; } || use zlib ; then + myopts+=" --with-zlib" + else + myopts+=" --without-zlib" + fi + + # configure is a hand-written bash-script, so econf will not work. + # It's all built as C++, upstream uses CFLAGS internally. + CFLAGS="" ./configure \ + --disable-strip \ + --prefix-dir="${EPREFIX}" \ + --binary-dir="${GAMES_BINDIR}" \ + --data-dir="${GAMES_DATADIR}/${PN}" \ + --install-dir="${D}" \ + --icon-dir=/usr/share/pixmaps \ + --menu-dir=/usr/share/applications \ + --icon-theme-dir=/usr/share/icons/hicolor \ + --man-dir=/usr/share/man/man6 \ + --doc-dir=/usr/share/doc/${PF} \ + --menu-group="Game;Simulation;" \ + ${myopts} \ + $(use_with iconv) \ + $(use_with png) \ + $(use_with cpu_flags_x86_sse sse) \ + $(use_with lzo liblzo2) \ + || die +} + +src_compile() { + emake VERBOSE=1 +} + +src_install() { + default + if use dedicated ; then + newinitd "${FILESDIR}"/${PN}.initd ${PN} + rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} + fi + rm -f "${ED}"/usr/share/doc/${PF}/COPYING + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + games_pkg_postinst + + if ! use lzo ; then + elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" + elog "required, disabling it does mean that loading old savegames" + elog "or scenarios from ancient versions (~0.2) will fail." + elog + fi + + if use dedicated ; then + ewarn "Warning: The init script will kill all running openttd" + ewarn "processes when triggered, including any running client sessions!" + else + if use aplaymidi ; then + elog "You have emerged with 'aplaymidi' for playing MIDI." + elog "This option is for those with a hardware midi device," + elog "or who have set up ALSA to handle midi ports." + elog "You must set the environment variable ALSA_OUTPUT_PORTS." + elog "Available ports can be listed by using 'aplaymidi -l'." + else + if ! use timidity ; then + elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" + elog "in USE. Music may or may not work in-game. If you happen" + elog "to have timidity++ installed, music will work so long" + elog "as it remains installed, but OpenTTD will not depend on it." + fi + fi + if ! use openmedia ; then + elog + elog "OpenTTD was compiled without the 'openmedia' USE flag." + elog + elog "In order to play, you must at least install:" + elog "games-misc/opengfx, and games-misc/opensfx, or copy the " + elog "following 6 files from a version of Transport Tycoon Deluxe" + elog "(windows or DOS) to ~/.openttd/data/ or" + elog "${GAMES_DATADIR}/${PN}/data/." + elog + elog "From the WINDOWS version you need: " + elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" + elog "OR from the DOS version you need: " + elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" + elog + elog "File names are case sensitive, but should work either with" + elog "all upper or all lower case names" + elog + elog "In addition, in-game music will be unavailable: for music," + elog "install games-misc/openmsx, or use the in-game download" + elog "functionality to get a music set" + elog + fi + fi +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-simulation/planets/Manifest b/games-simulation/planets/Manifest new file mode 100644 index 000000000000..2bbf4fef6cc3 --- /dev/null +++ b/games-simulation/planets/Manifest @@ -0,0 +1 @@ +DIST planets-0.1.13.tgz 49732 SHA256 cd4be19dc1e16cc3d5bb20fdfa2af025b50cd21dbce5d1e8b3041c4e786c3624 SHA512 fdfc2cde52baaac71683fbf31b6fe09f6bec81650842eb6b88dbc34d643142f73a89a935db028ab000d3fa33e1646b28558e398bb0eddba273f94e429e61a67d WHIRLPOOL 3980b333761185525d4f91caee6f850d086954c5f119b66827f3a1b4a91e85d35a302fad941139732d1e813d539172652beda5fe7776f78925a6d8fc33c4cf0b diff --git a/games-simulation/planets/metadata.xml b/games-simulation/planets/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-simulation/planets/metadata.xml @@ -0,0 +1,5 @@ + + + +games + diff --git a/games-simulation/planets/planets-0.1.13.ebuild b/games-simulation/planets/planets-0.1.13.ebuild new file mode 100644 index 000000000000..19f0eb25337b --- /dev/null +++ b/games-simulation/planets/planets-0.1.13.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils games + +DESCRIPTION="a simple interactive planetary system simulator" +HOMEPAGE="http://planets.homedns.org/" +SRC_URI="http://planets.homedns.org/dist/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="" + +RDEPEND=" + dev-lang/tcl:0= + dev-lang/tk:0=" +DEPEND="${RDEPEND} + dev-lang/ocaml[tk]" + +src_install() { + dogamesbin planets + doicon ${PN}.png + domenu ${PN}.desktop + doman ${PN}.1 + dohtml getting_started.html + dodoc CHANGES CREDITS KEYBINDINGS.txt README TODO + prepgamesdirs +} diff --git a/games-simulation/pmars-sdl/Manifest b/games-simulation/pmars-sdl/Manifest new file mode 100644 index 000000000000..ef42c3aec438 --- /dev/null +++ b/games-simulation/pmars-sdl/Manifest @@ -0,0 +1 @@ +DIST pmars-0.9.2-5.tar.gz 200966 SHA256 a8518ec8cc13728dc202c34fe73657123454b9fc76bcddf6b299201143e6fee3 SHA512 197d1967507199ed5eb075fb232a2f15d9bdf4bec03fc6b1d6df5d6259d6627eb40338c5787852ea10d96858029144348128b08e86c7079d96f10fd09dafc315 WHIRLPOOL b588f0381a201b5d3b440626adb8b72ec4b89f68951ce57fd9d4ede604ee2599b5db4443dab18d9dca6c958145515e2f911b9fcd48a8243a841d0276f1b0a581 diff --git a/games-simulation/pmars-sdl/metadata.xml b/games-simulation/pmars-sdl/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-simulation/pmars-sdl/metadata.xml @@ -0,0 +1,5 @@ + + + +games + diff --git a/games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild b/games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild new file mode 100644 index 000000000000..3efe83a1c9d5 --- /dev/null +++ b/games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs games + +MY_PN="${PN/-sdl/}" +MY_PV="${PV/e/-5}" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="Portable redcode simulator's sdl port for core war" +HOMEPAGE="http://corewar.co.uk/pihlaja/pmars-sdl/" +SRC_URI="http://corewar.co.uk/pihlaja/pmars-sdl/${MY_P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="sdl X" + +DEPEND="sdl? ( x11-libs/libX11 media-libs/libsdl[video] ) + X? ( x11-libs/libX11 ) + !sdl? ( !X? ( sys-libs/ncurses ) )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + CFLAGS="${CFLAGS} -DEXT94 -DPERMUTATE" + LFLAGS="-x" + + if use sdl ; then + CFLAGS="${CFLAGS} -DSDLGRAPHX `sdl-config --cflags`" + LIB=`sdl-config --libs` + elif use X ; then + CFLAGS="${CFLAGS} -DXWINGRAPHX" + LIB="-L/usr/X11R6/lib -lX11" + else + CFLAGS="${CFLAGS} -DCURSESGRAPHX" + LIB="-lcurses" + fi + + cd src + + SRC="asm.c + cdb.c + clparse.c + disasm.c + eval.c + global.c + pmars.c + sim.c + pos.c + str_eng.c + token.c" + + for x in ${SRC}; do + einfo "compiling ${x}" + $(tc-getCC) ${CFLAGS} ${x} -c || die + done + + echo + einfo "linking with LIB: ${LIB}" + $(tc-getCC) ${LDFLAGS} *.o ${LIB} -o ${MY_PN} || die +} + +src_install() { + dogamesbin src/${MY_PN} + doman doc/${MY_PN}.6 + + dodoc AUTHORS CONTRIB ChangeLog README doc/redcode.ref + + insinto "${GAMES_DATADIR}/${MY_PN}/warriors" + doins warriors/* + + insinto "${GAMES_DATADIR}/${MY_PN}/macros" + doins config/*.mac + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + ewarn "There are some macros in ${GAMES_DATADIR}/${MY_PN}/macros" + ewarn "which you should make accessible to pmars by typing" + ewarn "export PMARSHOME=${GAMES_DATADIR}/${MY_PN}/macros\n" +} diff --git a/games-simulation/qct/Manifest b/games-simulation/qct/Manifest new file mode 100644 index 000000000000..a16b1be45d10 --- /dev/null +++ b/games-simulation/qct/Manifest @@ -0,0 +1 @@ +DIST qct-0.7.tar.gz 98126 SHA256 d24d72c594e0af188876622aa2f9ce46e5e288bb66826aedb3ee3244fe8dd87b SHA512 89784607be3420f62ee1c94610f0df1e2ef57e237aa24ca2bf6583c17470ded91e8b5eff4171d93471a35c99951a98721eba2e9facb0757461c4343fbffe8bac WHIRLPOOL 21f27e3590edecbcdeb40a3dcc0c72a2cfc7413d0f27f508387590429b3920344f5fc581b6cecc671fa4e4382ff231cf4e13a29da754a986685216d782d07faa diff --git a/games-simulation/qct/files/qct-0.7-constant.patch b/games-simulation/qct/files/qct-0.7-constant.patch new file mode 100644 index 000000000000..43a01ea1a4a9 --- /dev/null +++ b/games-simulation/qct/files/qct-0.7-constant.patch @@ -0,0 +1,21 @@ +Fix traceback from using wrong name. + +Patch by Peter `MathFox' Roozemaal. + +http://bugs.gentoo.org/97762 +http://sourceforge.net/tracker/index.php?func=detail&aid=801329&group_id=74836&atid=542163 + +--- qct/specializations.py ++++ qct/specializations.py +@@ -131,9 +131,9 @@ + mods = self.getModsFor('incomeMod', employer) + if resident: + if resident.job == trainer: +- return prospect.level * INCOMEMULT * mods ++ return prospect.level * constants.INCOMEMULT * mods + else: +- return prospect.level * INCOMEMULT / 2 * mods ++ return prospect.level * constants.INCOMEMULT / 2 * mods + else: + return 0 + diff --git a/games-simulation/qct/metadata.xml b/games-simulation/qct/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-simulation/qct/metadata.xml @@ -0,0 +1,5 @@ + + + +games + diff --git a/games-simulation/qct/qct-0.7-r1.ebuild b/games-simulation/qct/qct-0.7-r1.ebuild new file mode 100644 index 000000000000..5a48f6f181c0 --- /dev/null +++ b/games-simulation/qct/qct-0.7-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +DESCRIPTION="Quiet Console Town puts you in the place of the mayor of a budding new console RPG city" +HOMEPAGE="http://packages.gentoo.org/package/games-simulation/qct" +SRC_URI="http://www.sourcefiles.org/Games/Role_Play/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND=">=dev-python/pygame-1.5.5[${PYTHON_USEDEP}]" +RDEPEND=${RDEPEND} +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-constant.patch + python_fix_shebang . +} + +src_install() { + # Ug. Someone fix this to install in $(games_get_libdir)/${PN} instead + local destdir="${GAMES_DATADIR}/${PN}" + insinto "${destdir}" + exeinto "${destdir}" + + dodoc README + doins *.py *.png + doexe qct.py + + python_optimize "${D}${GAMES_DATADIR}/${PN}" + + games_make_wrapper qct "./qct.py" "${destdir}" + + prepgamesdirs +} + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} diff --git a/games-simulation/searchandrescue/Manifest b/games-simulation/searchandrescue/Manifest new file mode 100644 index 000000000000..273403a9cf7e --- /dev/null +++ b/games-simulation/searchandrescue/Manifest @@ -0,0 +1,2 @@ +DIST SearchAndRescue-1.5.0.tar.gz 1473765 SHA256 a49bfdcbf43e3161f82895fe30d0d14c4a61a535d40fa1b7b223144abb020b77 SHA512 72a8e5c375bb2f5d11d1346bb3c81ea4678a9c58c36f53c048e9a16d32a926ff93c3ec9756867f0869aa2a8da5fb0bfe7764f704c4e79519ee0834d225513657 WHIRLPOOL 9827f06ced0d293265e7457ae6997ae1cf09dade783b7f3ec0d010dec1edd2bcc67eb8ae9af6f94edc5b03c31d708cec84c44e34351fd9517e6b48a201d803ad +DIST SearchAndRescue-data-1.3.0.tar.gz 52152370 SHA256 24e69e14b9d8c0683b3943d3fabe891e9b204c59dc1e8b47f4abd3db8cb29150 SHA512 5419376aeecb0f05570a8d2a0a6f830f3b22ce9d1d34a5e490485767546c6d0d1d2a2a3f37e5dfcef69e271a94a9c7dfc6b592e3c0dd62a8a6c38e4bf7d25ccd WHIRLPOOL 360ccfdc4f4222e06b344bb4660f97a13742c0fbad48bf4e1a2dff58b084ad2e485b540b3aa79d64f8a3b99bea16c517d6996a10a668f74c04193bf6abaf40dd diff --git a/games-simulation/searchandrescue/files/searchandrescue-1.5.0-build.patch b/games-simulation/searchandrescue/files/searchandrescue-1.5.0-build.patch new file mode 100644 index 000000000000..40428bade2d7 --- /dev/null +++ b/games-simulation/searchandrescue/files/searchandrescue-1.5.0-build.patch @@ -0,0 +1,66 @@ +--- searchandrescue_1.3.0.orig/sar/makefile_append.ini ++++ searchandrescue_1.3.0/sar/makefile_append.ini +@@ -3,7 +3,7 @@ + + + # C++ flags: +-CPPFLAGS = -D__cplusplus -Dc_plusplus ++CPPFLAGS += -D__cplusplus -Dc_plusplus + + + # Source files list: +@@ -16,14 +16,12 @@ + OBJ_CPP = $(SRC_CPP:.cpp=.o) + .c.o: + @echo "Compiling module $*.o" +- @$(CC) -c $*.c $(INC_DIRS) $(CFLAGS) ++ $(CC) -c $*.c $(INC_DIRS) $(CFLAGS) + .cpp.o: + @echo "Compiling module $*.o" +- @$(CPP) -c $*.cpp $(INC_DIRS) $(CFLAGS) $(CPPFLAGS) ++ $(CPP) -c $*.cpp $(INC_DIRS) $(CPPFLAGS) + + # Programs +-LS = ls +-LSFLAGS = -s -h -c --color=auto + RM = rm + RMFLAGS = -f + +@@ -32,9 +30,8 @@ + + modules: $(OBJ_C) $(OBJ_CPP) + @echo -n "Linking modules..." +- @$(CPP) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIBS) $(LIB_DIRS) ++ $(CPP) $(OBJ_C) $(OBJ_CPP) $(LDFLAGS) -o $(BIN) $(LIBS) $(LIB_DIRS) + @echo -n " " +- @-$(LS) $(LSFLAGS) $(BIN) + + prebuild: + @echo "Building program \"$(BIN)\"..." +@@ -54,5 +51,5 @@ + clean: + @echo "Cleaning program \"$(BIN)\"..." + @echo "Deleting all intermediate files..." +- @$(RM) $(RMFLAGS) a.out core *.o $(BIN) ++ $(RM) $(RMFLAGS) a.out core *.o $(BIN) + @echo "Clean done." +--- searchandrescue_1.3.0.orig/sar/platforms.ini ++++ searchandrescue_1.3.0/sar/platforms.ini +@@ -102,7 +102,7 @@ + FeatureDepend = xf86vidmode-lib + DependType = Library + MustExist = Yes +- DependPath = libXxf86vm.a ++ DependPath = libXxf86vm.so + DependGrepString = XF86VidModeQueryExtension + FeatureDepend = xf86vidmode-devel + DependType = Header +@@ -223,7 +223,7 @@ + FeatureDepend = xf86vidmode-lib + DependType = Library + MustExist = Yes +- DependPath = libXxf86vm.a ++ DependPath = libXxf86vm.so + DependGrepString = XF86VidModeQueryExtension + FeatureDepend = xf86vidmode-devel + DependType = Header diff --git a/games-simulation/searchandrescue/metadata.xml b/games-simulation/searchandrescue/metadata.xml new file mode 100644 index 000000000000..4454bd90a567 --- /dev/null +++ b/games-simulation/searchandrescue/metadata.xml @@ -0,0 +1,8 @@ + + + + games + + searchandrescue + + diff --git a/games-simulation/searchandrescue/searchandrescue-1.5.0.ebuild b/games-simulation/searchandrescue/searchandrescue-1.5.0.ebuild new file mode 100644 index 000000000000..3f7718d626cb --- /dev/null +++ b/games-simulation/searchandrescue/searchandrescue-1.5.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs games + +MY_DATA_PV=1.3.0 +MY_PN=SearchAndRescue +DESCRIPTION="Helicopter based air rescue flight simulator" +HOMEPAGE="http://searchandrescue.sourceforge.net/" +SRC_URI="mirror://sourceforge/searchandrescue/${MY_PN}-${PV}.tar.gz + mirror://sourceforge/searchandrescue/${MY_PN}-data-${MY_DATA_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +RDEPEND="x11-libs/libXxf86vm + x11-libs/libSM + x11-libs/libICE + x11-libs/libXmu + x11-libs/libXi + x11-libs/libXpm + virtual/opengl + virtual/glu + media-libs/libsdl + media-libs/sdl-mixer" +DEPEND="${RDEPEND} + x11-proto/xextproto + x11-proto/xf86vidmodeproto" + +S=${WORKDIR}/${PN}_${PV} + +src_unpack() { + unpack ${MY_PN}-${PV}.tar.gz + mkdir data && cd data && \ + unpack ${MY_PN}-data-${MY_DATA_PV}.tar.gz + bunzip2 "${S}"/sar/man/${MY_PN}.6.bz2 || die +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + rm pconf/pconf || die + sed -i -e '/Wall/s/$/ $(CFLAGS)/' pconf/Makefile || die +} + +src_configure() { + emake CC=$(tc-getCC) -C pconf pconf # Needed for the configure script + + append-flags -DNEW_GRAPHICS -DHAVE_SDL_MIXER + export CPP="$(tc-getCXX)" + export CPPFLAGS="${CXXFLAGS}" + # NOTE: not an autoconf script + ./configure Linux --prefix="${GAMES_PREFIX}" || die + sed -i -e 's/@\$/$/' sar/Makefile || die +} + +src_compile() { + emake -C sar +} +src_install() { + dogamesbin sar/${MY_PN} + doman sar/man/${MY_PN}.6 + dodoc AUTHORS HACKING README + doicon sar/icons/SearchAndRescue.xpm + newicon sar/icons/SearchAndRescue.xpm ${PN}.xpm + dodir "${GAMES_DATADIR}/${PN}" + cp -r "${WORKDIR}"/data/* "${D}/${GAMES_DATADIR}/${PN}/" || die + make_desktop_entry SearchAndRescue "SearchAndRescue" /usr/share/pixmaps/${PN}.xpm + prepgamesdirs +} diff --git a/games-simulation/senken/Manifest b/games-simulation/senken/Manifest new file mode 100644 index 000000000000..95815625a9a9 --- /dev/null +++ b/games-simulation/senken/Manifest @@ -0,0 +1 @@ +DIST senken-0.3.0.tar.gz 1391010 SHA256 2b0c6c0f08a9dcc1c15d2c94f7c5f494953cb83bc387749fe46c1dc6fb7cb880 SHA512 df0c15cabf667fb7b56db40baf03fcae6695aa9ec0e42a7db682ff20877a5b89ee67e7799e762b4a78cf0f3fdee7f001419091f0683df74ba1bbe6b9501f0272 WHIRLPOOL fec07f5237c6b0961611caf7e6a3398f0dc5366ff391008668179af470a3bb6069aadea6a5d938cc943a30bc83e6a63e8f006be743a181aa53dadd69ddfbe204 diff --git a/games-simulation/senken/files/senken-0.3.0-as-needed.patch b/games-simulation/senken/files/senken-0.3.0-as-needed.patch new file mode 100644 index 000000000000..428cbc9ee4c6 --- /dev/null +++ b/games-simulation/senken/files/senken-0.3.0-as-needed.patch @@ -0,0 +1,24 @@ +diff -ru senken-0.3.0.orig/server/Makefile.in senken-0.3.0/server/Makefile.in +--- senken-0.3.0.orig/server/Makefile.in 2003-11-20 02:30:15.000000000 -0500 ++++ senken-0.3.0/server/Makefile.in 2014-10-30 10:58:51.202157036 -0400 +@@ -10,7 +10,7 @@ + + DEFS = @DEFS@ + CPPFLAGS = -I$(srcdir)/../lib -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ +-LIBS = ../lib/libsenken.a @LIBS@ @LIBINTL@ ++LIBS = ../lib/libsenken.a @LIBS@ @LIBINTL@ -lm + + prefix = @prefix@ + exec_prefix = @exec_prefix@ +diff -ru senken-0.3.0.orig/src/Makefile.in senken-0.3.0/src/Makefile.in +--- senken-0.3.0.orig/src/Makefile.in 2003-11-20 02:30:16.000000000 -0500 ++++ senken-0.3.0/src/Makefile.in 2014-10-30 10:59:05.154704393 -0400 +@@ -8,7 +8,7 @@ + + DEFS = @DEFS@ + CPPFLAGS = -I$(srcdir)/../lib -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @GTK_CFLAGS@ +-LIBS = ../lib/libsenken.a @LIBS@ @GTK_LIBS@ ++LIBS = ../lib/libsenken.a @LIBS@ @GTK_LIBS@ -lm + + prefix = @prefix@ + exec_prefix = @exec_prefix@ diff --git a/games-simulation/senken/files/senken-0.3.0-warnings.patch b/games-simulation/senken/files/senken-0.3.0-warnings.patch new file mode 100644 index 000000000000..b15565ad0a90 --- /dev/null +++ b/games-simulation/senken/files/senken-0.3.0-warnings.patch @@ -0,0 +1,31 @@ +diff -ru senken-0.3.0.orig/server/protocol.c senken-0.3.0/server/protocol.c +--- senken-0.3.0.orig/server/protocol.c 2003-11-20 02:30:15.000000000 -0500 ++++ senken-0.3.0/server/protocol.c 2014-10-30 11:04:39.831848871 -0400 +@@ -294,7 +294,7 @@ + /* + * If transaction active just save this for later + */ +- if (connection_txn_active) { ++ if (connection_txn_active(conn)) { + set_op_t *op = calloc(1, sizeof(set_op_t)); + int r; + +diff -ru senken-0.3.0.orig/src/gtkhelp_reports.c senken-0.3.0/src/gtkhelp_reports.c +--- senken-0.3.0.orig/src/gtkhelp_reports.c 2003-11-20 02:30:16.000000000 -0500 ++++ senken-0.3.0/src/gtkhelp_reports.c 2014-10-30 11:06:43.795828908 -0400 +@@ -1,3 +1,4 @@ ++#include + #include + #include + +diff -ru senken-0.3.0.orig/src/main.c senken-0.3.0/src/main.c +--- senken-0.3.0.orig/src/main.c 2003-11-20 02:30:16.000000000 -0500 ++++ senken-0.3.0/src/main.c 2014-10-30 11:06:28.147336339 -0400 +@@ -25,6 +25,7 @@ + # include + #endif + ++#include + #include + #include + #include diff --git a/games-simulation/senken/metadata.xml b/games-simulation/senken/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-simulation/senken/metadata.xml @@ -0,0 +1,5 @@ + + + +games + diff --git a/games-simulation/senken/senken-0.3.0.ebuild b/games-simulation/senken/senken-0.3.0.ebuild new file mode 100644 index 000000000000..f393cbd9f699 --- /dev/null +++ b/games-simulation/senken/senken-0.3.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="city simulation game" +HOMEPAGE="http://savannah.nongnu.org/projects/senken/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="nls" + +RDEPEND="x11-libs/gtk+:2 + >=media-libs/libsdl-1.2.4 + media-libs/sdl-image + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e "s:/usr/local/share:${GAMES_DATADIR}:" \ + lib/utils.h || die + epatch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-warnings.patch +} +src_configure() { + egamesconf $(use_enable nls) +} + +src_install() { + default + + dodir "${GAMES_DATADIR}" + mv "${D}/${GAMES_PREFIX}/share/senken" "${D}/${GAMES_DATADIR}/" || die + rm -rf "${D}/${GAMES_PREFIX}"/{include,lib,man,share} || die + + insinto "${GAMES_DATADIR}/senken/img" + doins img/*.png + + find "${D}/${GAMES_DATADIR}/" -type f -exec chmod a-x \{\} + + find "${D}/${GAMES_DATADIR}/" -name "Makefile.*" -exec rm -f \{\} + + + prepgamesdirs +} diff --git a/games-simulation/simutrans/Manifest b/games-simulation/simutrans/Manifest new file mode 100644 index 000000000000..03971e08e63b --- /dev/null +++ b/games-simulation/simutrans/Manifest @@ -0,0 +1,2 @@ +DIST simupak64-120-0-1.zip 4051769 SHA256 02a709dfa4b0c22e0b463ebcbd9684548356de1c61566cff9c127a79990dbb78 SHA512 21badd251b9018bef55531923e23cb1935c3831784fab028febd3879384330e843329499ab08a08e71238fb92bf7db36e18ecbbc4e719a942e427f58fc634afc WHIRLPOOL 5ae84653b5a138b5a987b7ca6512994f3ba8dff48fffbb94f6fe0bf4845d5537e93734f73174eb328f20b6c9986235ae6c461c55b5efde53a4b81620a3b1da83 +DIST simutrans-src-120-0-1.zip 3909005 SHA256 010a6e3765891e1821364e54f6bcdfb2911b627ffca3acae8350e06e53113683 SHA512 6f32b6f1c12f45125de8a12c4a034387a784e21fd8cdedcf7b1daefd9174d9a94825e8f68effa2ff1436cce2e2bc8cb5707161f3fa004185ae158400840dc450 WHIRLPOOL 36155184f5806a9cfab742f26e3fc78d5d7d928f99cddabbaf36c7c90d065dab02bb174c07d9633958f8b891b0db8cc5c94e45fd4f22d917b9a037c51a99b69a diff --git a/games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch b/games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch new file mode 100644 index 000000000000..d1ff41f33feb --- /dev/null +++ b/games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch @@ -0,0 +1,89 @@ +--- Makefile.orig ++++ Makefile +@@ -81,8 +81,6 @@ + ifeq ($(findstring $(OSTYPE), amiga haiku mac),) + CFLAGS += -minline-all-stringops + endif +-else +- CFLAGS += -O + endif + + ifdef DEBUG +@@ -101,6 +99,7 @@ + endif + else + CFLAGS += -DNDEBUG ++ CXXFLAGS += -DNDEBUG + endif + + ifneq ($(PROFILE),) +@@ -114,6 +113,7 @@ + ifneq ($(MULTI_THREAD),) + ifeq ($(shell expr $(MULTI_THREAD) \>= 1), 1) + CFLAGS += -DMULTI_THREAD ++ CXXFLAGS += -DMULTI_THREAD + ifeq ($(OSTYPE),mingw) + #use lpthreadGC2d for debug alternatively + LDFLAGS += -lpthreadGC2 +@@ -132,11 +132,13 @@ + endif + ifneq ($(REV),) + CFLAGS += -DREVISION="$(REV)" ++ CXXFLAGS += -DREVISION="$(REV)" + endif + endif + endif + + CFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS) ++CXXFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS) + CCFLAGS += -Wstrict-prototypes + + +@@ -492,6 +494,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs) + endif + CFLAGS += $(SDL_CFLAGS) ++ CXXFLAGS += $(SDL_CFLAGS) + LIBS += $(SDL_LDFLAGS) + endif + +@@ -523,6 +526,7 @@ + SDL_LDFLAGS := $(shell $(SDL2_CONFIG) --libs) + endif + CFLAGS += $(SDL_CFLAGS) ++ CXXFLAGS += $(SDL_CFLAGS) + LIBS += $(SDL_LDFLAGS) + endif + +@@ -538,6 +542,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs) + endif + CFLAGS += $(SDL_CFLAGS) ++ CXXFLAGS += $(SDL_CFLAGS) + LIBS += $(SDL_LDFLAGS) -lSDL_mixer + endif + +@@ -564,6 +569,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs) + endif + CFLAGS += $(SDL_CFLAGS) ++ CXXFLAGS += $(SDL_CFLAGS) + LIBS += $(SDL_LDFLAGS) -lglew32 + ifeq ($(OSTYPE),mingw) + LIBS += -lopengl32 +@@ -579,6 +585,7 @@ + endif + + CFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH) ++CXXFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH) + + ifneq ($(findstring $(OSTYPE), cygwin mingw),) + SOURCES += simres.rc +@@ -586,7 +593,6 @@ + endif + + CCFLAGS += $(CFLAGS) +-CXXFLAGS += $(CFLAGS) + + BUILDDIR ?= build/$(CFG) + PROGDIR ?= $(BUILDDIR) diff --git a/games-simulation/simutrans/metadata.xml b/games-simulation/simutrans/metadata.xml new file mode 100644 index 000000000000..72ba0c97685e --- /dev/null +++ b/games-simulation/simutrans/metadata.xml @@ -0,0 +1,8 @@ + + + + games + + simutrans + + diff --git a/games-simulation/simutrans/simutrans-0.120.0.1.ebuild b/games-simulation/simutrans/simutrans-0.120.0.1.ebuild new file mode 100644 index 000000000000..ffd446d6df6f --- /dev/null +++ b/games-simulation/simutrans/simutrans-0.120.0.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils games + +MY_PV=${PV/0./} +MY_PV=${MY_PV//./-} +DESCRIPTION="A free Transport Tycoon clone" +HOMEPAGE="http://www.simutrans.com/" +SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip + mirror://sourceforge/simutrans/simupak64-${MY_PV}.zip" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +RDEPEND="media-libs/libsdl[sound,video] + sys-libs/zlib + app-arch/bzip2 + media-libs/libpng:0 + media-libs/sdl-mixer" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + strip-flags # bug #293927 + echo "BACKEND=mixer_sdl +COLOUR_DEPTH=16 +OSTYPE=linux +VERBOSE=1" > config.default || die + + # make it look in the install location for the data + sed -i \ + -e "s:argv\[0\]:\"${GAMES_DATADIR}/${PN}/\":" \ + simmain.cc || die + + epatch "${FILESDIR}"/${P}-Makefile.patch + rm -f simutrans/{simutrans,*.txt} +} + +src_install() { + newgamesbin build/default/sim ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r simutrans/* + dodoc documentation/* + doicon simutrans.ico + make_desktop_entry simutrans Simutrans /usr/share/pixmaps/simutrans.ico + prepgamesdirs +} diff --git a/games-simulation/singularity/Manifest b/games-simulation/singularity/Manifest new file mode 100644 index 000000000000..26372813ea67 --- /dev/null +++ b/games-simulation/singularity/Manifest @@ -0,0 +1,2 @@ +DIST endgame-singularity-music-006.zip 28250705 SHA256 469697285c00564d831249898204d3e532f2685a17b4cf47ee4abc3ffc29276f SHA512 47e489112309cc742c2dcffec004aff25c54488fdf2a5f2dc67b7dcf67ca55996fe8e8403e4a16712fbc4e22289f12e612ad9d4322cd1d1aaab871f0ffb27e19 WHIRLPOOL bb94d4a5c50ef9fdc55e1384132c3ebb8788aa3746b70f8440b1855598682f7d6c99fb058d398012ca0b8bbe47d9b1362e070c3815ec96c05c9c9a66469da4bf +DIST singularity-0.30c-src.tar.gz 2265133 SHA256 f4759fc059ef136c2d4d9668a021b14922dd7300ab5f37ed318ad6778c83f28f SHA512 ffca50c179b745561a25e3fb3525abb862d72f63f533f8a41472067d0ce94c8a236486c9c40a5040335d84e903c498805d591dc546a92d0a7651105103fe114f WHIRLPOOL f7b95b170df3aa5bd5080f1d7480b655fb63bb513a9b16b5e5d9873779bf478d8c19e537c1274bbdbd04cc688c1c9ce3ba1507c28a503904703afff678a0bf0b diff --git a/games-simulation/singularity/metadata.xml b/games-simulation/singularity/metadata.xml new file mode 100644 index 000000000000..32317f01b561 --- /dev/null +++ b/games-simulation/singularity/metadata.xml @@ -0,0 +1,11 @@ + + + + games + + Install music files + + + endgame-singularity + + diff --git a/games-simulation/singularity/singularity-0.30c-r1.ebuild b/games-simulation/singularity/singularity-0.30c-r1.ebuild new file mode 100644 index 000000000000..a69ffa265cc8 --- /dev/null +++ b/games-simulation/singularity/singularity-0.30c-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +MUSIC=endgame-${PN}-music-006 +DESCRIPTION="A simulation of a true AI. Go from computer to computer, pursued by the entire world" +HOMEPAGE="http://www.emhsoft.com/singularity/" +SRC_URI="http://endgame-singularity.googlecode.com/files/${P}-src.tar.gz + music? ( http://endgame-singularity.googlecode.com/files/${MUSIC}.zip )" + +LICENSE="GPL-2 CC-BY-SA-2.5" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+music" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/pygame[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + media-libs/sdl-mixer[vorbis]" +DEPEND="${DEPEND} + app-arch/unzip" + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + rm -f code/{,*}/*.pyc data/*.html || die # Remove unecessary files +} + +src_install() { + insinto "${GAMES_DATADIR}/${PN}" + doins -r code data ${PN}.py || die + python_optimize "${ED%/}/${GAMES_DATADIR}"/${PN} + + if use music ; then + doins -r ../${MUSIC}/music || die + fi + games_make_wrapper ${PN} "${EPYTHON} ${PN}.py" "${GAMES_DATADIR}/${PN}" + dodoc README.txt TODO Changelog AUTHORS + prepgamesdirs +} -- cgit v1.2.3