diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-games | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
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 <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-games')
171 files changed, 5714 insertions, 0 deletions
diff --git a/dev-games/KXL/KXL-1.1.7-r2.ebuild b/dev-games/KXL/KXL-1.1.7-r2.ebuild new file mode 100644 index 000000000000..c0f2d113c1ae --- /dev/null +++ b/dev-games/KXL/KXL-1.1.7-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools + +DESCRIPTION="Development Library for making games for X" +HOMEPAGE="http://kxl.orz.hm/" +SRC_URI="http://kxl.hn.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="static-libs" + +DEPEND="x11-libs/libX11" + +src_prepare() { + epatch "${FILESDIR}"/${P}-m4.patch \ + "${FILESDIR}"/${P}-amd64.patch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-ldflags.patch + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + use static-libs || prune_libtool_files +} diff --git a/dev-games/KXL/Manifest b/dev-games/KXL/Manifest new file mode 100644 index 000000000000..fffe482117c1 --- /dev/null +++ b/dev-games/KXL/Manifest @@ -0,0 +1 @@ +DIST KXL-1.1.7.tar.gz 192070 SHA256 118b704befa24992031b51c9da1bc3786da153cfb21a0452bae97b1d479bdd98 SHA512 f3a9051b0e8916745725a2809097df07c59f8811f336574def7e479c992175d0bd49661817f9da35d122d291aff0bde5d4c27e5b17a3f09878e71b2c7a709adb WHIRLPOOL 1aa271911adee47bc9d954f409c5bb0b93bdb51ead0313ee9461889b6591823cd93a4ec8dbd08329498c731840d472ed2cb7048dfa936fa1a0f311f927c833a5 diff --git a/dev-games/KXL/files/KXL-1.1.7-amd64.patch b/dev-games/KXL/files/KXL-1.1.7-amd64.patch new file mode 100644 index 000000000000..ec4b141d2a3e --- /dev/null +++ b/dev-games/KXL/files/KXL-1.1.7-amd64.patch @@ -0,0 +1,95 @@ +--- src/KXLsound.c.old 2007-05-13 21:59:27.000000000 +0200 ++++ src/KXLsound.c 2007-05-13 22:09:19.000000000 +0200 +@@ -4,6 +4,9 @@ + #include <sys/ioctl.h> + #include <sys/time.h> + #include <linux/soundcard.h> ++#include <stdlib.h> ++#include <errno.h> ++#include <string.h> + #include "KXL.h" + + #define MIN(a, b) (((a) < (b)) ? (a) : (b)) +@@ -22,7 +24,7 @@ + struct { + Uint16 ListCnt; + Sint32 ID; +- Sint32 Pipe[2]; ++ int Pipe[2]; + Sint32 Device; + Uint16 PlayCnt; + KXL_SoundControl PlaySound[MAX_SOUNDS_PLAYING]; +@@ -242,11 +244,19 @@ + KXL_SoundOk = False; + + KXL_LoadSoundData(path, fname); +- // device check +- if ((KXL_SoundData.Device = open("/dev/dsp", O_WRONLY)) == -1) { +- fprintf(stderr, "KXL error message\nnot found sound card\n"); ++ // Open the sound device in non-blocking mode, because ALSA's OSS ++ // emulation and some broken OSS drivers would make a blocking call ++ // wait forever until the device is available. Since this breaks the ++ // OSS spec, we immediately put it back to blocking mode if the ++ // operation was successful. ++ KXL_SoundData.Device = open("/dev/dsp", O_WRONLY|O_NDELAY); ++ if (KXL_SoundData.Device < 0) { ++ fprintf(stderr, "KXL error message\ncould not open sound card (%s)\n", ++ strerror(errno)); + return; + } ++ fcntl( KXL_SoundData.Device, F_SETFL, ++ fcntl( KXL_SoundData.Device, F_GETFL ) &~ FNDELAY ); + // create pipe + if (pipe(KXL_SoundData.Pipe) < 0) { + fprintf(stderr, "KXL error message\npipe error\n"); +--- src/KXL.h.old 2007-05-13 22:25:11.000000000 +0200 ++++ src/KXL.h 2007-05-13 22:25:47.000000000 +0200 +@@ -205,6 +205,7 @@ + KXL_Frame *Frame; // Pointer of frame structure + GC FontGC; // GC of font + XFontStruct *WinFont; // Pointer of font structrue ++ Bool DetectAutoRepeat; // Does the server have detectable auto repeat + } KXL_Window; + // RGBE palette + typedef struct { +--- src/KXLimage.c.old 2007-05-13 22:29:02.000000000 +0200 ++++ src/KXLimage.c 2007-05-13 22:29:33.000000000 +0200 +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <stdlib.h> + #include "KXL.h" + + extern KXL_Window *KXL_Root; +--- src/KXLvisual.c.old 2007-05-13 22:22:34.000000000 +0200 ++++ src/KXLvisual.c 2007-05-13 22:28:39.000000000 +0200 +@@ -1,4 +1,6 @@ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + #include "KXL.h" + + //================================================================ +@@ -364,7 +366,11 @@ + KXL_ReSizeFrame(w, h); + KXL_Clear_Frame(0, 0, w, h); + // Auto repeat off +- XAutoRepeatOff(KXL_Root->Display); ++ XkbSetDetectableAutoRepeat(KXL_Root->Display, True, ++ &KXL_Root->DetectAutoRepeat); ++ if(!KXL_Root->DetectAutoRepeat) { ++ XAutoRepeatOff(KXL_Root->Display); ++ } + } + + //============================================================== +@@ -377,7 +383,9 @@ + XFreeGC(KXL_Root->Display, KXL_Root->Frame->Gc); + KXL_Free(KXL_Root->Frame); + // Auto repeat on +- XAutoRepeatOn(KXL_Root->Display); ++ if(!KXL_Root->DetectAutoRepeat) { ++ XAutoRepeatOn(KXL_Root->Display); ++ } + // Delete font + XFreeGC(KXL_Root->Display, KXL_Root->FontGC); + // Delete window diff --git a/dev-games/KXL/files/KXL-1.1.7-as-needed.patch b/dev-games/KXL/files/KXL-1.1.7-as-needed.patch new file mode 100644 index 000000000000..d99564202ecd --- /dev/null +++ b/dev-games/KXL/files/KXL-1.1.7-as-needed.patch @@ -0,0 +1,8 @@ +--- src/Makefile.am.old 2009-01-28 16:03:27.000000000 +0100 ++++ src/Makefile.am 2009-01-28 16:03:47.000000000 +0100 +@@ -2,3 +2,4 @@ + libKXL_la_SOURCES = KXLmisc.c KXLsound.c KXLjoystick.c KXLvisual.c KXLimage.c + include_HEADERS = KXL.h + libKXL_la_LDFLAGS = -release $(VERSION) ++libKXL_la_LIBADD = -lX11 + diff --git a/dev-games/KXL/files/KXL-1.1.7-ldflags.patch b/dev-games/KXL/files/KXL-1.1.7-ldflags.patch new file mode 100644 index 000000000000..e628b5d2170f --- /dev/null +++ b/dev-games/KXL/files/KXL-1.1.7-ldflags.patch @@ -0,0 +1,10 @@ +--- KXL.m4.old 2010-09-23 14:20:45.000000000 +0200 ++++ KXL.m4 2010-09-23 14:21:08.000000000 +0200 +@@ -29,7 +29,6 @@ + + dnl add the KXL library + KXL_LIBS="$KXL_LIBS -lKXL" +-LDFLAGS="$KXL_LIBS" + AC_MSG_RESULT($KXL_LIBS) + + AC_PATH_XTRA diff --git a/dev-games/KXL/files/KXL-1.1.7-m4.patch b/dev-games/KXL/files/KXL-1.1.7-m4.patch new file mode 100644 index 000000000000..f039974e6f98 --- /dev/null +++ b/dev-games/KXL/files/KXL-1.1.7-m4.patch @@ -0,0 +1,9 @@ +Get rid of aclocal warning: +/usr/share/aclocal/KXL.m4:6: warning: underquoted definition of AM_PATH_KXL +--- KXL-1.1.7/KXL.m4 ++++ KXL-1.1.7/KXL.m4 +@@ -5,3 +5,3 @@ + dnl +-AC_DEFUN(AM_PATH_KXL, ++AC_DEFUN([AM_PATH_KXL], + [dnl diff --git a/dev-games/KXL/metadata.xml b/dev-games/KXL/metadata.xml new file mode 100644 index 000000000000..d5af03e3e537 --- /dev/null +++ b/dev-games/KXL/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +KXL is the library developed for the purpose of the ability to develop a +game easily on X Window System of Linux. + +KXL is the composition of the window of one sheet, and the frame buffer +of one sheet. + +KXL corresponds to reading of a bitmap picture, and offers a still +simple drawing function and a wave sound function. + +KXL is written only using xlib. + +KXL is written by the C language. +</longdescription> +</pkgmetadata> diff --git a/dev-games/aseprite/Manifest b/dev-games/aseprite/Manifest new file mode 100644 index 000000000000..00fdc1697cd7 --- /dev/null +++ b/dev-games/aseprite/Manifest @@ -0,0 +1,2 @@ +DIST aseprite-0.9.5.tar.xz 507744 SHA256 81e0360d9d8a32d6c548775dbacdb1520aac94b54c2d9f1327d52f219737f154 SHA512 fc6df942aefea67fd05e1b688209b70a2d5879a1441f61a6e3ee4d72fcdab4e580e1d4d7392fd493e0a46c45401a3eef759aa3efee17450e4c98df7f310b2d00 WHIRLPOOL 060dcf2754827ab3b30dde55cfcecd25e2d88f6e296b45529737e2194f4a9891d171776d10f9c571890efb9766b64080b85dc3d737102d2ac7be9843d27fdaef +DIST aseprite-1.0.6.tar.gz 3685678 SHA256 449619ee49eaf18c483706c6d2364868085b0f311548bd69e5664fdc0c06e21e SHA512 0189cb6d845ea799f84c17b6456a10341a5ba2a2712bed2c202a711ffe60bb3f2e2eb47bb5702c6326f16a842cd8780c4c1f44ba61111a535b172c34e6f2d327 WHIRLPOOL 4bbf000bf30beafef0003f047f625d4af7e61d51336562ba9192eceb4c72cafbd361bf68ba5fef20b260e74997b679d440d2f9e6386c1ab48c0a6e103577caf2 diff --git a/dev-games/aseprite/aseprite-0.9.5-r1.ebuild b/dev-games/aseprite/aseprite-0.9.5-r1.ebuild new file mode 100644 index 000000000000..00e9e9b0b188 --- /dev/null +++ b/dev-games/aseprite/aseprite-0.9.5-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit cmake-utils flag-o-matic + +DESCRIPTION="Animated sprite editor & pixel art tool" +HOMEPAGE="http://www.aseprite.org" +SRC_URI="http://aseprite.googlecode.com/files/aseprite-${PV}.tar.xz" + +LICENSE="GPL-2 FTL" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="debug memleak static test" + +RDEPEND="dev-libs/tinyxml + media-libs/allegro:0[X,png] + media-libs/giflib + media-libs/libpng:0 + net-misc/curl + sys-libs/zlib + virtual/jpeg + x11-libs/libX11" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" + +PATCHES=( "${FILESDIR}"/aseprite-0.9.5-as-needed.patch + "${FILESDIR}"/aseprite-0.9.5-underlinking.patch ) + +DOCS=( docs/quickref.odt + docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt ) + +src_prepare() { + cmake-utils_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + + # Only do a static link with Allegro if the user explicitly wants it. + if ! use static ; then + sed -i '/-DALLEGRO_STATICLINK/d' CMakeLists.txt || die + fi + + # Remove long compiling tests for users with FEATURES="-test", + # also removes the gtest dependency from the build. + if ! use test ; then + sed -i '/^find_unittests/d' src/CMakeLists.txt || die + sed -i '/include_directories(.*third_party\/gtest.*)/d' src/CMakeLists.txt || die + sed -i '/add_subdirectory(gtest)/d' third_party/CMakeLists.txt || die + fi + + # Fix from https://465450.bugs.gentoo.org/attachment.cgi?id=345154 + # for "error: ‘png_sizeof’ was not declared in this scope". + sed -i 's/png_\(sizeof\)/\1/g' src/file/png_format.cpp || die +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs + + mycmakeargs=( + -DENABLE_UPDATER=OFF + -DUSE_SHARED_ALLEGRO4=ON + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_GIFLIB=ON + -DUSE_SHARED_JPEGLIB=ON + -DUSE_SHARED_LIBLOADPNG=ON + -DUSE_SHARED_LIBPNG=ON + -DUSE_SHARED_TINYXML=ON + -DUSE_SHARED_ZLIB=ON + -DFULLSCREEN_PLATFORM=ON + $(cmake-utils_use_enable memleak) + $(cmake-utils_use_use static STATIC_LIBC) + ) + + if use test ; then + mycmakeargs+=( + -DUSE_SHARED_GTEST=ON + ) + fi + + cmake-utils_src_configure +} + +pkg_postinst() { + elog "Warning: aseprite might not choose the resolution correctly; so, you might need" + elog " to change the resolution once using the -resolution WxH[xBPP] argument." + elog "" + elog " On subsequent runs, aseprite will remember the resolution you have set." + elog "" + elog " For example: \`aseprite -resolution 1440x900\`" +} diff --git a/dev-games/aseprite/aseprite-1.0.6.ebuild b/dev-games/aseprite/aseprite-1.0.6.ebuild new file mode 100644 index 000000000000..a701677ca1b1 --- /dev/null +++ b/dev-games/aseprite/aseprite-1.0.6.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit cmake-utils multilib toolchain-funcs flag-o-matic + +DESCRIPTION="Animated sprite editor & pixel art tool" +HOMEPAGE="http://www.aseprite.org" +SRC_URI="https://github.com/aseprite/aseprite/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 FTL" +SLOT="0" +# giflib still unkeyworded +KEYWORDS="" + +IUSE="debug memleak" + +RDEPEND="dev-libs/tinyxml + media-libs/allegro:0[X,png] + >=media-libs/giflib-5.0 + media-libs/libpng:0 + sys-libs/zlib + virtual/jpeg + x11-libs/libX11 + x11-libs/pixman" +DEPEND="${RDEPEND} + dev-cpp/gtest" + +PATCHES=( "${FILESDIR}"/aseprite-0.9.5-underlinking.patch + "${FILESDIR}"/${P}-obinary.patch + "${FILESDIR}"/${P}-png_sizeof.patch ) + +DOCS=( docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt + README.md ) + +src_prepare() { + cmake-utils_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + + rm -r third_party/* || die +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs=( + -DCURL_STATICLIB=OFF + -DENABLE_UPDATER=OFF + -DFULLSCREEN_PLATFORM=ON + -DLIBPIXMAN_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --variable=includedir pixman-1)/pixman-1" + -DLIBPIXMAN_LIBRARY="$($(tc-getPKG_CONFIG) --variable=libdir pixman-1)/libpixman-1.so" + -DUSE_SHARED_ALLEGRO4=ON + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_GIFLIB=ON + -DUSE_SHARED_GTEST=ON + -DUSE_SHARED_JPEGLIB=ON + -DUSE_SHARED_LIBLOADPNG=ON + -DUSE_SHARED_LIBPNG=ON + -DUSE_SHARED_PIXMAN=ON + -DUSE_SHARED_TINYXML=ON + -DUSE_SHARED_ZLIB=ON + $(cmake-utils_use_enable memleak) + ) + + cmake-utils_src_configure +} diff --git a/dev-games/aseprite/aseprite-9999.ebuild b/dev-games/aseprite/aseprite-9999.ebuild new file mode 100644 index 000000000000..56d269378738 --- /dev/null +++ b/dev-games/aseprite/aseprite-9999.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit cmake-utils flag-o-matic git-2 + +DESCRIPTION="Animated sprite editor & pixel art tool" +HOMEPAGE="http://www.aseprite.org" +EGIT_REPO_URI="git://github.com/dacap/${PN}.git" + +LICENSE="GPL-2 FTL" +SLOT="0" +KEYWORDS="" + +IUSE="debug memleak static test" + +RDEPEND="dev-libs/tinyxml + media-libs/allegro:0[X,png] + media-libs/giflib + media-libs/libpng:0 + net-misc/curl + sys-libs/zlib + virtual/jpeg + x11-libs/libX11" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" + +DOCS=( docs/quickref.odt + docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt ) + +src_prepare() { + cmake-utils_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + + # Only do a static link with Allegro if the user explicitly wants it. + if ! use static ; then + sed -i '/-DALLEGRO_STATICLINK/d' CMakeLists.txt || die + fi + + # Remove long compiling tests for users with FEATURES="-test", + # also removes the gtest dependency from the build. + if ! use test ; then + sed -i '/^find_unittests/d' src/CMakeLists.txt || die + sed -i '/include_directories(.*third_party\/gtest.*)/d' src/CMakeLists.txt || die + sed -i '/add_subdirectory(gtest)/d' third_party/CMakeLists.txt || die + fi +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs + + mycmakeargs=( + -DENABLE_UPDATER=OFF + -DUSE_SHARED_ALLEGRO4=ON + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_GIFLIB=ON + -DUSE_SHARED_JPEGLIB=ON + -DUSE_SHARED_LIBLOADPNG=ON + -DUSE_SHARED_LIBPNG=ON + -DUSE_SHARED_TINYXML=ON + -DUSE_SHARED_ZLIB=ON + -DFULLSCREEN_PLATFORM=ON + $(cmake-utils_use_enable memleak) + $(cmake-utils_use_use static STATIC_LIBC) + ) + + if use test ; then + mycmakeargs+=( + -DUSE_SHARED_GTEST=ON + ) + fi + + cmake-utils_src_configure +} + +pkg_postinst() { + elog "Warning: aseprite might not choose the resolution correctly; so, you might need" + elog " to change the resolution once using the -resolution WxH[xBPP] argument." + elog "" + elog " On subsequent runs, aseprite will remember the resolution you have set." + elog "" + elog " For example: \`aseprite -resolution 1440x900\`" +} diff --git a/dev-games/aseprite/files/aseprite-0.9.5-as-needed.patch b/dev-games/aseprite/files/aseprite-0.9.5-as-needed.patch new file mode 100644 index 000000000000..9f50c25979ba --- /dev/null +++ b/dev-games/aseprite/files/aseprite-0.9.5-as-needed.patch @@ -0,0 +1,38 @@ +Description: fix FTBFS with --as-needed linker option + Libraries must be placed after object files in command line. +Author: Ilya Barygin <randomaction@ubuntu.com> + +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -135,6 +135,10 @@ + # All libraries for .exe files + set(all_libs ${aseprite_libraries} ${libs3rdparty} ${sys_libs}) + ++if(LIBALLEGRO4_LINK_FLAGS) ++ set(all_libs ${all_libs} ${LIBALLEGRO4_LINK_FLAGS}) ++endif() ++ + ###################################################################### + # ASEPRITE libraries + +@@ -405,10 +409,6 @@ + + add_executable(aseprite WIN32 main.cpp ${win32_resources} ${x11_resources}) + target_link_libraries(aseprite ${all_libs}) +-if(LIBALLEGRO4_LINK_FLAGS) +- set_target_properties(aseprite +- PROPERTIES LINK_FLAGS ${LIBALLEGRO4_LINK_FLAGS}) +-endif() + + install(TARGETS aseprite + RUNTIME DESTINATION bin) +@@ -450,8 +450,7 @@ + endif() + + if(LIBALLEGRO4_LINK_FLAGS) +- set_target_properties(${testname} +- PROPERTIES LINK_FLAGS ${LIBALLEGRO4_LINK_FLAGS}) ++ target_link_libraries(${testname} ${LIBALLEGRO4_LINK_FLAGS}) + endif() + + if(extra_definitions) diff --git a/dev-games/aseprite/files/aseprite-0.9.5-underlinking.patch b/dev-games/aseprite/files/aseprite-0.9.5-underlinking.patch new file mode 100644 index 000000000000..8f3027d4baf7 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-0.9.5-underlinking.patch @@ -0,0 +1,21 @@ +From 169edeaa69cce2670213c39232a249a487670883 Mon Sep 17 00:00:00 2001 +From: hasufell <hasufell@hasufell.de> +Date: Sun, 2 Nov 2014 16:58:33 +0100 +Subject: [PATCH] Fix underlinking with USE_SHARED_ALLEGRO4=ON + +--- + src/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 21c3352..0ce11d2 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -58,6 +58,7 @@ if(USE_SHARED_ALLEGRO4) + OUTPUT_VARIABLE LIBALLEGRO4_LINK_FLAGS + OUTPUT_STRIP_TRAILING_WHITESPACE) + ++ set(LIBALLEGRO4_LINK_FLAGS ${LIBALLEGRO4_LINK_FLAGS} ${PLATFORM_LIBS}) + include_directories(${LIBALLEGRO4_INCLUDE_DIR}) + else() + add_definitions(-DALLEGRO4_WITH_RESIZE_PATCH) diff --git a/dev-games/aseprite/files/aseprite-1.0.6-obinary.patch b/dev-games/aseprite/files/aseprite-1.0.6-obinary.patch new file mode 100644 index 000000000000..4536fc53a217 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-1.0.6-obinary.patch @@ -0,0 +1,27 @@ +From 9997ad9fcbb0dcef16e4e8224e4238ecdfe56b66 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= + <Mailaender@users.noreply.github.com> +Date: Sun, 28 Sep 2014 06:38:18 +0200 +Subject: [PATCH] always declare O_BINARY + +closes #461 +--- + src/base/file_handle.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/base/file_handle.cpp b/src/base/file_handle.cpp +index 0ba214e..f336513 100644 +--- a/src/base/file_handle.cpp ++++ b/src/base/file_handle.cpp +@@ -21,6 +21,11 @@ + #include <fcntl.h> + #endif + ++#ifndef O_BINARY ++#define O_BINARY 0 ++#define O_TEXT 0 ++#endif ++ + using namespace std; + + namespace base { diff --git a/dev-games/aseprite/files/aseprite-1.0.6-png_sizeof.patch b/dev-games/aseprite/files/aseprite-1.0.6-png_sizeof.patch new file mode 100644 index 000000000000..02fa48006646 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-1.0.6-png_sizeof.patch @@ -0,0 +1,11 @@ +--- src/app/file/png_format.cpp ++++ src/app/file/png_format.cpp +@@ -413,7 +413,7 @@ + #endif + + // Save the color palette. +- palette = (png_colorp)png_malloc(png_ptr, PNG_MAX_PALETTE_LENGTH * png_sizeof(png_color)); ++ palette = (png_colorp)png_malloc(png_ptr, PNG_MAX_PALETTE_LENGTH * sizeof(png_color)); + for (c = 0; c < PNG_MAX_PALETTE_LENGTH; c++) { + fop_sequence_get_color(fop, c, &r, &g, &b); + palette[c].red = r; diff --git a/dev-games/aseprite/metadata.xml b/dev-games/aseprite/metadata.xml new file mode 100644 index 000000000000..21b446f5661b --- /dev/null +++ b/dev-games/aseprite/metadata.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + Animated sprite editor and pixel art tool + </longdescription> + <use> + <flag name="memleak">Enable memory-leaks detector (only for developers)</flag> + <flag name="static">Link against static version of C and C++ runtimes</flag> + </use> +</pkgmetadata> diff --git a/dev-games/cardpics/Manifest b/dev-games/cardpics/Manifest new file mode 100644 index 000000000000..339e9c8f6a2b --- /dev/null +++ b/dev-games/cardpics/Manifest @@ -0,0 +1 @@ +DIST cardpics-0.4.tar.bz2 151425 SHA256 a6ece72ce0a2f97910b470248b2dd369a1004033315398fa52ca11754294f8a5 SHA512 7451112f5b7954326e381563a3730c677b261481de79ede3def451591ce081e651a86a4c24ff3259ab979ac109446588bb1cacd0beed6892a5a288f190bf6382 WHIRLPOOL 3aa22a01c7b550d60d6762bd9e849eff4e1d8ebdb3b4bb7d49b866f261752bc32f4086483da9ab8f7d87b9fc0601ca3f895cb279d4fdf7801b330241bb392029 diff --git a/dev-games/cardpics/cardpics-0.4.ebuild b/dev-games/cardpics/cardpics-0.4.ebuild new file mode 100644 index 000000000000..ac3f4d9e46da --- /dev/null +++ b/dev-games/cardpics/cardpics-0.4.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="set of free cards sets" +HOMEPAGE="http://www.nongnu.org/cardpics/" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc sparc x86" +IUSE="" + +src_install() { + default + prepgamesdirs +} diff --git a/dev-games/cardpics/metadata.xml b/dev-games/cardpics/metadata.xml new file mode 100644 index 000000000000..2e7008ed7a14 --- /dev/null +++ b/dev-games/cardpics/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +cardpics is a set of free cards sets. + +If you are programming a card game and are looking for free cards, +Cardpics was made for you! Get a set of cards and include them in your +project, as soon as your project is free. +</longdescription> +</pkgmetadata> diff --git a/dev-games/cegui/Manifest b/dev-games/cegui/Manifest new file mode 100644 index 000000000000..11cbd74e8e75 --- /dev/null +++ b/dev-games/cegui/Manifest @@ -0,0 +1,3 @@ +DIST CEGUI-0.6.2-DOCS.tar.gz 18396638 SHA256 f1ea46bd583c486a6c588118573ebde55b06e90b190083e95525820e950ce2c8 SHA512 56ded923f21f18d837d71425e06fe8675a2efa979edde461a9e4e558c213cbb79ff8eeb576211da6ade56526ccdd9644a7a45b3619058615388e3882f96b9fb4 WHIRLPOOL f67c9dba4558c43ec9d14c160f228e974de4364bfe36ebfa9f3fe6bfc290fd5c4f024e954525845cd83645a06d53e6d63776137cbe58c459bcdd0e350d12e9c7 +DIST CEGUI-0.6.2b.tar.gz 2628081 SHA256 eb77741cd9fcc927a876e8116b98691212e973d2264e2071406423f6ca3e305f SHA512 52ed7e7a97024138af957815a396dda74b650e7c53542d2d48c5eb95335bec270abca3685c49b05078f4338079334df6bfbcec75e9b7eb21ee40bdbff5f57b20 WHIRLPOOL 3fde683a82fb0be33565adb28fbcb4b7001be99f1b3bdb2d3af9abecc5dc7681d633f141cc19f9eb1dc264d0fb0b2084ea604202a22a3e2cc415bdb6b9686161 +DIST cegui-0.8.4.tar.bz2 17894771 SHA256 b5fcbd548b83045e92c4da413928113be77ebee0117368925e1904b3b957a388 SHA512 493c949426ff2d9b760712b5fe7ed6a427404cd13934c36c7bdf207c0458686bcc74b675e9aeb5d16cd04f0874515503b8d3135ceb71b4d74738f047e4da39c7 WHIRLPOOL 1550a7fe2688c8247c8036e7302b0990b3abf3b16d794cd1d7f38a4af1feb4d373db476d911428e1380b79ff0feba1dedc1abefba17255b46eb6fa4956c39bc4 diff --git a/dev-games/cegui/cegui-0.6.2b.ebuild b/dev-games/cegui/cegui-0.6.2b.ebuild new file mode 100644 index 000000000000..2b1d81ee3e9e --- /dev/null +++ b/dev-games/cegui/cegui-0.6.2b.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +MY_P=CEGUI-${PV%b} +DESCRIPTION="Crazy Eddie's GUI System" +HOMEPAGE="http://www.cegui.org.uk/" +SRC_URI="mirror://sourceforge/crayzedsgui/${MY_P}b.tar.gz + doc? ( mirror://sourceforge/crayzedsgui/${MY_P}-DOCS.tar.gz )" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="debug devil directfb doc examples expat irrlicht lua opengl xerces-c xml" + +RDEPEND="dev-libs/libpcre + media-libs/freetype:2 + devil? ( media-libs/devil ) + directfb? ( dev-libs/DirectFB ) + expat? ( dev-libs/expat ) + irrlicht? ( dev-games/irrlicht ) + lua? ( + dev-lang/lua + dev-lua/toluapp + ) + opengl? ( + virtual/opengl + media-libs/freeglut + media-libs/glew + ) + xerces-c? ( dev-libs/xerces-c ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-dups.patch \ + "${FILESDIR}"/${P}-gcc46.patch + sed -i \ + -e 's/ILvoid/void/g' \ + ImageCodecModules/DevILImageCodec/CEGUIDevILImageCodec.cpp || die + if use examples ; then + cp -r Samples Samples.clean || die + rm -f $(find Samples.clean -name 'Makefile*') || die + rm -rf Samples.clean/bin || die + fi + eautoreconf #220040 +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable devil) \ + $(use_enable directfb directfb-renderer) \ + $(use_enable examples samples) \ + $(use_enable expat) \ + $(use_enable irrlicht irrlicht-renderer) \ + $(use_enable lua external-toluapp) \ + $(use_enable lua lua-module) \ + $(use_enable lua toluacegui) \ + $(use_enable opengl external-glew) \ + $(use_enable opengl opengl-renderer) \ + $(use_enable xerces-c) \ + $(use_enable xml libxml) \ + --enable-static \ + --enable-tga \ + --enable-tinyxml \ + --disable-corona \ + --disable-dependency-tracking \ + --disable-external-tinyxml \ + --disable-freeimage \ + --disable-samples \ + --disable-silly \ + --without-gtk2 \ + --without-ogre-renderer +} + +src_install() { + default + if use doc ; then + dohtml -r documentation/api_reference + dodoc documentation/*.pdf + fi + if use examples ; then + insinto /usr/share/doc/${PF}/Samples + doins -r Samples.clean/* + fi +} diff --git a/dev-games/cegui/cegui-0.8.4.ebuild b/dev-games/cegui/cegui-0.8.4.ebuild new file mode 100644 index 000000000000..14a6607dae35 --- /dev/null +++ b/dev-games/cegui/cegui-0.8.4.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# TODO: multiple ABI? +PYTHON_COMPAT=( python2_7 ) +inherit eutils flag-o-matic cmake-utils python-single-r1 + +DESCRIPTION="Crazy Eddie's GUI System" +HOMEPAGE="http://www.cegui.org.uk/" +SRC_URI="mirror://sourceforge/crayzedsgui/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 -ppc x86" +IUSE="bidi debug devil doc freeimage expat irrlicht lua ogre opengl pcre python static-libs tinyxml truetype xerces-c +xml zip" +REQUIRED_USE="|| ( expat tinyxml xerces-c xml ) + ${PYTHON_REQUIRED_USE}" # bug 362223 + +# gles broken +# gles? ( media-libs/mesa[gles1] ) +# directfb broken +# directfb? ( dev-libs/DirectFB ) +RDEPEND=" + virtual/libiconv + bidi? ( dev-libs/fribidi ) + devil? ( media-libs/devil ) + expat? ( dev-libs/expat ) + freeimage? ( media-libs/freeimage ) + irrlicht? ( dev-games/irrlicht ) + lua? ( + dev-lang/lua + dev-lua/toluapp + ) + ogre? ( >=dev-games/ogre-1.7 ) + opengl? ( + virtual/opengl + virtual/glu + media-libs/glew + ) + pcre? ( dev-libs/libpcre ) + python? ( + ${PYTHON_DEPS} + dev-libs/boost:=[python,${PYTHON_USEDEP}] + ) + tinyxml? ( dev-libs/tinyxml ) + truetype? ( media-libs/freetype:2 ) + xerces-c? ( dev-libs/xerces-c ) + xml? ( dev-libs/libxml2 ) + zip? ( sys-libs/zlib[minizip] )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + opengl? ( media-libs/glm )" + +src_configure() { + # http://www.cegui.org.uk/mantis/view.php?id=991 + append-ldflags $(no-as-needed) + + local mycmakeargs=( + -DCEGUI_BUILD_IMAGECODEC_CORONA=OFF + $(cmake-utils_use devil CEGUI_BUILD_IMAGECODEC_DEVIL) + $(cmake-utils_use freeimage CEGUI_BUILD_IMAGECODEC_FREEIMAGE) + -DCEGUI_BUILD_IMAGECODEC_PVR=OFF + -DCEGUI_BUILD_IMAGECODEC_SILLY=OFF + -DCEGUI_BUILD_IMAGECODEC_STB=ON + -DCEGUI_BUILD_IMAGECODEC_TGA=ON + $(cmake-utils_use lua CEGUI_BUILD_LUA_GENERATOR) + $(cmake-utils_use lua CEGUI_BUILD_LUA_MODULE) + $(cmake-utils_use python CEGUI_BUILD_PYTHON_MODULES) + -DCEGUI_BUILD_RENDERER_DIRECTFB=OFF + $(cmake-utils_use irrlicht CEGUI_BUILD_RENDERER_IRRLICHT) + -DCEGUI_BUILD_RENDERER_NULL=ON + $(cmake-utils_use ogre CEGUI_BUILD_RENDERER_OGRE) + $(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL) + $(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL3) + -DCEGUI_BUILD_RENDERER_OPENGLES=OFF + $(cmake-utils_use static-libs CEGUI_BUILD_STATIC_CONFIGURATION) + -DCEGUI_BUILD_TESTS=OFF + $(cmake-utils_use expat CEGUI_BUILD_XMLPARSER_EXPAT) + $(cmake-utils_use xml CEGUI_BUILD_XMLPARSER_LIBXML2) + -DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF + $(cmake-utils_use tinyxml CEGUI_BUILD_XMLPARSER_TINYXML) + $(cmake-utils_use xerces-c CEGUI_BUILD_XMLPARSER_XERCES) + $(cmake-utils_use truetype CEGUI_HAS_FREETYPE) + $(cmake-utils_use zip CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER) + $(cmake-utils_use pcre CEGUI_HAS_PCRE_REGEX) + -DCEGUI_SAMPLES_ENABLED=OFF + $(cmake-utils_use bidi CEGUI_USE_FRIBIDI) + -DCEGUI_USE_MINIBIDI=OFF + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + use doc && emake -C "${BUILD_DIR}" html +} + +src_install() { + cmake-utils_src_install + use doc && dohtml "${BUILD_DIR}"/doc/doxygen/html/* +} diff --git a/dev-games/cegui/files/cegui-0.6.2b-dups.patch b/dev-games/cegui/files/cegui-0.6.2b-dups.patch new file mode 100644 index 000000000000..a4d80c4347dc --- /dev/null +++ b/dev-games/cegui/files/cegui-0.6.2b-dups.patch @@ -0,0 +1,12 @@ +diff -Naur _orig_CEGUI-0.6.2/include/elements/Makefile.am CEGUI-0.6.2/include/elements/Makefile.am +--- _orig_CEGUI-0.6.2/include/elements/Makefile.am 2008-01-02 15:26:05.000000000 +0100 ++++ CEGUI-0.6.2/include/elements/Makefile.am 2010-07-11 13:12:16.786338068 +0200 +@@ -21,8 +21,6 @@ + CEGUIItemListBaseProperties.h \ + CEGUIItemListbox.h \ + CEGUIItemListboxProperties.h \ +- CEGUIListHeader.h \ +- CEGUIListHeaderProperties.h \ + CEGUIListbox.h \ + CEGUIListboxItem.h \ + CEGUIListboxProperties.h \ diff --git a/dev-games/cegui/files/cegui-0.6.2b-gcc43.patch b/dev-games/cegui/files/cegui-0.6.2b-gcc43.patch new file mode 100644 index 000000000000..09695626ceff --- /dev/null +++ b/dev-games/cegui/files/cegui-0.6.2b-gcc43.patch @@ -0,0 +1,10 @@ +--- RendererModules/directfbRenderer/directfb-renderer.h ++++ RendererModules/directfbRenderer/directfb-renderer.h +@@ -28,6 +28,7 @@ + #include "CEGUIBase.h" + #include <directfb.h> + ++#include <algorithm> + #include <vector> + #include <list> + diff --git a/dev-games/cegui/files/cegui-0.6.2b-gcc46.patch b/dev-games/cegui/files/cegui-0.6.2b-gcc46.patch new file mode 100644 index 000000000000..88f8fccfc206 --- /dev/null +++ b/dev-games/cegui/files/cegui-0.6.2b-gcc46.patch @@ -0,0 +1,10 @@ +--- cegui/include/CEGUIString.h.old 2011-04-27 14:33:25.862856070 +0200 ++++ cegui/include/CEGUIString.h 2011-04-27 14:33:49.780351908 +0200 +@@ -34,6 +34,7 @@ + #include <string> + #include <string.h> + #include <stdexcept> ++#include <cstddef> + + // Start of CEGUI namespace section + namespace CEGUI diff --git a/dev-games/cegui/metadata.xml b/dev-games/cegui/metadata.xml new file mode 100644 index 000000000000..db363de0cf16 --- /dev/null +++ b/dev-games/cegui/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="devil">Build the DevIL based ImageCodec module</flag> + <flag name="freeimage">Build the FreeImage based ImageCodec module</flag> + <flag name="irrlicht">Enable the Irrlicht renderer</flag> + <flag name="ogre">Enable the OGRE renderer</flag> + <flag name="tinyxml">Enable the Tiny XML parser module</flag> + <flag name="xerces-c">Enable the Xerces-C++ XML parser module</flag> + <flag name="zip">Enable the Minizip resource provider</flag> + </use> + <upstream> + <remote-id type="sourceforge">crayzedsgui</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/clanlib/Manifest b/dev-games/clanlib/Manifest new file mode 100644 index 000000000000..4fda43feeb23 --- /dev/null +++ b/dev-games/clanlib/Manifest @@ -0,0 +1,2 @@ +DIST ClanLib-0.8.1.tgz 7629019 SHA256 094331dda35b0d263431d1551991eb208d8e969824434925548a9fcd1d34e495 SHA512 277daaf1055ae0198be7a6bbfd415c79cfae9e2145f62553e83849d670f56e50b8484c83f8b85f23290002e0b0c72c1e01ca597ad608a0954a4add828177293b WHIRLPOOL be486125f406a307676c4957f977b6ccc6bc2ce527a72fb4febcb3d1c7e2acdc4fc6706b66b75412184c3a0744c53e962011b0c3ac22958da5e987f0fccc9d87 +DIST ClanLib-2.3.7.tgz 26132425 SHA256 d46127c08103f48d15936ceb9f95b3dfb1ff8ccba667cef1b3f8e639cb2601c2 SHA512 73169afc0f639390f80403150757a8a14f842bc291a9457c9bca1319642b78bc4d03a93327d75254230e39545c5b4b690e56dc0149ed7b60b223e5a5364e882a WHIRLPOOL a6547d0bc8d254e887c427dfff63deb2b69790124da3db49d54cf853f8c834d44172a06e92ef7fc5222c8c81f903ab29f186f85da698dc085f4138d147ddad68 diff --git a/dev-games/clanlib/clanlib-0.8.1.ebuild b/dev-games/clanlib/clanlib-0.8.1.ebuild new file mode 100644 index 000000000000..ac7688f2f6db --- /dev/null +++ b/dev-games/clanlib/clanlib-0.8.1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils + +DESCRIPTION="multi-platform game development library" +HOMEPAGE="http://www.clanlib.org/" +SRC_URI="http://clanlib.org/download/releases-${PV:0:3}/ClanLib-${PV}.tgz" + +LICENSE="ZLIB" +SLOT="0.8" +KEYWORDS="amd64 x86" #not big endian safe #82779 +IUSE="doc ipv6 mikmod opengl sdl static-libs vorbis" + +# opengl keyword does not drop the GL/GLU requirement. +# Autoconf files need to be fixed +RDEPEND="media-libs/libpng + virtual/jpeg + virtual/glu + virtual/opengl + sdl? ( + media-libs/libsdl + media-libs/sdl-gfx + ) + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXxf86vm + media-libs/alsa-lib + mikmod? ( media-libs/libmikmod ) + vorbis? ( media-libs/libvorbis )" +DEPEND="${RDEPEND} + x11-proto/xf86vidmodeproto" + +S=${WORKDIR}/ClanLib-${PV} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ndebug.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-gcc47.patch \ + "${FILESDIR}"/${P}-libpng15.patch +} + +src_configure() { + #clanSound only controls mikmod/vorbis so there's + # no need to pass --{en,dis}able-clanSound ... + #clanDisplay only controls X, SDL, OpenGL plugins + # so no need to pass --{en,dis}able-clanDisplay + # also same reason why we don't have to use clanGUI + econf \ + --enable-dyn \ + --enable-clanNetwork \ + --disable-dependency-tracking \ + $(use_enable x86 asm386) \ + $(use_enable doc docs) \ + $(use_enable opengl clanGL) \ + $(use_enable sdl clanSDL) \ + $(use_enable vorbis clanVorbis) \ + $(use_enable mikmod clanMikMod) \ + $(use_enable ipv6 getaddr) \ + $(use_enable static-libs static) +} + +src_install() { + DOCS="CODING_STYLE CREDITS NEWS PATCHES README* INSTALL.linux" \ + default + if use doc ; then + dodir /usr/share/doc/${PF}/html + mv "${D}"/usr/share/doc/clanlib/* "${D}"/usr/share/doc/${PF}/html/ || die + rm -rf "${D}"/usr/share/doc/clanlib + cp -r Examples Resources "${D}"/usr/share/doc/${PF}/ || die + fi + prune_libtool_files +} diff --git a/dev-games/clanlib/clanlib-2.3.7.ebuild b/dev-games/clanlib/clanlib-2.3.7.ebuild new file mode 100644 index 000000000000..9d108de0d902 --- /dev/null +++ b/dev-games/clanlib/clanlib-2.3.7.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit flag-o-matic eutils autotools-utils + +MY_P=ClanLib-${PV} + +DESCRIPTION="multi-platform game development library" +HOMEPAGE="http://www.clanlib.org/" +SRC_URI="http://clanlib.org/download/releases-2.0/${MY_P}.tgz" + +LICENSE="ZLIB" +SLOT="2.3" +KEYWORDS="amd64 x86" #not big endian safe #82779 +IUSE="doc ipv6 mikmod opengl sound sqlite cpu_flags_x86_sse2 static-libs vorbis X" +REQUIRED_USE="opengl? ( X )" + +RDEPEND="sys-libs/zlib + X? ( + media-libs/libpng + virtual/jpeg + media-libs/freetype + media-libs/fontconfig + opengl? ( virtual/opengl ) + app-arch/bzip2 + x11-libs/libX11 + ) + sqlite? ( dev-db/sqlite ) + sound? ( media-libs/alsa-lib ) + mikmod? ( + media-libs/libmikmod + media-libs/alsa-lib + ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + media-libs/alsa-lib + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen dev-lang/perl )" + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}"/${P}-autotools.patch + "${FILESDIR}"/${P}-doc.patch +) +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +DOCS=( + CODING_STYLE + CREDITS + PATCHES + README +) + +src_prepare() { + autotools-utils_src_prepare + ln -sf ../../../Sources/API Documentation/Utilities/ReferenceDocs/ClanLib +} + +src_configure() { + myeconfargs=( + $(use_enable doc docs) + $(use_enable cpu_flags_x86_sse2 sse2) + $(use_enable opengl clanGL) + $(use_enable opengl clanGL1) + $(use_enable opengl clanGUI) + $(use_enable X clanDisplay) + $(use_enable vorbis clanVorbis) + $(use_enable mikmod clanMikMod) + $(use_enable sqlite clanSqlite) + $(use_enable ipv6 getaddr) + ) + use sound \ + || use vorbis \ + || use mikmod \ + || myeconfargs+=( --disable-clanSound ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use doc && autotools-utils_src_compile html +} + +# html files are keeped in a directory that is dependent on the SLOT +# so to keep eventual bookmarks to the doc from version to version +src_install() { + autotools-utils_src_install + if use doc ; then + emake DESTDIR="${D}" install-html + dodoc -r Examples Resources + fi +} diff --git a/dev-games/clanlib/files/clanlib-0.8.1-gcc43.patch b/dev-games/clanlib/files/clanlib-0.8.1-gcc43.patch new file mode 100644 index 000000000000..ca1d898ce5ab --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-gcc43.patch @@ -0,0 +1,28 @@ +--- Sources/GL/opengl.cpp ++++ Sources/GL/opengl.cpp +@@ -51,6 +51,8 @@ + #endif + #endif + ++#include <cstring> ++ + std::vector<std::string> CL_OpenGL::m_ignored_gl_extension; + + CL_ProcAddress *CL_OpenGL::get_proc_address(const std::string& function_name) +@@ -414,4 +416,4 @@ + #endif + + m_ignored_gl_extension.push_back(extension_name); +-} +\ No newline at end of file ++} +--- Sources/Network/Socket/ip_address_getsock.cpp ++++ Sources/Network/Socket/ip_address_getsock.cpp +@@ -40,6 +40,7 @@ + #include "ip_address_getsock.h" + + #include <cstdlib> ++#include <cstring> + + #ifndef WIN32 + #include <sys/socket.h> diff --git a/dev-games/clanlib/files/clanlib-0.8.1-gcc44.patch b/dev-games/clanlib/files/clanlib-0.8.1-gcc44.patch new file mode 100644 index 000000000000..ddf5a170b027 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-gcc44.patch @@ -0,0 +1,33 @@ +diff -Naur ClanLib-0.8.1-old/Sources/GL/canvas_opengl.cpp ClanLib-0.8.1/Sources/GL/canvas_opengl.cpp +--- ClanLib-0.8.1-old/Sources/GL/canvas_opengl.cpp 2009-08-01 18:15:44.000000000 +0200 ++++ ClanLib-0.8.1/Sources/GL/canvas_opengl.cpp 2009-08-01 18:08:55.000000000 +0200 +@@ -48,6 +48,7 @@ + #include "graphic_context_opengl.h" + #include "surface_target_opengl.h" + #include <cstring> ++#include <cstdio> + + ///////////////////////////////////////////////////////////////////////////// + // CL_Canvas_OpenGL construction: +diff -Naur ClanLib-0.8.1-old/Sources/GL/GLX/input_device_linuxevent.cpp ClanLib-0.8.1/Sources/GL/GLX/input_device_linuxevent.cpp +--- ClanLib-0.8.1-old/Sources/GL/GLX/input_device_linuxevent.cpp 2009-08-01 18:17:25.000000000 +0200 ++++ ClanLib-0.8.1/Sources/GL/GLX/input_device_linuxevent.cpp 2009-08-01 18:11:23.000000000 +0200 +@@ -35,6 +35,7 @@ + #include <iostream> + #include <errno.h> + #include <cstring> ++#include <cstdio> + + #include "API/Core/System/error.h" + #include "API/Core/System/clanstring.h" +diff -Naur ClanLib-0.8.1-old/Sources/GL/GLX/input_device_xinput.cpp ClanLib-0.8.1/Sources/GL/GLX/input_device_xinput.cpp +--- ClanLib-0.8.1-old/Sources/GL/GLX/input_device_xinput.cpp 2009-08-01 18:17:41.000000000 +0200 ++++ ClanLib-0.8.1/Sources/GL/GLX/input_device_xinput.cpp 2009-08-01 18:12:56.000000000 +0200 +@@ -29,6 +29,7 @@ + + #include <iostream> + #include <cstring> ++#include <cstdio> + #include "API/Core/System/log.h" + #include "API/Display/input_device.h" + #include "API/Display/input_event.h" diff --git a/dev-games/clanlib/files/clanlib-0.8.1-gcc47.patch b/dev-games/clanlib/files/clanlib-0.8.1-gcc47.patch new file mode 100644 index 000000000000..19ebab6fd07d --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-gcc47.patch @@ -0,0 +1,10 @@ +--- ./Sources/Core/IOData/Generic/inputsource_file.cpp.orig 2012-12-30 01:49:01.698950614 +0400 ++++ ./Sources/Core/IOData/Generic/inputsource_file.cpp 2012-12-30 01:49:27.714977456 +0400 +@@ -32,6 +32,7 @@ + #ifdef WIN32 + #include <direct.h> + #endif ++#include <unistd.h> + #include <cstring> + #include <API/Core/IOData/inputsource_file.h> + diff --git a/dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch b/dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch new file mode 100644 index 000000000000..03d0ba536acf --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch @@ -0,0 +1,11 @@ +--- Sources/Display/Providers/png_provider_generic.cpp ++++ Sources/Display/Providers/png_provider_generic.cpp +@@ -107,7 +107,7 @@ + png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); + cl_assert(false); + } +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); + cl_assert(false); diff --git a/dev-games/clanlib/files/clanlib-0.8.1-ndebug.patch b/dev-games/clanlib/files/clanlib-0.8.1-ndebug.patch new file mode 100644 index 000000000000..e41bae1a3296 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-ndebug.patch @@ -0,0 +1,21 @@ +Patch for clanlib-0.7.8-r2 Bug 154513: + +Signal handler deinit() was not declared. + +This leads to a compilation failure when a release version +rather than a debug version is built (-DNDEBUG). + +This patch adds the missing declaration, thus make the +file compile with or without -DNDEBUG. + +diff -Naur clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp +--- clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2003-09-19 10:33:02.000000000 +0000 ++++ clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2007-10-26 13:36:39.000000000 +0000 +@@ -52,6 +52,7 @@ + _begin_time = (long) tv.tv_sec*(long) 1000+(long) tv.tv_usec/(long) 1000; + + #ifdef NDEBUG ++ sighandler_t deinit; + signal(SIGSEGV, deinit); + #endif + } diff --git a/dev-games/clanlib/files/clanlib-2.3.7-autotools.patch b/dev-games/clanlib/files/clanlib-2.3.7-autotools.patch new file mode 100644 index 000000000000..97db79ac4245 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-autotools.patch @@ -0,0 +1,45 @@ +--- Documentation/Reference/Makefile.am.old 2012-09-25 10:39:25.973544935 +0200 ++++ Documentation/Reference/Makefile.am 2012-09-25 10:39:42.560554053 +0200 +@@ -10,7 +10,7 @@ + mkdir doxyoutput; + mkdir reftest + doxygen ./clanlib.doxygen +- make -C ../Utilities/ReferenceDocs ++ $(MAKE) -C ../Utilities/ReferenceDocs + ../Utilities/ReferenceDocs/ReferenceDocs + + install-html: +--- configure.ac.old 2012-09-25 11:07:38.412537590 +0200 ++++ configure.ac 2012-09-25 11:09:41.133939131 +0200 +@@ -337,11 +337,9 @@ + + dnl Optional linux/joystick.h + AC_CHECK_HEADERS(linux/joystick.h, linux_joystick=yes) +- AM_CONDITIONAL(LINUX_JOYSTICK, test x$linux_joystick = xyes) + + dnl Optional linux/input.h + AC_CHECK_HEADERS(linux/input.h, linux_input=yes) +- AM_CONDITIONAL(LINUX_INPUT, test x$linux_input = xyes) + + if test "$WIN32" = "no" && test "$enable_clanDisplay" != "no"; then + CLANLIB_CHECK_LIB(fontconfig, [`cat $srcdir/Setup/Tests/fontconfig.cpp`], clanDisplay, [ *** Cannot find fontconfig (See http://fontconfig.org/ ) (Try libfontconfig1-dev or better) ], [-lfontconfig]) +@@ -358,6 +356,8 @@ + clanDisplay, [ *** Cannot find version 8 of DirectInput], [-ldxguid -lole32 -ldinput8]) + fi + fi ++AM_CONDITIONAL(LINUX_JOYSTICK, test x$linux_joystick = xyes) ++AM_CONDITIONAL(LINUX_INPUT, test x$linux_input = xyes) + + have_xrender=no + +@@ -515,9 +515,9 @@ + fi + + if test "$enable_clanSound" = "auto"; then enable_clanSound=yes; fi +- AM_CONDITIONAL(ALSA, test x$have_alsa = xyes) + + fi ++AM_CONDITIONAL(ALSA, test x$have_alsa = xyes) + + if test "$enable_clanSound" != "no"; then + enable_clanSound=yes diff --git a/dev-games/clanlib/files/clanlib-2.3.7-doc.patch b/dev-games/clanlib/files/clanlib-2.3.7-doc.patch new file mode 100644 index 000000000000..627df26785b4 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-doc.patch @@ -0,0 +1,14 @@ +--- Documentation/Utilities/ReferenceDocs/Makefile.old 2014-09-12 20:06:52.970459560 +0200 ++++ Documentation/Utilities/ReferenceDocs/Makefile 2014-09-12 20:08:17.387048685 +0200 +@@ -3,7 +3,10 @@ + LIBS=clanCore + EXTRA_LIBS=-lpthread + +-include ../../../Examples/Makefile.conf ++CXXFLAGS += -pthread -std=c++0x -I. ++all: $(EXAMPLE_BIN) ++$(EXAMPLE_BIN): $(OBJF) ++ $(CXX) $(CXXFLAGS) $(OBJF) -o $(EXAMPLE_BIN) -Wl,-R../../Sources/Core/.libs -L../../../Sources/Core/.libs -lclan23Core $(EXTRA_LIBS) + + # EOF # + diff --git a/dev-games/clanlib/metadata.xml b/dev-games/clanlib/metadata.xml new file mode 100644 index 000000000000..741984228bd1 --- /dev/null +++ b/dev-games/clanlib/metadata.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +Welcome to ClanLib, a multi-platform game development library. + +ClanLib is a medium level development kit. At its lowest level, it provides a +platform independent (as much as that is possible in C++) way of dealing with +display, sound, input, networking, files, threadding and such. + +On top of that, ClanLib builds a generic game development framework, giving you +easy handling of resources, network object replication, graphical user +interfaces (GUI) with theme support, game scripting and more. + +The goal of ClanLib is to allow the game developer to focus on stuff that +matters, avoiding all those nasty (and boring) lowlevel trivials like setting up +a directdraw window, sound mixing, reading image files, etc. All those things +are simplified into object oriented classes and function calls, making it a joy +to write your game. + +ClanLib uses a resource system to keep track of images, fonts, samples and +music. It supports Targa, PCX, JPEG, PNG and BMP for images. Wave files for +sample. Ogg Vorbis (open sound format that has same sound quality as mp3) and +MikMod for music. By using a resource system, you cleanly seperate the physical +data formats from your code, and makes it easy to make themes and other plugins +for your game. The resource system is written in a manner that allows you to add +your own custom resources. + +All classes in clanlib focus on making simple interfaces that are customizeable +and expandable. This keeps your game code clean and simple; but still allows you +to do advanced stuff. As an example, look at some sound code: +CL_SoundBuffer my_sample("Weapon/Minigun/sound", resources); +my_sample.play(); + +In this example, we play a simple sound effect, and afterwards forget all about +it. Nice and simple. But if we want to adjust the frequency during its playback +(eg. for a dobbler effect), it could look like this: +CL_SoundBuffer_Session playback = my_sample.play(); +playback.set_frequency(1.2f); // increase frequency by 20% + +We only need to keep the session handle if we are going to use it. Keep things +simple when they are simple, and make them complex when they are complex. :) + +The object oriented nature of ClanLib allows you to operate both at high and low +levels, minimizing redundant code and still allows you to do stuff that isnt +supported by clanlib's high level APIs. + +ClanLib currently support Windows 98, Windows 2000, Windows XP and Linux. The +following display targets are supported under linux: X11 and OpenGL. Some parts +of ClanLib still isnt entirely endian clean, so it will currently only work +without problems on the x86 architecture. Work is underway for a MacOS port. +Current compilers supported is VC++ 6.0, VC++ 7.0, GCC, Borland and MingW. +</longdescription> +</pkgmetadata> diff --git a/dev-games/crystalspace/Manifest b/dev-games/crystalspace/Manifest new file mode 100644 index 000000000000..290cc0805692 --- /dev/null +++ b/dev-games/crystalspace/Manifest @@ -0,0 +1 @@ +DIST crystalspace-src-2.0.tar.bz2 185925180 SHA256 f1cda74fd998e44088746803209b1ea6625e80e3d4fb72023d8bed6b677b7b6a SHA512 f09d40669268e26542a2854560ac5033e7f89d0bd5def870e5062e08611c36a0875666abe0c705bb5f9f37dafa619f33f900e358d5fe255746a86127a3899f97 WHIRLPOOL a1705cb88b64eb0e8f6a146c2a75baab01aa598d07b8d36ab0671a47d4092b5c9b53c13f46bb1e56663b2b228c4b95cee3a355554c1de92c3d931187e97c4ca1 diff --git a/dev-games/crystalspace/crystalspace-2.0.ebuild b/dev-games/crystalspace/crystalspace-2.0.ebuild new file mode 100644 index 000000000000..657cd1b907c9 --- /dev/null +++ b/dev-games/crystalspace/crystalspace-2.0.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic multilib java-pkg-opt-2 autotools wxwidgets versionator multiprocessing + +MY_P=${PN}-src-${PV} +PATH_P=${PN}-$(get_version_component_range 1-2) + +DESCRIPTION="Portable 3D Game Development Kit written in C++" +HOMEPAGE="http://crystal.sourceforge.net/" +SRC_URI="mirror://sourceforge/crystal/${MY_P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="3ds alsa bullet cal3d cegui cg doc java jpeg mng ode png speex truetype vorbis wxwidgets" + +COMMON_DEP="virtual/opengl + media-libs/openal + x11-libs/libXt + x11-libs/libXxf86vm + sys-libs/zlib + cg? ( media-gfx/nvidia-cg-toolkit ) + ode? ( <dev-games/ode-0.12 ) + cal3d? ( >=media-libs/cal3d-0.11 ) + jpeg? ( virtual/jpeg ) + bullet? ( sci-physics/bullet ) + vorbis? ( media-libs/libvorbis ) + speex? ( media-libs/libogg + media-libs/speex ) + truetype? ( >=media-libs/freetype-2.1 ) + alsa? ( media-libs/alsa-lib ) + mng? ( media-libs/libmng ) + png? ( media-libs/libpng:0 ) + wxwidgets? ( x11-libs/wxGTK:2.8[X,opengl] ) + cegui? ( >=dev-games/cegui-0.5.0 ) + 3ds? ( media-libs/lib3ds )" + +RDEPEND="${COMMON_DEP} + java? ( >=virtual/jre-1.5 )" + +DEPEND="${COMMON_DEP} + java? ( >=virtual/jdk-1.5 + dev-java/ant-core ) + dev-util/ftjam + dev-lang/swig + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # Installing doc conflict with dodoc on src_install + # Removing conflicting target + sed -i \ + -e "/^InstallDoc/d" \ + Jamfile.in \ + docs/Jamfile || die + epatch "${FILESDIR}"/${P}-gcc47.patch + AT_M4DIR=mk/autoconf + eautoreconf +} + +src_configure() { + if use wxwidgets; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + fi + + econf \ + --disable-as-needed \ + --enable-cpu-specific-optimizations=no \ + --disable-separate-debug-info \ + --without-lcms \ + --without-jackasyn \ + --without-perl \ + $(use_with java) \ + --disable-make-emulation \ + $(use_with bullet) \ + --without-python \ + $(use_with png) \ + $(use_with jpeg) \ + $(use_with mng) \ + $(use_with vorbis) \ + $(use_with speex) \ + $(use_with 3ds) \ + $(use_with ode) \ + $(use_with truetype freetype2) \ + $(use_with cal3d) \ + $(use_with wxwidgets wx) \ + $(use_with cegui CEGUI) \ + $(use_with cg Cg) \ + $(use_with alsa asound) + #remove unwanted CFLAGS added by ./configure + sed -i -e '/COMPILER\.CFLAGS\.optimize/d' \ + Jamconfig || die +} + +src_compile() { + jam -q -dx -j$(makeopts_jobs) || die +} + +src_install() { + for installTarget in bin plugin lib include data config bindings + do + jam -q -s DESTDIR="${D}" install_${installTarget} || die + done + if use doc; then + jam -q -s DESTDIR="${D}" install_doc || die + fi + dodoc README docs/history* + + echo "CRYSTAL_PLUGIN=/usr/$(get_libdir)/${PATH_P}" > 90crystalspace + echo "CRYSTAL_CONFIG=/etc/${PATH_P}" >> 90crystalspace + doenvd 90crystalspace +} + +pkg_postinst() { + elog "Examples coming with this package, need correct light calculation" + elog "Do the following commands, with the root account, to fix that:" + # Fill cache directory for the examples + local dir + for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \ + terrain terrainf; + do + elog "cslight -video=null /usr/share/${PATH_P}/data/maps/${dir}" + done +} diff --git a/dev-games/crystalspace/files/crystalspace-2.0-gcc47.patch b/dev-games/crystalspace/files/crystalspace-2.0-gcc47.patch new file mode 100644 index 000000000000..5b76b2e94707 --- /dev/null +++ b/dev-games/crystalspace/files/crystalspace-2.0-gcc47.patch @@ -0,0 +1,110 @@ +https://bugs.gentoo.org/426870 +https://bugs.gentoo.org/459440 + + include/csplugincommon/rendermanager/render.h | 6 +++--- + include/csutil/blockallocator.h | 6 +++--- + include/csutil/parray.h | 2 +- + include/csutil/redblacktree.h | 4 ++-- + include/csutil/refarr.h | 2 +- + 5 files changed, 10 insertions(+), 10 deletions(-) + +--- a/include/csplugincommon/rendermanager/render.h ++++ b/include/csplugincommon/rendermanager/render.h +@@ -194,7 +194,7 @@ namespace RenderManager + || (mesh.preCopyNum != 0)) + { + // Render the latest batch of meshes +- RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, m); ++ this->RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, m); + lastRenderedMesh = m; + + lastShader = shader; +@@ -208,7 +208,7 @@ namespace RenderManager + } + } + +- RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, node->meshes.GetSize ()); ++ this->RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, node->meshes.GetSize ()); + } + }; + +@@ -242,7 +242,7 @@ namespace RenderManager + iShader* shader = context.shaderArray[mesh.contextLocalId+layerOffset]; + + size_t ticket = context.ticketArray[mesh.contextLocalId+layerOffset]; +- RenderMeshes (context, node->meshes, shader, ticket, m, m+1); ++ this->RenderMeshes (context, node->meshes, shader, ticket, m, m+1); + } + } + } +--- a/include/csutil/blockallocator.h ++++ b/include/csutil/blockallocator.h +@@ -193,7 +193,7 @@ public: + ~csBlockAllocator() + { + ObjectDispose dispose (*this, false); +- DisposeAll (dispose); ++ this->DisposeAll (dispose); + } + + /** +@@ -204,7 +204,7 @@ public: + void Empty () + { + ObjectDispose dispose (*this, true); +- FreeAll (dispose); ++ this->FreeAll (dispose); + } + + /** +@@ -215,7 +215,7 @@ public: + void DeleteAll () + { + ObjectDispose dispose (*this, true); +- DisposeAll (dispose); ++ this->DisposeAll (dispose); + } + + /** +--- a/include/csutil/parray.h ++++ b/include/csutil/parray.h +@@ -112,7 +112,7 @@ public: + { + CS_ASSERT (this->GetSize () > 0); + T* ret = GetAndClear (this->GetSize () - 1); // see *1* +- Truncate (this->GetSize () - 1); ++ this->Truncate (this->GetSize () - 1); + return ret; + } + +--- a/include/csutil/redblacktree.h ++++ b/include/csutil/redblacktree.h +@@ -1155,7 +1155,7 @@ public: + T* Put (const K& key, const T &value) + { + csRedBlackTreePayload<K, T>* payload = (csRedBlackTreePayload<K, T>*) +- Insert (csRedBlackTreePayload<K, T>(key, value)); ++ this->Insert (csRedBlackTreePayload<K, T>(key, value)); + return (payload != 0) ? &payload->GetValue() : 0; + } + /** +@@ -1194,7 +1194,7 @@ public: + */ + const T& Get (const K& key, const T& fallback) const + { +- const csRedBlackTreePayload<K, T>* payload = Find (key); ++ const csRedBlackTreePayload<K, T>* payload = this->Find (key); + if (payload == 0) return fallback; + return payload->GetValue(); + } +--- a/include/csutil/refarr.h ++++ b/include/csutil/refarr.h +@@ -111,7 +111,7 @@ public: + { + CS_ASSERT (this->GetSize () > 0); + csRef<T> ret = this->Get (this->GetSize () - 1); // see *1* +- SetSize (this->GetSize () - 1); ++ this->SetSize (this->GetSize () - 1); + return ret; + } + }; diff --git a/dev-games/crystalspace/metadata.xml b/dev-games/crystalspace/metadata.xml new file mode 100644 index 000000000000..eb8bc207ec7d --- /dev/null +++ b/dev-games/crystalspace/metadata.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +Crystal Space is a free (LGPL) and portable 3D Game +Development Kit written in C++. It supports: true six degrees +of freedom, colored lighting, lightmapped and stencil based +lighting, shader support, mipmapping, portals, mirrors, alpha +transparency, reflective surfaces, 3D sprites (frame based or +with skeletal animation, also using cal3d animation library), +procedural textures, particle systems, halos, volumetric fog, +scripting (using Python, Perl, Java, or potentially other +languages), 16-bit and 32-bit display support, OpenGL, and +software renderer, font support, hierarchical +transformations, physics plugin based on ODE, ... See the +extensive list of features for more details. +</longdescription> + <use> + <flag name="3ds">Enables support for .3DS files in CrystalSpace</flag> + <flag name="bullet">include support for Bullet library</flag> + <flag name="cal3d">include support for skeleton animation</flag> + <flag name="cegui">include support for Crazy Eddie GUI</flag> + <flag name="cg">NVIDIA toolkit plugin</flag> + <flag name="ode">include support for Open Dynamics Engine</flag> + </use> + <upstream> + <remote-id type="sourceforge">crystal</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/etrophy/Manifest b/dev-games/etrophy/Manifest new file mode 100644 index 000000000000..9deaab64c070 --- /dev/null +++ b/dev-games/etrophy/Manifest @@ -0,0 +1 @@ +DIST etrophy-0.5.1.tar.bz2 328345 SHA256 4d9c2f2deb017d67909d88718f1a97e80ab611538491956995377189f780ca0d SHA512 37c08a1dc95a7d5c1dbf7efa7c769f3418d7e02a67591cc12bc5f7b1b6883450fe69b0c792ea07167df377a3e972671aa8c7f9dd27754e50261b02d2fcecbc2b WHIRLPOOL ff6d0014d265e31580f04e0daf2af5fa0311a0f5c333460697b49820245ee0515f54835bad639cd28e38feb5c9c9cb809d81079428eecc8e04b98cfff7382a28 diff --git a/dev-games/etrophy/etrophy-0.5.1.ebuild b/dev-games/etrophy/etrophy-0.5.1.ebuild new file mode 100644 index 000000000000..7719d8f6ac78 --- /dev/null +++ b/dev-games/etrophy/etrophy-0.5.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit enlightenment + +DESCRIPTION="Library for managing scores, trophies and unlockables,stores them and provides views to display them" + +SRC_URI="http://download.enlightenment.org/releases/${P}.tar.bz2" +LICENSE="BSD-2" + +KEYWORDS="~amd64 ~x86" +IUSE="doc static-libs" + +RDEPEND="dev-libs/efl + >=media-libs/elementary-1.8.0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_configure() { + MY_ECONF=" + $(use_enable doc) + " + + enlightenment_src_configure +} diff --git a/dev-games/etrophy/metadata.xml b/dev-games/etrophy/metadata.xml new file mode 100644 index 000000000000..5e1261900709 --- /dev/null +++ b/dev-games/etrophy/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>enlightenment</herd> +</pkgmetadata> diff --git a/dev-games/flatzebra/Manifest b/dev-games/flatzebra/Manifest new file mode 100644 index 000000000000..cc00ffe0ec04 --- /dev/null +++ b/dev-games/flatzebra/Manifest @@ -0,0 +1 @@ +DIST flatzebra-0.1.6.tar.gz 359098 SHA256 4e7bb0a77136ec3b81e0f73c1d08e828d38ef011095d5ce7068a94f3bb21d67a SHA512 500df95ee23bd2decf1e11be76725733d9219ef06a844f2de337fc11494eeea57e5ab6298cb4235c394216dd75bfb64a4e9f732362ca5ee95c43086b2ca38f75 WHIRLPOOL 96d058b434c08e69a05d9ee1576629361134e9edda32e15ffa80c640aa03675360a03838f1f339b77f50b3c2e423a28bbe7fa19925568da377dd42016f4c4e62 diff --git a/dev-games/flatzebra/flatzebra-0.1.6.ebuild b/dev-games/flatzebra/flatzebra-0.1.6.ebuild new file mode 100644 index 000000000000..a4e786765c14 --- /dev/null +++ b/dev-games/flatzebra/flatzebra-0.1.6.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="A generic game engine for 2D double-buffering animation" +HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev" +SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="static-libs" + +RDEPEND="media-libs/libsdl[video] + media-libs/sdl-image + media-libs/sdl-mixer" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e '/^doc_DATA =/s/^/NOTHANKS/' \ + Makefile.in || die +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + use static-libs || prune_libtool_files +} diff --git a/dev-games/flatzebra/metadata.xml b/dev-games/flatzebra/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/dev-games/flatzebra/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/dev-games/flinker/Manifest b/dev-games/flinker/Manifest new file mode 100644 index 000000000000..d26713349b43 --- /dev/null +++ b/dev-games/flinker/Manifest @@ -0,0 +1 @@ +DIST flgba.zip 41380 SHA256 92b7e0f4c61f85b12c473701ad0b09e68de6d60bbe3f4183ec91b500b53eb92c SHA512 36e9542d5588c655b3001f7515cca487d0f820cbc7e8613afcda5dbcd1b9c48e4d2f9c3c8b755a466eb421ea6198102408494006c14e3ea3e6a22c2e0da6bb1c WHIRLPOOL 273b1c271b9f3acbbd7a820ce18cfa1f5fed98cc0699dc1575cfa71c5c94a37d34e5102158b18b8fc580cac1bcd71db566dcb7d2fb6368892c1ec16daf311995 diff --git a/dev-games/flinker/flinker-1.72.ebuild b/dev-games/flinker/flinker-1.72.ebuild new file mode 100644 index 000000000000..e14e58a5579c --- /dev/null +++ b/dev-games/flinker/flinker-1.72.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="GBA cart writing utility by Jeff Frohwein" +HOMEPAGE="http://www.devrs.com/gba/software.php#misc" +SRC_URI="http://www.devrs.com/gba/files/flgba.zip" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +RDEPEND="" +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + sed -i \ + -e '/unistd/s:^//::' \ + -e 's:asm/io.h:sys/io.h:' \ + fl.c || die + echo >> fl.c + echo >> cartlib.c +} +src_compile() { + $(tc-getCC) ${LDFLAGS} -o FLinker ${CFLAGS} fl.c || die +} + +src_install() { + dobin FLinker + dodoc readme +} diff --git a/dev-games/flinker/metadata.xml b/dev-games/flinker/metadata.xml new file mode 100644 index 000000000000..084eec06ea85 --- /dev/null +++ b/dev-games/flinker/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +Here's a dos/linux program (with src) that allows you program a Visoly flash +cart (up to 50% faster than official software) or an official Nintendo flash +cart (2-3 times faster than official hw/sw) by using the Visoly flash linker. +</longdescription> +</pkgmetadata> diff --git a/dev-games/goatee/Manifest b/dev-games/goatee/Manifest new file mode 100644 index 000000000000..460d7af358e5 --- /dev/null +++ b/dev-games/goatee/Manifest @@ -0,0 +1,2 @@ +DIST goatee-0.2.0.tar.gz 76171 SHA256 288526218177cd340360c2861f03163ae9e1c1df6c937b5d4f010350766f1b53 SHA512 d731c6f96edef4717f137a37d73fe190a4620b9f328f1cf9ec50400bd74f7e6e0ef8a60d8e9b64472b66670789cab82a1ece8019eb0921d38644875fbfa59079 WHIRLPOOL cae7ab41dff84f5abab4190e37cf18dce44228fcebba265e3af1f0ddc95dba1a25b728cc59d9ffcc3e645b599759c74b0c122f321dee40dbd69a55962eabb66e +DIST goatee-0.3.0.tar.gz 83679 SHA256 4d2ca32cf42161e18d3c528c24d0ac16a78b0e331759ce97714d5abcab65c0df SHA512 57c5340ba6aadbd4fd5d328702012e02a5e36c50be7f714bc1f8adedb3270c2174ad3c60d30dd7b93b93b4a3a3e6436ec9e5957561e13046dfde869b71ec2cd6 WHIRLPOOL bff45c30c33ea0e2e82fcf138d2b99de96b459c67fbdf952c4cc94e115e416b0733751dafeacfbd3738a7295dc99583449f2a56db9f50eb2a039de0981870eae diff --git a/dev-games/goatee/goatee-0.2.0-r1.ebuild b/dev-games/goatee/goatee-0.2.0-r1.ebuild new file mode 100644 index 000000000000..00d0b9ca4d24 --- /dev/null +++ b/dev-games/goatee/goatee-0.2.0-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="A monadic take on a 2,500-year-old board game - library" +HOMEPAGE="http://khumba.net/projects/goatee" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0/${PV}" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?] + >=dev-haskell/parsec-3.1:=[profile?] <dev-haskell/parsec-3.2:=[profile?] + >=dev-lang/ghc-7.4.1:= + >=dev-libs/gmp-5:= + virtual/libffi:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 ) +" diff --git a/dev-games/goatee/goatee-0.3.0.ebuild b/dev-games/goatee/goatee-0.3.0.ebuild new file mode 100644 index 000000000000..2f4bce7f2188 --- /dev/null +++ b/dev-games/goatee/goatee-0.3.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="A monadic take on a 2,500-year-old board game - library" +HOMEPAGE="http://khumba.net/projects/goatee" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?] + >=dev-haskell/parsec-3.1:=[profile?] <dev-haskell/parsec-3.2:=[profile?] + >=dev-lang/ghc-7.4.1:= + >=dev-libs/gmp-5:= + virtual/libffi:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 ) +" diff --git a/dev-games/goatee/metadata.xml b/dev-games/goatee/metadata.xml new file mode 100644 index 000000000000..9288a81d788c --- /dev/null +++ b/dev-games/goatee/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <herd>haskell</herd> + <longdescription> + Goatee is a Go library and game editor, written in Haskell. It provides a + GUI for recording, studying, and editing game records. Underneath this is a + portable library for manipulating SGF files to build UIs and tools. Goatee + aims to be full-featured by supporting all of the SGF spec and allowing for + full and easy customization of the game records you create. + + This package is the shared library. + </longdescription> +</pkgmetadata> diff --git a/dev-games/gtkradiant/Manifest b/dev-games/gtkradiant/Manifest new file mode 100644 index 000000000000..9741a9d537a8 --- /dev/null +++ b/dev-games/gtkradiant/Manifest @@ -0,0 +1 @@ +DIST gtkradiant-1.5.0-2006-03-02.i386.rpm 3130735 SHA256 339c9c1f86f0b3a033b6c41426c2b893f42d87f192291107e4939750c8bc0069 SHA512 198c36d505dc68e5bbe550248eb57264527c3ce135d0f63513962fd10255aa6b7176b4262b6392361628098e09cf983991ebb4bc0bb75c54a996a0c8eda9dd2d WHIRLPOOL 279e5b3c40337a07de5bd0bfca660332ef89042ced3608f5b85f910d4d0834f2c80c4a537974d5cacade9329b9e81dcdaf3cbdf7bffcf4ffadbadcc62e4a17c3 diff --git a/dev-games/gtkradiant/files/et.game b/dev-games/gtkradiant/files/et.game new file mode 100644 index 000000000000..419d11b0d2c9 --- /dev/null +++ b/dev-games/gtkradiant/files/et.game @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> +<!-- Generated by installer, no not edit --> +<!-- Configuration for: Wolfenstein: Enemy Territory --> +<game + name="Wolfenstein: Enemy Territory" + gametools="/opt/gtkradiant/et/" + basegame="etmain" + enginepath="/opt/enemy-territory/" + engine="et" + prefix=".etwolf" +/> diff --git a/dev-games/gtkradiant/files/q2.game b/dev-games/gtkradiant/files/q2.game new file mode 100644 index 000000000000..694568f1cd3c --- /dev/null +++ b/dev-games/gtkradiant/files/q2.game @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> +<!-- Generated by installer, no not edit --> +<!-- Configuration for: Quake 2 --> +<game + name="Quake 2" + gametools="/opt/gtkradiant/q2/" + basegame="baseq2" + enginepath="/usr/share/games/quake2-data/" + engine="quake2" + prefix=".quake2" + no_patch="true" +/> diff --git a/dev-games/gtkradiant/files/q3.game b/dev-games/gtkradiant/files/q3.game new file mode 100644 index 000000000000..811623bb858b --- /dev/null +++ b/dev-games/gtkradiant/files/q3.game @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> +<!-- Generated by installer, no not edit --> +<!-- Configuration for: Quake III Arena / Team Arena --> +<game + name="Quake III Arena / Team Arena" + gametools="/opt/gtkradiant/q3/" + basegame="baseq3" + enginepath="/opt/quake3/" + engine="quake3" + prefix=".q3a" +/> + diff --git a/dev-games/gtkradiant/files/q3map2 b/dev-games/gtkradiant/files/q3map2 new file mode 100644 index 000000000000..82e11658e3cd --- /dev/null +++ b/dev-games/gtkradiant/files/q3map2 @@ -0,0 +1,5 @@ +#!/bin/sh +cd "/opt/gtkradiant/" +# gcc 3.x, trying to reduce ABI issues +export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH +exec ./q3map2.x86 "$@" diff --git a/dev-games/gtkradiant/files/radiant b/dev-games/gtkradiant/files/radiant new file mode 100644 index 000000000000..7dcec10ca89b --- /dev/null +++ b/dev-games/gtkradiant/files/radiant @@ -0,0 +1,5 @@ +#!/bin/sh +cd "/opt/gtkradiant/" +# gcc 3.x, trying to reduce ABI issues +export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH +exec ./radiant.x86 "$@" diff --git a/dev-games/gtkradiant/files/wolf.game b/dev-games/gtkradiant/files/wolf.game new file mode 100644 index 000000000000..b80e0a785e99 --- /dev/null +++ b/dev-games/gtkradiant/files/wolf.game @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> +<!-- Generated by installer, no not edit --> +<!-- Configuration for: Return to Castle Wolfenstein --> +<game + name="Return to Castle Wolfenstein" + gametools="/opt/gtkradiant/wolf/" + basegame="main" + enginepath="/opt/rtcw/" + engine="wolf" + prefix=".wolf" +/> + diff --git a/dev-games/gtkradiant/gtkradiant-1.5.0_pre20060302.ebuild b/dev-games/gtkradiant/gtkradiant-1.5.0_pre20060302.ebuild new file mode 100644 index 000000000000..dd09fe55299a --- /dev/null +++ b/dev-games/gtkradiant/gtkradiant-1.5.0_pre20060302.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils games rpm + +DS="${PV/*_pre}" +DESCRIPTION="FPS level editor" +HOMEPAGE="http://www.qeradiant.com/?data=editors/gtk" +SRC_URI="http://zerowing.idsoftware.com/files/radiant/nightly/${PV:0:3}/gtkradiant-${PV/_pre*}-${DS:0:4}-${DS:4:2}-${DS:6:2}.i386.rpm" + +LICENSE="qeradiant" +SLOT="0" +KEYWORDS="-* x86" +IUSE="" + +RDEPEND="=media-libs/libpng-1.2* + sys-libs/zlib + app-crypt/mhash + =dev-libs/glib-2* + x11-libs/gtk+:2 + dev-libs/atk + x11-libs/pango + x11-libs/gtkglext + dev-libs/libxml2 + sys-libs/glibc + virtual/opengl" + +S=${WORKDIR}/opt/${PN} + +src_install() { + local dir="${GAMES_PREFIX_OPT}/${PN}" + dodir "${dir}" + + cp -pPR * "${D}/${dir}/" + games_make_wrapper q3map2 ./q3map2.x86 "${dir}" + games_make_wrapper radiant ./radiant.x86 "${dir}" + + prepgamesdirs +} diff --git a/dev-games/gtkradiant/metadata.xml b/dev-games/gtkradiant/metadata.xml new file mode 100644 index 000000000000..a60b58e3b519 --- /dev/null +++ b/dev-games/gtkradiant/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +GtkRadiant is a level editor supporting multiple games and mods: Quake III Arena, Quake III: Team Arena, Quake III Arena modifications, Return To Castle Wolfenstein, Jedi Knight II: Jedi Outcast, Soldier Of Fortune II, Star Trek Voyager: Elite Force. +</longdescription> +</pkgmetadata> diff --git a/dev-games/guichan/Manifest b/dev-games/guichan/Manifest new file mode 100644 index 000000000000..9f43971a13e9 --- /dev/null +++ b/dev-games/guichan/Manifest @@ -0,0 +1 @@ +DIST guichan-0.8.2.tar.gz 574662 SHA256 eedf206eae5201eaae027b133226d0793ab9a287bfd74c5f82c7681e3684eeab SHA512 b05b3da3c998399eadbaf3154de533038bb394919569c361c26245aa0e7072493b12d3556c94a2420622007525e19dcd76a27db06a76fb56ec96d50429a6ed98 WHIRLPOOL 3ad88b99e8be509a2e66e71999245904a96aa9a2f805adc208c3ff19b036335c334ce38ed90ee11fb1e19120e5a545530dda6de0cd81c011adadd89731e5da53 diff --git a/dev-games/guichan/files/guichan-0.8.2-as-needed.patch b/dev-games/guichan/files/guichan-0.8.2-as-needed.patch new file mode 100644 index 000000000000..79eb563c0f8d --- /dev/null +++ b/dev-games/guichan/files/guichan-0.8.2-as-needed.patch @@ -0,0 +1,19 @@ +--- src/Makefile.am ++++ src/Makefile.am +@@ -1,4 +1,4 @@ +-SUBDIRS = widgets @GUICHAN_EXTRADIRS@ hge openlayer contrib ++SUBDIRS = widgets . @GUICHAN_EXTRADIRS@ hge openlayer contrib + + INCLUDES = -I$(top_srcdir)/include + +--- src/sdl/Makefile.am ++++ src/sdl/Makefile.am +@@ -6,6 +6,8 @@ + + libguichan_sdl_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) + ++libguichan_sdl_la_LIBADD = -lSDL_image -L$(top_srcdir)/src -lguichan ++ + libguichan_sdl_la_SOURCES = \ + sdl.cpp \ + sdlgraphics.cpp \ diff --git a/dev-games/guichan/files/guichan-0.8.2-automake-1.13.patch b/dev-games/guichan/files/guichan-0.8.2-automake-1.13.patch new file mode 100644 index 000000000000..e2f46097b82a --- /dev/null +++ b/dev-games/guichan/files/guichan-0.8.2-automake-1.13.patch @@ -0,0 +1,11 @@ +--- guichan-0.8.2/configure.in ++++ guichan-0.8.2/configure.in +@@ -38,7 +38,7 @@ + AC_SUBST(LT_AGE) + + AM_INIT_AUTOMAKE(guichan, $GUICHAN_VERSION) +-AM_CONFIG_HEADER([include/config.hpp]) ++AC_CONFIG_HEADERS([include/config.hpp]) + + AC_CONFIG_SRCDIR([src/gui.cpp]) + diff --git a/dev-games/guichan/guichan-0.8.2.ebuild b/dev-games/guichan/guichan-0.8.2.ebuild new file mode 100644 index 000000000000..cac65a9990fe --- /dev/null +++ b/dev-games/guichan/guichan-0.8.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools + +DESCRIPTION="a portable C++ GUI library designed for games using Allegro, SDL and/or OpenGL" +HOMEPAGE="http://guichan.sourceforge.net/" +SRC_URI="http://guichan.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="allegro opengl sdl static-libs" + +DEPEND="allegro? ( <media-libs/allegro-5 ) + opengl? ( virtual/opengl ) + sdl? ( + media-libs/libsdl + media-libs/sdl-image + )" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-automake-1.13.patch + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable allegro) \ + $(use_enable opengl) \ + $(use_enable sdl) \ + $(use_enable sdl sdlimage) \ + $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files +} diff --git a/dev-games/guichan/metadata.xml b/dev-games/guichan/metadata.xml new file mode 100644 index 000000000000..9afc7ed48ba0 --- /dev/null +++ b/dev-games/guichan/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="allegro">Build the Allegro frontend</flag> + </use> + <upstream> + <remote-id type="google-code">guichan</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/hawknl/Manifest b/dev-games/hawknl/Manifest new file mode 100644 index 000000000000..744e1c684cd8 --- /dev/null +++ b/dev-games/hawknl/Manifest @@ -0,0 +1 @@ +DIST HawkNL168src.tar.gz 181263 SHA256 31a2883dbfe02937c9c862bb1aac0b89e465bbab822513c06bffa3f13e4c3c2e SHA512 52d518a19aaa8005e2e43a693571244a81a5a4450e2f92e6c0a64efb4b32ebfc3aff5d5b3ed09a3cdbee2e444d83067471ac714d7ae03d8cd78f905364c510f0 WHIRLPOOL c47fac6b08d06be3bc94f341471a6a57767d5de4d25598bac6e715552730463f059e07bce8d56289e0569511c2a9da33ee73e3d0c53d00e174f972da8736d3f1 diff --git a/dev-games/hawknl/files/hawknl-1.68-build.patch b/dev-games/hawknl/files/hawknl-1.68-build.patch new file mode 100644 index 000000000000..d94daaaf6d88 --- /dev/null +++ b/dev-games/hawknl/files/hawknl-1.68-build.patch @@ -0,0 +1,32 @@ +--- src/makefile.linux.orig 2005-12-16 22:03:24.000000000 -0500 ++++ src/makefile.linux 2005-12-16 22:04:18.000000000 -0500 +@@ -34,13 +34,14 @@ + nltime.o : nlinternal.h nltime.c
+
+ install:
++ mkdir -p $(LIBDIR) $(INCDIR) ; chmod 755 $(LIBDIR) $(INCDIR) + cp $(OUTPUT) $(LIBDIR)
+ cp $(STATIC) $(LIBDIR)
+ chmod 755 $(LIBDIR)/$(OUTPUT)
+- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)
+- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION)
+- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so
+- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/$(LIBNAME).so
++ ln -s $(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)
++ ln -s $(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION)
++ ln -s $(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so
++ ln -s $(OUTPUT) $(LIBDIR)/$(LIBNAME).so
+ cp ../include/nl.h $(INCDIR)/nl.h
+ chmod 644 $(INCDIR)/nl.h
+
+--- src/makefile.linux.old 2010-09-10 09:44:53.000000000 +0200 ++++ src/makefile.linux 2010-09-10 09:45:09.000000000 +0200 +@@ -13,7 +13,7 @@ + STATIC = libNL.a
+ OPTFLAGS = -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -D_GNU_SOURCE -D_REENTRANT
+ CFLAGS = -Wall -fPIC $(INCLUDE) $(OPTFLAGS)
+-LIBFLAGS = -shared -Wl,-soname,NL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread
++LIBFLAGS = ${LDFLAGS} -shared -Wl,-soname,libNL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread
+ OBJECTS = crc.o errorstr.o nl.o sock.o group.o loopback.o err.o thread.o mutex.o condition.o nltime.o
+
+ all: $(OBJECTS)
diff --git a/dev-games/hawknl/hawknl-1.68-r2.ebuild b/dev-games/hawknl/hawknl-1.68-r2.ebuild new file mode 100644 index 000000000000..59d79d329a71 --- /dev/null +++ b/dev-games/hawknl/hawknl-1.68-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs eutils multilib + +DESCRIPTION="A cross-platform network library designed for games" +HOMEPAGE="http://www.hawksoft.com/hawknl/" +SRC_URI="http://www.sonic.net/~philf/download/HawkNL${PV/./}src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 hppa ppc x86" +IUSE="doc" + +RDEPEND="" +DEPEND="" + +S=${WORKDIR}/hawknl${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + sed -i\ -e '/echo /d' src/makefile.linux || die +} + +src_compile() { + emake -C src -f makefile.linux \ + CC="$(tc-getCC)" \ + OPTFLAGS="${CFLAGS} -D_GNU_SOURCE -D_REENTRANT" +} + +src_install() { + emake -j1 -C src -f makefile.linux \ + LIBDIR="${D}/usr/$(get_libdir)" \ + INCDIR="${D}/usr/include" install + if use doc ; then + dodoc -r samples + fi +} diff --git a/dev-games/hawknl/metadata.xml b/dev-games/hawknl/metadata.xml new file mode 100644 index 000000000000..4042a5659691 --- /dev/null +++ b/dev-games/hawknl/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +HawkNL is a free, open source, game oriented network API released under +the GNU Library General Public License (LGPL). HawkNL (NL) is a fairly +low level API, a wrapper over Berkeley/Unix Sockets and Winsock. But NL +also provides other features including support for many OSs, groups of +sockets, socket statistics, high accuracy timer, CRC functions, macros +to read and write data to packets with endian conversion, and support +for multiple network transports. NL has been tested on Windows +9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX, BSDs, MacOS 7-9 and +MacOS X. There are also the two high level APIs, HawkNLU(tm) (NLU) +and HawkVoice(tm), which are built on top of NL. It is NLU and +HawkVoice(tm) that are most exciting, since they give developers +portable, easy to use alternatives to Microsoft®'s DirectPlay® and +DirectPlay® Voice. +</longdescription> +</pkgmetadata> diff --git a/dev-games/hdl_dump/Manifest b/dev-games/hdl_dump/Manifest new file mode 100644 index 000000000000..daf0fc53bb0e --- /dev/null +++ b/dev-games/hdl_dump/Manifest @@ -0,0 +1 @@ +DIST hdl_dumx-0.8.6-20060901-src.tar.bz2 156322 SHA256 6ccb427da1fb957d82e6e0929e3605abe136f44326e85b16b6cdc3b59569486b SHA512 c54c72c3f4d57ca8f3299c0b6044ec5376504f7b7a4c7977d71b996bc8d98577ffa868891e1a599aebbe58b8d3ccf2513c5cf8a47350c0b0f53fd21a0e64bbc8 WHIRLPOOL b70135fb6e663db1016dfd8db5519c33b31e9e8b1ba219c72f513cab6d158564c9bcaa6886ce06b7ae3d75976b4a3f1b49561c799bbda80bda84cf378e017aa2 diff --git a/dev-games/hdl_dump/files/hdl_dump-0.8.6.20060901-fortify.patch b/dev-games/hdl_dump/files/hdl_dump-0.8.6.20060901-fortify.patch new file mode 100644 index 000000000000..96f85d4609af --- /dev/null +++ b/dev-games/hdl_dump/files/hdl_dump-0.8.6.20060901-fortify.patch @@ -0,0 +1,45 @@ +http://bugs.gentoo.org/340145 + +fix buffer overflows in path handling. these defines should only be used +with host paths, so bumping them up to a larger value should be fine. + +--- a/common.h ++++ b/common.h +@@ -35,7 +35,8 @@ + C_START + + #if !defined (MAX_PATH) +-# define MAX_PATH 128 ++/* This needs to be at least 256 bytes -- see iin_gi_probe_path */ ++# define MAX_PATH 1024 + #endif + + +--- a/osal.h ++++ b/osal.h +@@ -62,7 +62,8 @@ typedef struct + # define OSAL_HANDLE_INIT { -1 } /* file descriptor */ + # define OSAL_IS_OPENED(x) ((x).desc != -1) + +-# define MAX_PATH 256 ++/* This needs to be at least 256 bytes -- see iin_gi_probe_path */ ++# define MAX_PATH 1024 + + #endif + typedef /*@special@*/ /*@only@*/ /*@out@*/ osal_handle_t* osal_handle_p_t; + +the magic field is 32 bytes, so strcpy-ing 32 bytes will add a 33rd NUL char. +this isn't a problem in practice as the 33rd char is "unknown_0x02", but let's +fix the issue anyways. + +--- a/apa.c ++++ b/apa.c +@@ -1270,7 +1270,7 @@ apa_initialize_ex (hio_t *hio) + set_u32 (&header.length, 128 * 1024 * 2); + set_u16 (&header.type, 0x0001); + set_ps2fs_datetime (&header.created, time (NULL)); +- strcpy (header.mbr.magic, "Sony Computer Entertainment Inc."); ++ memcpy (header.mbr.magic, "Sony Computer Entertainment Inc.", 32); + header.mbr.unknown_0x02 = 0x02; + set_ps2fs_datetime (&header.mbr.created, time (NULL)); + set_u32 (&header.checksum, apa_partition_checksum (&header)); diff --git a/dev-games/hdl_dump/hdl_dump-0.8.6.20060901.ebuild b/dev-games/hdl_dump/hdl_dump-0.8.6.20060901.ebuild new file mode 100644 index 000000000000..52273a3e821c --- /dev/null +++ b/dev-games/hdl_dump/hdl_dump-0.8.6.20060901.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 toolchain-funcs versionator + +MY_PV=$(replace_version_separator 3 -) +DESCRIPTION="game installer for playstation 2 HD Loader" +HOMEPAGE="http://www.psx-scene.com/hdldump/" +SRC_URI="http://www.psx-scene.com/hdldump/hdl_dumx-${MY_PV}-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-fortify.patch #340145 + sed -i \ + -e "s/-O0 -g/${CFLAGS}/" \ + -e "s/@\$(CC)/$(tc-getCC)/" \ + -e '/LDFLAGS =/d' \ + Makefile || die +} + +src_install() { + dobin hdl_dump + dodoc AUTHORS CHANGELOG README TODO +} diff --git a/dev-games/hdl_dump/metadata.xml b/dev-games/hdl_dump/metadata.xml new file mode 100644 index 000000000000..ea461f64c94c --- /dev/null +++ b/dev-games/hdl_dump/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>vapier@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-games/higan-ananke/Manifest b/dev-games/higan-ananke/Manifest new file mode 100644 index 000000000000..69de8c5c4db6 --- /dev/null +++ b/dev-games/higan-ananke/Manifest @@ -0,0 +1 @@ +DIST higan_v094-source.tar.xz 882732 SHA256 5e149df9d50c1066eb97c0d66665428d75304da782bba5a87078b87fc311151b SHA512 e7e48c76cdc93d2d66db1fa0c71e64903cf4188571b2d5ecb8066dd4e2172a67da4dee68bed6fd0a532b6fd397fa4f537b97de58cc5043a9e970d48d0b66b0da WHIRLPOOL 42e2b628e83b6cb8d87ce82c2e91105b0be06790a1927aa7d52f0b1a181af5d627f467009d15daffd470e3c38a2bb7d67ba84919fb1aa9c8d06ad88ca3163641 diff --git a/dev-games/higan-ananke/files/higan-ananke-092-bps-path-fix.patch b/dev-games/higan-ananke/files/higan-ananke-092-bps-path-fix.patch new file mode 100644 index 000000000000..e951f645aa78 --- /dev/null +++ b/dev-games/higan-ananke/files/higan-ananke-092-bps-path-fix.patch @@ -0,0 +1,11 @@ +diff --git a/ananke/patch.cpp b/ananke/patch.cpp +index a2dc1f9..6692800 100755 +--- a/ananke/patch.cpp ++++ b/ananke/patch.cpp +@@ -1,5 +1,5 @@ + void Ananke::applyBeatPatch(vector<uint8_t> &buffer) { +- string name = {nall::basename(information.name), ".bps"}; ++ string name = {information.path, nall::basename(information.name), ".bps"}; + if(!file::exists(name)) return; + + bpspatch patch; diff --git a/dev-games/higan-ananke/files/higan-ananke-092-makefile.patch b/dev-games/higan-ananke/files/higan-ananke-092-makefile.patch new file mode 100644 index 000000000000..2562ffec9ea4 --- /dev/null +++ b/dev-games/higan-ananke/files/higan-ananke-092-makefile.patch @@ -0,0 +1,20 @@ +--- higan_v092-source/ananke/Makefile ++++ higan_v092-source/ananke/Makefile +@@ -2,7 +2,7 @@ + include phoenix/Makefile + + path := /usr/local/lib +-flags := -I. -O3 -fomit-frame-pointer ++flags := -I. $(CXXFLAGS) + ifeq ($(arch),win32) + flags := -m32 $(flags) + endif +@@ -10,7 +10,7 @@ + all: + $(cpp) $(flags) -fPIC -o ananke.o -c ananke.cpp + ifeq ($(platform),x) +- $(cpp) $(flags) -shared -Wl,-soname,libananke.so.1 -o libananke.so ananke.o ++ $(cpp) $(flags) $(LDFLAGS) -shared -Wl,-soname,libananke.so.1 -o libananke.so ananke.o + else ifeq ($(platform),win) + $(cpp) $(flags) -fPIC -o phoenix.o -c phoenix/phoenix.cpp $(phoenixflags) + $(cpp) $(flags) -shared -o phoenix.dll phoenix.o $(phoenixlink) diff --git a/dev-games/higan-ananke/files/higan-ananke-094-makefile.patch b/dev-games/higan-ananke/files/higan-ananke-094-makefile.patch new file mode 100644 index 000000000000..14639614cad7 --- /dev/null +++ b/dev-games/higan-ananke/files/higan-ananke-094-makefile.patch @@ -0,0 +1,38 @@ +--- a/ananke/Makefile ++++ b/ananke/Makefile +@@ -2,7 +2,7 @@ + include ../phoenix/Makefile + + path := /usr/local/lib +-flags := $(flags) -O3 -fomit-frame-pointer -I.. ++flags := $(flags) $(CXXFLAGS) -I.. + + all: + $(compiler) $(cppflags) $(flags) -fPIC -o obj/ananke.o -c ananke.cpp +@@ -13,7 +13,7 @@ + else ifeq ($(platform),macosx) + $(compiler) $(link) -shared -dynamiclib -undefined suppress -flat_namespace -o libananke.dylib obj/ananke.o + else +- $(compiler) $(link) -shared -Wl,-soname,libananke.so.1 -o libananke.so obj/ananke.o ++ $(compiler) $(link) $(LDFLAGS) -shared -Wl,-soname,libananke.so.1 -o libananke.so obj/ananke.o + endif + + resource: force +--- a/nall/Makefile ++++ b/nall/Makefile +@@ -53,11 +53,11 @@ + link := + endif + +- cflags := -x c -std=c99 +- objcflags := -x objective-c -std=c99 +- cppflags := -x c++ -std=c++11 +- objcppflags := -x objective-c++ -std=c++11 + endif ++cflags := -x c -std=c99 ++objcflags := -x objective-c -std=c99 ++cppflags := -x c++ -std=c++11 ++objcppflags := -x objective-c++ -std=c++11 + + # cross-compilation support + ifeq ($(arch),x86) diff --git a/dev-games/higan-ananke/higan-ananke-094.ebuild b/dev-games/higan-ananke/higan-ananke-094.ebuild new file mode 100644 index 000000000000..4af28d0a35d8 --- /dev/null +++ b/dev-games/higan-ananke/higan-ananke-094.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +MY_P=higan_v${PV}-source + +DESCRIPTION="A higan helper library needed for extra rom load options" +HOMEPAGE="http://byuu.org/higan/" +SRC_URI="http://byuu.org/files/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S=${WORKDIR}/${MY_P}/ananke + +src_prepare() { + cd "${WORKDIR}/${MY_P}" + epatch \ + "${FILESDIR}"/${P}-makefile.patch +} + +src_compile() { + emake \ + platform="linux" \ + compiler="$(tc-getCXX)" +} + +src_install() { + newlib.so libananke.so libananke.so.1 + dosym libananke.so.1 /usr/$(get_libdir)/libananke.so +} diff --git a/dev-games/higan-ananke/metadata.xml b/dev-games/higan-ananke/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/dev-games/higan-ananke/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/dev-games/hlsdk/Manifest b/dev-games/hlsdk/Manifest new file mode 100644 index 000000000000..38b0e759aba8 --- /dev/null +++ b/dev-games/hlsdk/Manifest @@ -0,0 +1 @@ +DIST hlsdk-2.3.tgz 4542895 SHA256 895a3295caed8c4f9de0283dcbd664b4c6038514974c447afe91f0dd3990e90c SHA512 fbcaf03240851903ad18971acc5a522a4ad9fd48087e1c85b7d2c12999702f69d0b487f3a2f51157859f4373cecc57415e8e048facd874a45553b9b609b2df6b WHIRLPOOL 2cc22ab759ae273c04d479dd7d6533ae156caaf1ca73e1aabdaec5a1fba9e49ff192308258cafca9ae030dc3a222618852e259a3002a43677a5d272ede5e5552 diff --git a/dev-games/hlsdk/hlsdk-2.3.ebuild b/dev-games/hlsdk/hlsdk-2.3.ebuild new file mode 100644 index 000000000000..feee25075f3a --- /dev/null +++ b/dev-games/hlsdk/hlsdk-2.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="Half-Life Software Development Kit for mod authors" +HOMEPAGE="http://www.valvesoftware.com/hlsdk.htm" +SRC_URI="http://www.metamod.org/files/sdk/${P}.tgz" + +LICENSE="ValveSDK" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +src_prepare() { + find -iname '*.orig' -exec rm -f '{}' + +} + +src_install() { + insinto "$(games_get_libdir)"/${PN} + doins -r multiplayer singleplayer + dodoc metamod.hlsdk-2.3.txt metamod.hlsdk-2.3.patch + prepgamesdirs +} diff --git a/dev-games/hlsdk/metadata.xml b/dev-games/hlsdk/metadata.xml new file mode 100644 index 000000000000..27c6e20fac25 --- /dev/null +++ b/dev-games/hlsdk/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +Half-Life SDK + +The current version of the Half-Life SDK is 2.3, which includes new functionality +for mod authors, greatly increasing their power to create a wide variety of games +using the Half-Life engine. The new features included with version 2.3 are the +inclusion of the Ricochet source code (with multi-serve technology), first-person +spectator code, and updated information on the server query protocol. + +Note: +This is the version from metamod ... it's been ported and updated for use in linux. +</longdescription> +</pkgmetadata> diff --git a/dev-games/irrlicht/Manifest b/dev-games/irrlicht/Manifest new file mode 100644 index 000000000000..2ddd5afe1486 --- /dev/null +++ b/dev-games/irrlicht/Manifest @@ -0,0 +1 @@ +DIST irrlicht-1.8.1.zip 24167632 SHA256 814bb90116d5429449ba1d169e2cbff881c473b7eada4c2447132bc4f4a6e97b SHA512 93390c162e5a8edb231588d47dc421c24d21a34e833df1f3b92c85a9e8ef4a96a61d854e05eedb37f88f7f02821059e78a40a52cbc8e39356c4d36b17775dfbb WHIRLPOOL c66f0a15575327667cbe82c79919518771e55d5e919c972e64e104a6272b78a20bbb7bbba864722dead4248fb43dd722227181d696eb63e82b4093aaadac132b diff --git a/dev-games/irrlicht/files/irrlicht-1.8.1-config.patch b/dev-games/irrlicht/files/irrlicht-1.8.1-config.patch new file mode 100644 index 000000000000..5cb2a75b7872 --- /dev/null +++ b/dev-games/irrlicht/files/irrlicht-1.8.1-config.patch @@ -0,0 +1,29 @@ +--- include/IrrCompileConfig.h ++++ include/IrrCompileConfig.h +@@ -245,7 +245,7 @@ + //! Define _IRR_USE_NON_SYSTEM_JPEG_LIB_ to let irrlicht use the jpeglib which comes with irrlicht. + /** If this is commented out, Irrlicht will try to compile using the jpeg lib installed in the system. + This is only used when _IRR_COMPILE_WITH_LIBJPEG_ is defined. */ +-#define _IRR_USE_NON_SYSTEM_JPEG_LIB_ ++//#define _IRR_USE_NON_SYSTEM_JPEG_LIB_ + #ifdef NO_IRR_USE_NON_SYSTEM_JPEG_LIB_ + #undef _IRR_USE_NON_SYSTEM_JPEG_LIB_ + #endif +@@ -261,7 +261,7 @@ + //! Define _IRR_USE_NON_SYSTEM_LIBPNG_ to let irrlicht use the libpng which comes with irrlicht. + /** If this is commented out, Irrlicht will try to compile using the libpng installed in the system. + This is only used when _IRR_COMPILE_WITH_LIBPNG_ is defined. */ +-#define _IRR_USE_NON_SYSTEM_LIB_PNG_ ++//#define _IRR_USE_NON_SYSTEM_LIB_PNG_ + #ifdef NO_IRR_USE_NON_SYSTEM_LIB_PNG_ + #undef _IRR_USE_NON_SYSTEM_LIB_PNG_ + #endif +@@ -598,7 +598,7 @@ + /** If this is commented out, Irrlicht will try to compile using the zlib + installed on the system. This is only used when _IRR_COMPILE_WITH_ZLIB_ is + defined. */ +-#define _IRR_USE_NON_SYSTEM_ZLIB_ ++//#define _IRR_USE_NON_SYSTEM_ZLIB_ + #ifdef NO_IRR_USE_NON_SYSTEM_ZLIB_ + #undef _IRR_USE_NON_SYSTEM_ZLIB_ + #endif diff --git a/dev-games/irrlicht/files/irrlicht-1.8.1-demoMake.patch b/dev-games/irrlicht/files/irrlicht-1.8.1-demoMake.patch new file mode 100644 index 000000000000..27f553dfdb21 --- /dev/null +++ b/dev-games/irrlicht/files/irrlicht-1.8.1-demoMake.patch @@ -0,0 +1,764 @@ +--- examples/Demo/Makefile
++++ examples/Demo/Makefile
+@@ -2,8 +2,9 @@
+ Target = Demo
+ Sources = CDemo.cpp CMainMenu.cpp main.cpp
+
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -Wall -O3 -ffast-math
++CXXFLAGS ?= -O3
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS += -Wall -ffast-math
+
+ ifeq ($(HOSTTYPE), x86_64)
+ LIBSELECT=64
+@@ -13,7 +14,7 @@
+
+ # target specific settings
+ all_linux: SYSTEM=Linux
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32: LDFLAGS = -L../../lib/$(SYSTEM) -lIrrlicht -lopengl32 -lm
+--- examples/14.Win32Window/Makefile
++++ examples/14.Win32Window/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/12.TerrainRendering/Makefile
++++ examples/12.TerrainRendering/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/11.PerPixelLighting/Makefile
++++ examples/11.PerPixelLighting/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/08.SpecialFX/Makefile
++++ examples/08.SpecialFX/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/06.2DGraphics/Makefile
++++ examples/06.2DGraphics/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/04.Movement/Makefile
++++ examples/04.Movement/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,14 +18,14 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/16.Quake3MapShader/Makefile
++++ examples/16.Quake3MapShader/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/15.LoadIrrFile/Makefile
++++ examples/15.LoadIrrFile/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/02.Quake3Map/Makefile
++++ examples/02.Quake3Map/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,7 +18,7 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht
+ static_win32: LDFLAGS += -lgdi32 -lopengl32 -ld3dx9d -lwinmm -lm
+@@ -25,7 +25,7 @@
+ static_win32 all_win32 clean_win32: SYSTEM=Win32-gcc
+ static_win32 all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32 static_win32:
+ $(warning Building...)
+--- examples/19.MouseAndJoystick/Makefile
++++ examples/19.MouseAndJoystick/Makefile
+@@ -5,9 +5,10 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
++CPPFLAGS += -I/usr/include/irrlicht
+ #CXXFLAGS = -O3 -ffast-math
+-CXXFLAGS = -g -Wall
++CXXFLAGS ?= -O3
++CXXFLAGS += -Wall
+
+ #default target is Linux
+ all: all_linux
+@@ -17,14 +18,14 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/13.RenderToTexture/Makefile
++++ examples/13.RenderToTexture/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/10.Shaders/Makefile
++++ examples/10.Shaders/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/09.Meshviewer/Makefile
++++ examples/09.Meshviewer/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/21.Quake3Explorer/Makefile
++++ examples/21.Quake3Explorer/Makefile
+@@ -5,9 +5,10 @@
+ Sources = main.cpp sound.cpp q3factory.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
++CPPFLAGS += -I/usr/include/irrlicht
+ #CXXFLAGS = -O3 -ffast-math
++CXXFLAGS ?= -O3
+-CXXFLAGS = -g -Wall
++CXXFLAGS += -Wall
+
+ #default target is Linux
+ all: all_linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/03.CustomSceneNode/Makefile
++++ examples/03.CustomSceneNode/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/20.ManagedLights/Makefile
++++ examples/20.ManagedLights/Makefile
+@@ -5,9 +5,10 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
++CPPFLAGS += -I/usr/include/irrlicht
+ #CXXFLAGS = -O3 -ffast-math
++CXXFLAGS ?= -O3
+-CXXFLAGS = -g -Wall
++CXXFLAGS += -Wall
+
+ #default target is Linux
+ all: all_linux
+@@ -17,14 +18,14 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/05.UserInterface/Makefile
++++ examples/05.UserInterface/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/01.HelloWorld/Makefile
++++ examples/01.HelloWorld/Makefile
+@@ -7,15 +7,15 @@
+ # List of source files, separated by spaces
+ Sources := main.cpp
+ # Path to Irrlicht directory, should contain include/ and lib/
+-IrrlichtHome := ../..
++IrrlichtHome := /usr
+ # Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
+-BinPath = ../../bin/$(SYSTEM)
++BinPath = ../../bin
+
+ # general compiler settings (might need to be set when compiling the lib, too)
+ # preprocessor flags, e.g. defines and include paths
+ USERCPPFLAGS =
+ # compiler flags such as optimization flags
+-USERCXXFLAGS = -O3 -ffast-math
++USERCXXFLAGS = -ffast-math
+ #USERCXXFLAGS = -g -Wall
+ # linker flags such as additional libraries and link paths
+ USERLDFLAGS =
+@@ -24,16 +24,17 @@
+ #no changes necessary below this line
+ ####
+
+-CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
+-CXXFLAGS = $(USERCXXFLAGS)
+-LDFLAGS = $(USERLDFLAGS)
++CPPFLAGS += -I/usr/include/irrlicht $(USERCPPFLAGS)
++CXXFLAGS ?= -O3
++CXXFLAGS += $(USERCXXFLAGS)
++LDFLAGS += $(USERLDFLAGS)
+
+ #default target is Linux
+ all: all_linux
+
+ # target specific settings
+-all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
+-all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux all_win32 static_win32: LDFLAGS += -lIrrlicht
++all_linux: LDFLAGS += -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32 static_win32: SUF=.exe
+--- examples/18.SplitScreen/Makefile
++++ examples/18.SplitScreen/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/07.Collision/Makefile
++++ examples/07.Collision/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,13 +18,13 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
+--- examples/24.CursorControl/Makefile
++++ examples/24.CursorControl/Makefile
+@@ -7,15 +7,15 @@
+ # List of source files, separated by spaces
+ Sources := main.cpp
+ # Path to Irrlicht directory, should contain include/ and lib/
+-IrrlichtHome := ../..
++IrrlichtHome := /usr
+ # Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
+-BinPath = ../../bin/$(SYSTEM)
++BinPath = ../../bin
+
+ # general compiler settings (might need to be set when compiling the lib, too)
+ # preprocessor flags, e.g. defines and include paths
+ USERCPPFLAGS =
+ # compiler flags such as optimization flags
+-USERCXXFLAGS = -O3 -ffast-math
++USERCXXFLAGS = -ffast-math
+ #USERCXXFLAGS = -g -Wall
+ # linker flags such as additional libraries and link paths
+ USERLDFLAGS =
+@@ -24,16 +24,17 @@
+ #no changes necessary below this line
+ ####
+
+-CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
+-CXXFLAGS = $(USERCXXFLAGS)
+-LDFLAGS = $(USERLDFLAGS)
++CPPFLAGS += -I/usr/include/irrlicht $(USERCPPFLAGS)
++CXXFLAGS ?= -O3
++CXXFLAGS += $(USERCXXFLAGS)
++LDFLAGS += $(USERLDFLAGS)
+
+ #default target is Linux
+ all: all_linux
+
+ # target specific settings
+-all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
+-all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux all_win32 static_win32: LDFLAGS += -lIrrlicht
++all_linux: LDFLAGS += -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32 static_win32: SUF=.exe
+--- examples/25.XmlHandling/Makefile
++++ examples/25.XmlHandling/Makefile
+@@ -7,15 +7,15 @@
+ # List of source files, separated by spaces
+ Sources := main.cpp
+ # Path to Irrlicht directory, should contain include/ and lib/
+-IrrlichtHome := ../..
++IrrlichtHome := /usr
+ # Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
+-BinPath = ../../bin/$(SYSTEM)
++BinPath = ../../bin
+
+ # general compiler settings (might need to be set when compiling the lib, too)
+ # preprocessor flags, e.g. defines and include paths
+ USERCPPFLAGS =
+ # compiler flags such as optimization flags
+-USERCXXFLAGS = -O3 -ffast-math
++USERCXXFLAGS = -ffast-math
+ #USERCXXFLAGS = -g -Wall
+ # linker flags such as additional libraries and link paths
+ USERLDFLAGS =
+@@ -24,16 +24,17 @@
+ #no changes necessary below this line
+ ####
+
+-CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
+-CXXFLAGS = $(USERCXXFLAGS)
+-LDFLAGS = $(USERLDFLAGS)
++CPPFLAGS += -I/usr/include/irrlicht $(USERCPPFLAGS)
++CXXFLAGS ?= -O3
++CXXFLAGS += $(USERCXXFLAGS)
++LDFLAGS += $(USERLDFLAGS)
+
+ #default target is Linux
+ all: all_linux
+
+ # target specific settings
+-all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
+-all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux all_win32 static_win32: LDFLAGS += -lIrrlicht
++all_linux: LDFLAGS += -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32 static_win32: SUF=.exe
+--- examples/26.OcclusionQuery/Makefile
++++ examples/26.OcclusionQuery/Makefile
+@@ -5,8 +5,9 @@
+ Sources = main.cpp
+
+ # general compiler settings
+-CPPFLAGS = -I../../include -I/usr/X11R6/include
+-CXXFLAGS = -O3 -ffast-math
++CPPFLAGS += -I/usr/include/irrlicht
++CXXFLAGS ?= -O3
++CXXFLAGS += -ffast-math
+ #CXXFLAGS = -g -Wall
+
+ #default target is Linux
+@@ -17,14 +18,14 @@
+ endif
+
+ # target specific settings
+-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
++all_linux: LDFLAGS += -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg
+ all_linux clean_linux: SYSTEM=Linux
+ all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
+ all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
+ all_win32 clean_win32: SYSTEM=Win32-gcc
+ all_win32 clean_win32: SUF=.exe
+ # name of the binary - only valid for targets which set SYSTEM
+-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
++DESTPATH = ../../bin/$(Target)$(SUF)
+
+ all_linux all_win32:
+ $(warning Building...)
diff --git a/dev-games/irrlicht/files/irrlicht-1.8.1-gentoo.patch b/dev-games/irrlicht/files/irrlicht-1.8.1-gentoo.patch new file mode 100644 index 000000000000..ccbf2cfb921e --- /dev/null +++ b/dev-games/irrlicht/files/irrlicht-1.8.1-gentoo.patch @@ -0,0 +1,46 @@ +--- source/Irrlicht/Makefile
++++ source/Irrlicht/Makefile
+@@ -46,11 +46,7 @@
+ IRRIOOBJ = CFileList.o CFileSystem.o CLimitReadFile.o CMemoryFile.o CReadFile.o CWriteFile.o CXMLReader.o CXMLWriter.o CWADReader.o CZipReader.o CPakReader.o CNPKReader.o CTarReader.o CMountPointReader.o irrXML.o CAttributes.o lzma/LzmaDec.o
+ IRROTHEROBJ = CIrrDeviceSDL.o CIrrDeviceLinux.o CIrrDeviceConsole.o CIrrDeviceStub.o CIrrDeviceWin32.o CIrrDeviceFB.o CLogger.o COSOperator.o Irrlicht.o os.o
+ IRRGUIOBJ = CGUIButton.o CGUICheckBox.o CGUIComboBox.o CGUIContextMenu.o CGUIEditBox.o CGUIEnvironment.o CGUIFileOpenDialog.o CGUIFont.o CGUIImage.o CGUIInOutFader.o CGUIListBox.o CGUIMenu.o CGUIMeshViewer.o CGUIMessageBox.o CGUIModalScreen.o CGUIScrollBar.o CGUISpinBox.o CGUISkin.o CGUIStaticText.o CGUITabControl.o CGUITable.o CGUIToolBar.o CGUIWindow.o CGUIColorSelectDialog.o CDefaultGUIElementFactory.o CGUISpriteBank.o CGUIImageList.o CGUITreeView.o
+-ZLIBOBJ = zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o
+-JPEGLIBOBJ = jpeglib/jcapimin.o jpeglib/jcapistd.o jpeglib/jccoefct.o jpeglib/jccolor.o jpeglib/jcdctmgr.o jpeglib/jchuff.o jpeglib/jcinit.o jpeglib/jcmainct.o jpeglib/jcmarker.o jpeglib/jcmaster.o jpeglib/jcomapi.o jpeglib/jcparam.o jpeglib/jcprepct.o jpeglib/jcsample.o jpeglib/jctrans.o jpeglib/jdapimin.o jpeglib/jdapistd.o jpeglib/jdatadst.o jpeglib/jdatasrc.o jpeglib/jdcoefct.o jpeglib/jdcolor.o jpeglib/jddctmgr.o jpeglib/jdhuff.o jpeglib/jdinput.o jpeglib/jdmainct.o jpeglib/jdmarker.o jpeglib/jdmaster.o jpeglib/jdmerge.o jpeglib/jdpostct.o jpeglib/jdsample.o jpeglib/jdtrans.o jpeglib/jerror.o jpeglib/jfdctflt.o jpeglib/jfdctfst.o jpeglib/jfdctint.o jpeglib/jidctflt.o jpeglib/jidctfst.o jpeglib/jidctint.o jpeglib/jmemmgr.o jpeglib/jmemnobs.o jpeglib/jquant1.o jpeglib/jquant2.o jpeglib/jutils.o jpeglib/jcarith.o jpeglib/jdarith.o jpeglib/jaricom.o
+-LIBPNGOBJ = libpng/png.o libpng/pngerror.o libpng/pngget.o libpng/pngmem.o libpng/pngpread.o libpng/pngread.o libpng/pngrio.o libpng/pngrtran.o libpng/pngrutil.o libpng/pngset.o libpng/pngtrans.o libpng/pngwio.o libpng/pngwrite.o libpng/pngwtran.o libpng/pngwutil.o
+ LIBAESGM = aesGladman/aescrypt.o aesGladman/aeskey.o aesGladman/aestab.o aesGladman/fileenc.o aesGladman/hmac.o aesGladman/prng.o aesGladman/pwd2key.o aesGladman/sha1.o aesGladman/sha2.o
+-BZIP2OBJ = bzip2/blocksort.o bzip2/huffman.o bzip2/crctable.o bzip2/randtable.o bzip2/bzcompress.o bzip2/decompress.o bzip2/bzlib.o
+
+ # Next variable is for additional scene nodes etc. of customized Irrlicht versions
+ EXTRAOBJ =
+@@ -61,18 +57,16 @@
+
+ ###############
+ #Compiler flags
+-CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
++CXXINCS = -I../../include
+ CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1
+-CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing
++CXXFLAGS += -Wall -fno-exceptions -fno-rtti
+ ifndef NDEBUG
+-CXXFLAGS += -g -D_DEBUG
+-else
+-CXXFLAGS += -fexpensive-optimizations -O3
++CXXFLAGS += -D_DEBUG
+ endif
+ ifdef PROFILE
+ CXXFLAGS += -pg
+ endif
+-CFLAGS := -O3 -fexpensive-optimizations -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES
++CFLAGS += -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES
+
+ sharedlib sharedlib_osx: CXXFLAGS += -fPIC
+ sharedlib sharedlib_osx: CFLAGS += -fPIC
+@@ -88,7 +82,7 @@
+ LIB_PATH = ../../lib/$(SYSTEM)
+ INSTALL_DIR = /usr/local/lib
+ sharedlib install: SHARED_LIB = libIrrlicht.so
+-sharedlib: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm
++sharedlib: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -ljpeg -lpng -lbz2 -lz
+ staticlib sharedlib: CXXINCS += -I/usr/X11R6/include
+
+ #OSX specific options
diff --git a/dev-games/irrlicht/files/irrlicht-1.8.1-jpeg-9a.patch b/dev-games/irrlicht/files/irrlicht-1.8.1-jpeg-9a.patch new file mode 100644 index 000000000000..90ed828d1a99 --- /dev/null +++ b/dev-games/irrlicht/files/irrlicht-1.8.1-jpeg-9a.patch @@ -0,0 +1,15 @@ +http://bugs.gentoo.org/show_bug.cgi?id=520746 + +http://code.metager.de/source/diff/irrlicht/source/Irrlicht/CImageLoaderJPG.cpp?r2=%2Firrlicht%2Fsource%2FIrrlicht%2FCImageLoaderJPG.cpp%404823&r1=%2Firrlicht%2Fsource%2FIrrlicht%2FCImageLoaderJPG.cpp%404320 + +--- source/Irrlicht/CImageLoaderJPG.cpp ++++ source/Irrlicht/CImageLoaderJPG.cpp +@@ -66,7 +66,7 @@ + boolean CImageLoaderJPG::fill_input_buffer (j_decompress_ptr cinfo)
+ {
+ // DO NOTHING
+- return 1;
++ return TRUE;
+ }
+
+
diff --git a/dev-games/irrlicht/files/irrlicht-1.8.1-mesa-10.x.patch b/dev-games/irrlicht/files/irrlicht-1.8.1-mesa-10.x.patch new file mode 100644 index 000000000000..e90ff36443a0 --- /dev/null +++ b/dev-games/irrlicht/files/irrlicht-1.8.1-mesa-10.x.patch @@ -0,0 +1,40 @@ +From 244d00280c1b082ca164f92337773e9e4e1a3898 Mon Sep 17 00:00:00 2001 +From: hiker <henrichsjoerg@mgail.com> +Date: Wed, 26 Feb 2014 11:13:03 +1100 +Subject: [PATCH] Applied patch from jpirie for fixing mesa 10 compilation + problems. + +--- irrlicht-1.8.1/source/Irrlicht/COpenGLExtensionHandler.h ++++ irrlicht-1.8.1/source/Irrlicht/COpenGLExtensionHandler.h +@@ -21,6 +21,7 @@ + #endif
+ #include <GL/gl.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #endif
+ #include "wglext.h"
+@@ -35,6 +36,7 @@ + #endif
+ #include <OpenGL/gl.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #endif
+ #elif defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && !defined(_IRR_COMPILE_WITH_X11_DEVICE_)
+@@ -48,6 +50,7 @@ + #define NO_SDL_GLEXT
+ #include <SDL/SDL_video.h>
+ #include <SDL/SDL_opengl.h>
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #else
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+@@ -60,6 +63,7 @@ + #include <GL/gl.h>
+ #include <GL/glx.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+ #include "glext.h"
+ #undef GLX_ARB_get_proc_address // avoid problems with local glxext.h
+ #include "glxext.h"
diff --git a/dev-games/irrlicht/irrlicht-1.8.1-r1.ebuild b/dev-games/irrlicht/irrlicht-1.8.1-r1.ebuild new file mode 100644 index 000000000000..d53a4cc8cfdd --- /dev/null +++ b/dev-games/irrlicht/irrlicht-1.8.1-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib toolchain-funcs + +DESCRIPTION="open source high performance realtime 3D engine written in C++" +HOMEPAGE="http://irrlicht.sourceforge.net/" +SRC_URI="mirror://sourceforge/irrlicht/${P}.zip" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="debug doc static-libs" + +RDEPEND="virtual/jpeg:0 + media-libs/libpng:0 + app-arch/bzip2 + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + x11-libs/libXxf86vm" +DEPEND="${RDEPEND} + app-arch/unzip + x11-proto/xproto + x11-proto/xf86vidmodeproto" + +S=${WORKDIR}/${P}/source/Irrlicht + +src_prepare() { + cd "${WORKDIR}"/${P} || die + edos2unix include/IrrCompileConfig.h + + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-config.patch \ + "${FILESDIR}"/${P}-demoMake.patch \ + "${FILESDIR}"/${P}-mesa-10.x.patch \ + "${FILESDIR}"/${P}-jpeg-9a.patch + + sed -i \ + -e 's:\.\./\.\./media:../media:g' \ + $(grep -rl '\.\./\.\./media' examples) \ + || die 'sed failed' +} + +src_compile() { + tc-export CXX CC AR + emake NDEBUG=$(usex debug "" "1") sharedlib $(usex static-libs "staticlib" "") +} + +src_install() { + cd "${WORKDIR}"/${P} || die + + use static-libs && dolib.a lib/Linux/libIrrlicht.a + dolib.so lib/Linux/libIrrlicht.so* + + # create library symlinks + dosym libIrrlicht.so.${PV} /usr/$(get_libdir)/libIrrlicht.so.1.8 + dosym libIrrlicht.so.${PV} /usr/$(get_libdir)/libIrrlicht.so + + insinto /usr/include/${PN} + doins include/* + + dodoc changes.txt readme.txt + if use doc ; then + insinto /usr/share/doc/${PF} + doins -r examples media + fi +} diff --git a/dev-games/irrlicht/irrlicht-1.8.1.ebuild b/dev-games/irrlicht/irrlicht-1.8.1.ebuild new file mode 100644 index 000000000000..d53a4cc8cfdd --- /dev/null +++ b/dev-games/irrlicht/irrlicht-1.8.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib toolchain-funcs + +DESCRIPTION="open source high performance realtime 3D engine written in C++" +HOMEPAGE="http://irrlicht.sourceforge.net/" +SRC_URI="mirror://sourceforge/irrlicht/${P}.zip" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="debug doc static-libs" + +RDEPEND="virtual/jpeg:0 + media-libs/libpng:0 + app-arch/bzip2 + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + x11-libs/libXxf86vm" +DEPEND="${RDEPEND} + app-arch/unzip + x11-proto/xproto + x11-proto/xf86vidmodeproto" + +S=${WORKDIR}/${P}/source/Irrlicht + +src_prepare() { + cd "${WORKDIR}"/${P} || die + edos2unix include/IrrCompileConfig.h + + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-config.patch \ + "${FILESDIR}"/${P}-demoMake.patch \ + "${FILESDIR}"/${P}-mesa-10.x.patch \ + "${FILESDIR}"/${P}-jpeg-9a.patch + + sed -i \ + -e 's:\.\./\.\./media:../media:g' \ + $(grep -rl '\.\./\.\./media' examples) \ + || die 'sed failed' +} + +src_compile() { + tc-export CXX CC AR + emake NDEBUG=$(usex debug "" "1") sharedlib $(usex static-libs "staticlib" "") +} + +src_install() { + cd "${WORKDIR}"/${P} || die + + use static-libs && dolib.a lib/Linux/libIrrlicht.a + dolib.so lib/Linux/libIrrlicht.so* + + # create library symlinks + dosym libIrrlicht.so.${PV} /usr/$(get_libdir)/libIrrlicht.so.1.8 + dosym libIrrlicht.so.${PV} /usr/$(get_libdir)/libIrrlicht.so + + insinto /usr/include/${PN} + doins include/* + + dodoc changes.txt readme.txt + if use doc ; then + insinto /usr/share/doc/${PF} + doins -r examples media + fi +} diff --git a/dev-games/irrlicht/metadata.xml b/dev-games/irrlicht/metadata.xml new file mode 100644 index 000000000000..3d46e569143f --- /dev/null +++ b/dev-games/irrlicht/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +The Irrlicht Engine is an open source high performance realtime 3D engine written in +C++. It is completely cross-platform, using D3D, OpenGL and its own software renderer, +and has all of the state-of-the-art features which can be found in commercial 3d +engines. +We've got a huge active community, and there are lots of games in development that use +the engine. You can find enhancements for Irrlicht all over the web, like alternative +terrain renderers, portal renderers, world layers, tutorials, editors, bindings for +perl, ruby, python, and so on. And best of all: It's completely free. +</longdescription> + <upstream> + <remote-id type="sourceforge">irrlicht</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/libmaitretarot/Manifest b/dev-games/libmaitretarot/Manifest new file mode 100644 index 000000000000..7022738bb01f --- /dev/null +++ b/dev-games/libmaitretarot/Manifest @@ -0,0 +1 @@ +DIST libmaitretarot-0.1.98.tar.bz2 158060 SHA256 054079a99dcd9de3c6488f897fbce6cef36ef417b48b0ebc1e3de3ae4bf997b3 SHA512 1626f7cd8d53be97b70f4258e83fccefc8edc0605e8850466e94a09f9cfbecf9f763ca7b9154f1fb77da15e9856398b8fce12b12064463a0a9293f8273e95d90 WHIRLPOOL c8c95ec36329cfa38baaf2928c4a143cff89c80e8adf6903c5a23391b1f8bcd28a0e3d4a9445242d5aba0dbb2cc68be80a567aa04befe331d30da09c0b9711a3 diff --git a/dev-games/libmaitretarot/libmaitretarot-0.1.98.ebuild b/dev-games/libmaitretarot/libmaitretarot-0.1.98.ebuild new file mode 100644 index 000000000000..c3ad22fdfab0 --- /dev/null +++ b/dev-games/libmaitretarot/libmaitretarot-0.1.98.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +DESCRIPTION="backend library for the maitretarot games" +HOMEPAGE="http://www.nongnu.org/maitretarot/" +SRC_URI="http://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="dev-libs/glib:2 + dev-libs/libxml2" +DEPEND="${RDEPEND} + virtual/pkgconfig" diff --git a/dev-games/libmaitretarot/metadata.xml b/dev-games/libmaitretarot/metadata.xml new file mode 100644 index 000000000000..2f38e8cffd22 --- /dev/null +++ b/dev-games/libmaitretarot/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +MaitreTarot is a Tarot card game. Understand a game like freecell or poker, +nothing to do with astrology. Tarot is rather a French game. + +MaitreTarot is made of two kind of elements: + + * A server, that knows the rules, that gives the cards to the clients, that +counts the points, and everything else that a server should do. + * Clients. The main idea is to have differents clients. Some would be +clients for human players, with a GUI (gtk+, qt, web, ncurses, win32...). And +some would be AI. That would allow users to play with AI, and even AI +tournaments could be played in order to know the best AI! +</longdescription> +</pkgmetadata> diff --git a/dev-games/libmt_client/Manifest b/dev-games/libmt_client/Manifest new file mode 100644 index 000000000000..6dc6ec9f5df1 --- /dev/null +++ b/dev-games/libmt_client/Manifest @@ -0,0 +1 @@ +DIST libmt_client-0.1.98.tar.bz2 146319 SHA256 e9f9fab225a8fb6462b8b32737253925735a1069383574a324ef0cd35330b71c SHA512 1eb53bd36a171dbc3138942ec8314aaf8a71ca207060ea6d7499d18c2680fe8ebc822d8ec9843675a7c329039d2c985783f239b74b13c004e47a38250a8c4411 WHIRLPOOL cde4fafc73d675ebc53b93c93ccae435e39e7a279de22ed709d6a06fa7cc120ca86728f53de9ab940e2f8aaeb724b0fcc468b0fbb87de969e7e2915b103f642d diff --git a/dev-games/libmt_client/libmt_client-0.1.98.ebuild b/dev-games/libmt_client/libmt_client-0.1.98.ebuild new file mode 100644 index 000000000000..c431a655f6b2 --- /dev/null +++ b/dev-games/libmt_client/libmt_client-0.1.98.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +DESCRIPTION="backend library for the maitretarot clients" +HOMEPAGE="http://www.nongnu.org/maitretarot/" +SRC_URI="http://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-games/libmaitretarot" +RDEPEND=${DEPEND} diff --git a/dev-games/libmt_client/metadata.xml b/dev-games/libmt_client/metadata.xml new file mode 100644 index 000000000000..2f38e8cffd22 --- /dev/null +++ b/dev-games/libmt_client/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +MaitreTarot is a Tarot card game. Understand a game like freecell or poker, +nothing to do with astrology. Tarot is rather a French game. + +MaitreTarot is made of two kind of elements: + + * A server, that knows the rules, that gives the cards to the clients, that +counts the points, and everything else that a server should do. + * Clients. The main idea is to have differents clients. Some would be +clients for human players, with a GUI (gtk+, qt, web, ncurses, win32...). And +some would be AI. That would allow users to play with AI, and even AI +tournaments could be played in order to know the best AI! +</longdescription> +</pkgmetadata> diff --git a/dev-games/libnw/Manifest b/dev-games/libnw/Manifest new file mode 100644 index 000000000000..a86092245ee6 --- /dev/null +++ b/dev-games/libnw/Manifest @@ -0,0 +1 @@ +DIST libnw-1.30.02.tar.gz 317336 SHA256 bf310934f3d77521a6f52474063a7c7c169eb365f597c5223525f3c26116f89e SHA512 5175fe6737dc1a3ddd5e53354435ff0db56ad560f24e330f348190b2ed9e6d2418dc20497dcb64f316572c4c75b298fe12794fde73516347d70e737700f67939 WHIRLPOOL b2e1ebdb8e9c8f33fbdcbf65ac2fc23fe855cdf33109b33f764d1bc159490a08058238bd8a8dfc745f9a94490445b04a194cae3e1ff316f3cecdeeeb59d9fe4d diff --git a/dev-games/libnw/libnw-1.30.02.ebuild b/dev-games/libnw/libnw-1.30.02.ebuild new file mode 100644 index 000000000000..2979ac0a7af9 --- /dev/null +++ b/dev-games/libnw/libnw-1.30.02.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 toolchain-funcs + +DESCRIPTION="Tools and libraries for NWN file manipulation" +HOMEPAGE="http://openknights.sourceforge.net/" +SRC_URI="mirror://sourceforge/openknights/${P}.tar.gz" + +LICENSE="openknights" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="sys-devel/bison + sys-devel/flex" +RDEPEND="!sci-biology/newick-utils" + +src_prepare() { + sed -i \ + -e '/^CC =/d' \ + -e '/^CXX =/d' \ + $(find . -name Makefile.in) || die + tc-export CC CXX +} + +src_install() { + DOCS="AUTHORS ChangeLog NEWS README README.tech TODO" \ + default +} diff --git a/dev-games/libnw/metadata.xml b/dev-games/libnw/metadata.xml new file mode 100644 index 000000000000..a27672f6f2c9 --- /dev/null +++ b/dev-games/libnw/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +libnw - libnw's aim is to provide platform-independent routines for the low- and +mid-level manipulation of NWN resources, as members of game data files, modules, hak +paks, export files, or stand alone. As a side effect, command-line programs are +often produced to exercise portions of the library. Ultimately, these routines are +intended to be assembled along with some form of GUI to make an equivalent to +BioWare's Aurora Toolset. +libnw is very much a work in progress, coded in C, and initially developed on ia32 +hardware running GNU/Linux. Members of the OK Project have assisted in porting the +code to Mac OS X, as well. +</longdescription> + <upstream> + <remote-id type="sourceforge">openknights</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/mercator/Manifest b/dev-games/mercator/Manifest new file mode 100644 index 000000000000..e96f327ab610 --- /dev/null +++ b/dev-games/mercator/Manifest @@ -0,0 +1 @@ +DIST mercator-0.3.3.tar.gz 436499 SHA256 04c71d780979a2b43835b8b30879b39c4d7688661dab8e2bf7046ef9e7aff1e9 SHA512 d8f0bcec904c77ceaadd11474a4a83ec4d5e5086f0c878b147b00f3fb3ef2ae6596553d2d4548f943aa280672dde938d34f4d231782b10149190f5d8029e039a WHIRLPOOL 4ecfe2dcd04526bf9b29e76524c1c6a457fc302aa98c504148a958c3ef399eb8e9167dbf5ed29dbdedd0dedab85c624269224cb030b938308df23a71d06c5129 diff --git a/dev-games/mercator/mercator-0.3.3.ebuild b/dev-games/mercator/mercator-0.3.3.ebuild new file mode 100644 index 000000000000..cb63e20f9cda --- /dev/null +++ b/dev-games/mercator/mercator-0.3.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="WorldForge library primarily aimed at terrain" +HOMEPAGE="http://www.worldforge.org/index.php/components/mercator/" +SRC_URI="mirror://sourceforge/worldforge/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="amd64 x86" +IUSE="doc" +SLOT="0" + +RDEPEND=">=dev-games/wfmath-1" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig" + +src_compile() { + default + use doc && emake docs +} + +src_install() { + default + use doc && dohtml -r doc/html/* + prune_libtool_files +} diff --git a/dev-games/mercator/metadata.xml b/dev-games/mercator/metadata.xml new file mode 100644 index 000000000000..000ad0149523 --- /dev/null +++ b/dev-games/mercator/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +Mercator is primarily aimed at terrain for multiplayer online games and forms +one of the WorldForge core libraries. It is intended to be used as a terrain +library on the client, while a subset of features are useful on the server. + +Mercator is designed in such a way that individual tiles can be generated +on-the-fly from a very small source data set. Each tile uses a fast +deterministic random number generation to ensure that identical results are +produced "anytime, anywhere". This enables transmission of terrain across low +bandwidth links as part of the standard data stream, or server side collision +detection with the same terrain that the player sees. + +The use of tiles means that there is inherently a large degree of gross control +of the shape of the terrain. Finer control is implemented by allowing geometric +modifications - for example, a polygonal area might be flattened, or a crater +could be applied. +</longdescription> + <upstream> + <remote-id type="sourceforge">worldforge</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/metadata.xml b/dev-games/metadata.xml new file mode 100644 index 000000000000..b9454811d16e --- /dev/null +++ b/dev-games/metadata.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The dev-games category contains libraries and utilities relevant to + games programming. + </longdescription> + <longdescription lang="de"> + Die Kategorie dev-games enthält Bibliotheken und Werkzeuge für die + Spieleprogrammierung. + </longdescription> + <longdescription lang="es"> + La categoría dev-games contiene librerias y utilidades referentes + a la programación de juegos. + </longdescription> + <longdescription lang="ja"> + dev-gamesカテゴリーにはゲーム・プログラミングに関連したライブラリーと + ユーティリティが含まれます。 + </longdescription> + <longdescription lang="nl"> + De dev-games categorie bevat bibliotheken en hulpmiddelen voor het + ontwikkelen van spellen. + </longdescription> + <longdescription lang="vi"> + Nhóm dev-games chứa các thư viện và tiện ích liên quan + đến lập trình trò chơi. + </longdescription> + <longdescription lang="sk"> + Kategória dev-games obsahuje knižnice a utility pre programovanie hier. + </longdescription> + <longdescription lang="it"> + La categoria dev-games contiene librerie ed utilità per lo sviluppo di giochi. + </longdescription> + <longdescription lang="pt"> + A categoria dev-games contém bibliotecas e utilitários + referentes a programação de jogos. + </longdescription> + <longdescription lang="pl"> + Kategoria dev-games zawiera biblioteki i narzędzia związane z + programowaniem gier. + </longdescription> +</catmetadata> + diff --git a/dev-games/mygui/Manifest b/dev-games/mygui/Manifest new file mode 100644 index 000000000000..ae962496c9c4 --- /dev/null +++ b/dev-games/mygui/Manifest @@ -0,0 +1 @@ +DIST MyGUI3.2.2.tar.gz 22081236 SHA256 0a28d7ec8a47993cb68deb48b36331e28f12dd92580b709eaef21d599b67a78f SHA512 1290ce1d78b9e4bfe72bea3fb1bc6cdd25969b44be2844df62a1f425b3e221a68b61658fdf45271fb50a1957f12b5ada1c9be971e00ecfe41f53ae0a83ae18d4 WHIRLPOOL d79a765f4442a3a07e5cb886ac5f14a3d444cdb8c7d43f6900a8855316f71af643faa2a4a2f04a64d49a36f2e4fb6065292c856d1aaef2bca6ad79a7508d5bad diff --git a/dev-games/mygui/files/mygui-3.2.2-FHS.patch b/dev-games/mygui/files/mygui-3.2.2-FHS.patch new file mode 100644 index 000000000000..14d21626ff7b --- /dev/null +++ b/dev-games/mygui/files/mygui-3.2.2-FHS.patch @@ -0,0 +1,44 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sat Oct 27 22:39:31 UTC 2012 +Subject: FHS + +paths hardcoded until upstream fixed the logic + +--- mygui-MyGUI3.2.2.orig/CMake/InstallResources.cmake ++++ mygui-MyGUI3.2.2/CMake/InstallResources.cmake +@@ -24,7 +24,7 @@ + else () + install(FILES + ${MYGUI_BINARY_DIR}/bin/${FILENAME} +- DESTINATION "bin" ++ DESTINATION "/etc/MYGUI" + ) + endif () + endfunction(install_file) +@@ -53,7 +53,7 @@ + if (WIN32) + set(MYGUI_MEDIA_DIR "../../Media") + elseif (UNIX) +- set(MYGUI_MEDIA_DIR "../share/MYGUI/Media") ++ set(MYGUI_MEDIA_DIR "${CMAKE_INSTALL_PREFIX}/share/MYGUI/Media") + else () + set(MYGUI_MEDIA_DIR "../../Media") + endif () +--- mygui-MyGUI3.2.2.orig/Common/Base/Ogre/BaseManager.cpp ++++ mygui-MyGUI3.2.2/Common/Base/Ogre/BaseManager.cpp +@@ -49,13 +49,13 @@ + mWindow(nullptr), + mExit(false), + mPluginCfgName("plugins.cfg"), +- mResourceXMLName("resources.xml"), ++ mResourceXMLName("/etc/MYGUI/resources.xml"), + mResourceFileName("MyGUI_Core.xml") + { + #if MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE + mResourcePath = macBundlePath() + "/Contents/Resources/"; + #else +- mResourcePath = ""; ++ mResourcePath = "/etc/MYGUI/"; + #endif + } + diff --git a/dev-games/mygui/files/mygui-3.2.2-build.patch b/dev-games/mygui/files/mygui-3.2.2-build.patch new file mode 100644 index 000000000000..a16b27c285b7 --- /dev/null +++ b/dev-games/mygui/files/mygui-3.2.2-build.patch @@ -0,0 +1,61 @@ +diff -ru mygui-MyGUI3.2.2.orig/CMake/ConfigureBuild.cmake mygui-MyGUI3.2.2/CMake/ConfigureBuild.cmake +--- mygui-MyGUI3.2.2.orig/CMake/ConfigureBuild.cmake 2015-01-26 10:32:35.000000000 -0500 ++++ mygui-MyGUI3.2.2/CMake/ConfigureBuild.cmake 2015-03-14 01:09:40.743621643 -0400 +@@ -4,6 +4,8 @@ + # also prepare package files for pkg-config and CMake. + ####################################################################### + ++include(GNUInstallDirs) ++ + # should we build static libs? + if (MYGUI_STATIC) + set(MYGUI_LIB_TYPE STATIC) +@@ -47,7 +49,7 @@ + else () + configure_file(${MYGUI_TEMPLATES_DIR}/MYGUI.pc.in ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc @ONLY) + endif () +- install(FILES ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc DESTINATION lib/pkgconfig) ++ install(FILES ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + + # configure additional packages + +diff -ru mygui-MyGUI3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake mygui-MyGUI3.2.2/CMake/Utils/MyGUIConfigTargets.cmake +--- mygui-MyGUI3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake 2015-01-26 10:32:35.000000000 -0500 ++++ mygui-MyGUI3.2.2/CMake/Utils/MyGUIConfigTargets.cmake 2015-03-14 01:08:44.905791784 -0400 +@@ -1,6 +1,8 @@ + # Configure settings and install targets + # FIXME: Copypasted from Ogre and need lots of changes + ++include(GNUInstallDirs) ++ + if (WIN32) + set(MYGUI_RELEASE_PATH "/Release") + set(MYGUI_RELWDBG_PATH "/RelWithDebInfo") +@@ -60,6 +62,12 @@ + # install targets according to current build type + function(mygui_install_target TARGETNAME SUFFIX) + install(TARGETS ${TARGETNAME} ++ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" CONFIGURATIONS Gentoo "" ++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" CONFIGURATIONS Gentoo "" ++ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" CONFIGURATIONS Gentoo "" ++ FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS Gentoo "" ++ ) ++ install(TARGETS ${TARGETNAME} + RUNTIME DESTINATION "bin${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None "" + LIBRARY DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None "" + ARCHIVE DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None "" +@@ -171,7 +179,13 @@ + endif () + add_executable(${PROJECTNAME} ${MYGUI_EXEC_TYPE} ${HEADER_FILES} ${SOURCE_FILES}) + endif () +- set_target_properties(${PROJECTNAME} PROPERTIES FOLDER ${SOLUTIONFOLDER}) ++ ++ # rename demo target^M ++ if (${SOLUTIONFOLDER} STREQUAL "Demos") ++ set_target_properties(${PROJECTNAME} PROPERTIES FOLDER ${SOLUTIONFOLDER} OUTPUT_NAME MYGUI-${PROJECTNAME}) ++ else() ++ set_target_properties(${PROJECTNAME} PROPERTIES FOLDER ${SOLUTIONFOLDER}) ++ endif() + + add_dependencies(${PROJECTNAME} MyGUIEngine Common) + diff --git a/dev-games/mygui/files/mygui-3.2.2-underlinking.patch b/dev-games/mygui/files/mygui-3.2.2-underlinking.patch new file mode 100644 index 000000000000..2d1026856f03 --- /dev/null +++ b/dev-games/mygui/files/mygui-3.2.2-underlinking.patch @@ -0,0 +1,20 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Fri Jun 15 10:42:42 UTC 2012 +Subject: build system + +fix underlinking + +--- MyGUIEngine/CMakeLists.txt ++++ MyGUIEngine/CMakeLists.txt +@@ -48,7 +48,10 @@ + if (MYGUI_USE_FREETYPE) + target_link_libraries(${PROJECTNAME} + ${FREETYPE_LIBRARIES} +- ) ++ dl) ++else() ++ target_link_libraries(${PROJECTNAME} ++ dl) + endif() + + # platform specific dependencies diff --git a/dev-games/mygui/metadata.xml b/dev-games/mygui/metadata.xml new file mode 100644 index 000000000000..f52d405a6880 --- /dev/null +++ b/dev-games/mygui/metadata.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <maintainer status="active"> + <email>altren@list.ru</email> + <name>Evmenov Georgiy</name> + <description>CC on bugs</description> + </maintainer> + <changelog>http://redmine.mygui.info/repositories/entry/mygui/tags/MyGUI3.2/ChangeLog.txt</changelog> + <bugs-to>https://sourceforge.net/tracker/?group_id=193706&atid=946487</bugs-to> + <remote-id type="github">MyGUI/mygui</remote-id> + </upstream> + <use> + <flag name="linguas_ru">Install some additional russian docs if 'doc' useflag enabled</flag> + <flag name="opengl">Use the opengl render subsystem. (cannot combine with ogre)</flag> + <flag name="ogre">Use the ogre render subsystem. (cannot combine with opengl)</flag> + <flag name="plugins">Build MyGUI plugins</flag> + <flag name="samples">Install MyGUI demos (needs ogre USE flag)</flag> + <flag name="tools">Build the tools for development</flag> + </use> + <longdescription lang="en"> + MyGUI is a library for creating Graphical User Interfaces (GUIs) for + games and 3D applications. The main goals of mygui are: speed, + flexibility and ease of use. + + Speed + We speed up our system by using our own batching subsystem which + combines geometry. It is also possible for the more experienced + developers to write their own render system or new subsystems + + Flexibility + The library supports plugins that allows you to create dynamically + loaded custom controls or subsystems. Most subsystems are expandable + with plugins without the need to touch the core code. All resources + and settings are described in XML files. It is possible to load + resources like fonts, cursors, images, skins, etc. Forms (layouts) + via dynamically by using XML files. + + Simplicity + The user interface is easy to use and uses delegates (Signals and + slots) for easy to use event handling. + </longdescription> +</pkgmetadata> diff --git a/dev-games/mygui/mygui-3.2.2.ebuild b/dev-games/mygui/mygui-3.2.2.ebuild new file mode 100644 index 000000000000..17e7f8b581b5 --- /dev/null +++ b/dev-games/mygui/mygui-3.2.2.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CMAKE_REMOVE_MODULES="yes" +CMAKE_REMOVE_MODULES_LIST="FindFreetype" +inherit eutils cmake-utils flag-o-matic multilib + +MY_PN=MyGUI +MY_P=${MY_PN}${PV} + +DESCRIPTION="A library for creating GUIs for games" +HOMEPAGE="http://mygui.info/" +SRC_URI="https://github.com/MyGUI/mygui/archive/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug doc +ogre -opengl plugins samples static-libs test tools linguas_ru" +REQUIRED_USE="ogre? ( !opengl ) + opengl? ( !ogre )" + +RDEPEND=" + media-libs/freetype:2 + ogre? ( + dev-games/ogre:=[freeimage,opengl] + samples? ( dev-games/ois ) + ) + opengl? ( virtual/opengl + media-libs/glew ) + tools? ( dev-games/ois )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +S=${WORKDIR}/mygui-${MY_P} +STATIC_BUILD=${WORKDIR}/${P}_build_static + +pkg_setup() { + if use samples && use !ogre ; then + ewarn "Samples disabled, because they only work with ogre!" + ewarn "Enable ogre USE flag if you want to use samples." + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-underlinking.patch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-FHS.patch +} + +src_configure() { + use debug && append-cppflags -DDEBUG + + local mycmakeargs=() + + # static configuration + if use static-libs ; then + mycmakeargs=( -DMYGUI_STATIC=ON + -DMYGUI_BUILD_DOCS=OFF + -DMYGUI_INSTALL_DOCS=OFF + -DMYGUI_USE_FREETYPE=ON + $(cmake-utils_use plugins MYGUI_BUILD_PLUGINS) + -DMYGUI_BUILD_DEMOS=OFF + -DMYGUI_INSTALL_SAMPLES=OFF + -DMYGUI_BUILD_TOOLS=OFF + -DMYGUI_INSTALL_TOOLS=OFF + -DMYGUI_BUILD_WRAPPER=OFF + -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") ) + + CMAKE_BUILD_DIR=${STATIC_BUILD} cmake-utils_src_configure + unset mycmakeargs + fi + + # main configuration + mycmakeargs=( -DMYGUI_STATIC=OFF + $(cmake-utils_use doc MYGUI_BUILD_DOCS) + $(cmake-utils_use doc MYGUI_INSTALL_DOCS) + -DMYGUI_USE_FREETYPE=ON + $(cmake-utils_use plugins MYGUI_BUILD_PLUGINS) + $(usex ogre "$(cmake-utils_use samples MYGUI_BUILD_DEMOS)" "-DMYGUI_BUILD_DEMOS=OFF") + $(usex ogre "$(cmake-utils_use samples MYGUI_INSTALL_SAMPLES)" "-DMYGUI_INSTALL_SAMPLES=OFF") + $(cmake-utils_use tools MYGUI_BUILD_TOOLS) + $(cmake-utils_use tools MYGUI_INSTALL_TOOLS) + $(cmake-utils_use opengl MYGUI_USE_SYSTEM_GLEW) + -DMYGUI_BUILD_WRAPPER=OFF + -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") ) + + if use tools || (use samples && use ogre) ; then + mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=ON ) + else + mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=OFF ) + fi + + cmake-utils_src_configure +} + +src_compile() { + # build system does not support building static and shared at once, + # run a double build + if use static-libs ; then + CMAKE_BUILD_DIR=${STATIC_BUILD} cmake-utils_src_compile + fi + + cmake-utils_src_compile + + use doc && emake -C "${CMAKE_BUILD_DIR}"/Docs api-docs +} + +src_install() { + cmake-utils_src_install + + if use static-libs ; then + find "${STATIC_BUILD}" -name "*.a" \! -name "libCommon.a" -exec dolib.a '{}' \; + insinto /usr/$(get_libdir)/pkgconfig + doins "${STATIC_BUILD}"/pkgconfig/MYGUIStatic.pc + fi + + if use doc ; then + dohtml -r "${CMAKE_BUILD_DIR}"/Docs/html/* + + if use linguas_ru ; then + docompress -x /usr/share/doc/${PF}/Papers + dodoc -r Docs/Papers + fi + fi + + keepdir /etc/MYGUI + fperms o+w /etc/MYGUI + + # test media not needed at runtime + rm -rf "${D}"/usr/share/MYGUI/Media/UnitTests + # wrapper not available for linux, remove related media + rm -rf "${D}"/usr/share/MYGUI/Media/Wrapper +} + +pkg_postinst() { + einfo + elog "ogre.cfg and Ogre.log are created as" + elog "/etc/MYGUI/mygui-ogre.cfg and /etc/MYGUI/mygui-Ogre.log" + einfo +} diff --git a/dev-games/newton/Manifest b/dev-games/newton/Manifest new file mode 100644 index 000000000000..e01c52f98e66 --- /dev/null +++ b/dev-games/newton/Manifest @@ -0,0 +1 @@ +DIST newton-dynamics-2.36.rar 65378909 SHA256 d88dd127e23ff6a5cb44021937b319ab42533f4129ee7c35a77e5e6165c0f888 SHA512 aef8ef121ebbad525b3eeb5dc4da511cd357f52388d5cbf6b9709cbad497ae91f93518dc7eccc914ecf2220428ef5935b4b3fc1500804dd016443ea0fad1c058 WHIRLPOOL 1ae7aa9ec7eb88fd74bb5f54c053871dd58da4cb0e2b8578409be302c85602a1c4950b3a752ede6be0976f1d6077f55a8d8cac5bccd96ea7371af1ea97adfed0 diff --git a/dev-games/newton/files/CMakeLists.txt b/dev-games/newton/files/CMakeLists.txt new file mode 100644 index 000000000000..36cf0e75a4cc --- /dev/null +++ b/dev-games/newton/files/CMakeLists.txt @@ -0,0 +1,58 @@ +cmake_minimum_required(VERSION 2.8) + +project(Newton) +file(GLOB NewtonLibSrc + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/core/*.cpp + ${CMAKE_SOURCE_DIR}/packages/dCustomJoints/*.cpp + ${CMAKE_SOURCE_DIR}/packages/dContainers/*.cpp + ${CMAKE_SOURCE_DIR}/packages/dMath/*.cpp + #${CMAKE_SOURCE_DIR}/packages/dScene/*.cpp + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/physics/*.cpp +) + +file(GLOB NewtonLibH + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/core/*.h + ${CMAKE_SOURCE_DIR}/packages/dCustomJoints/*.h + ${CMAKE_SOURCE_DIR}/packages/dContainers/*.h + ${CMAKE_SOURCE_DIR}/packages/dMath/*.h + #${CMAKE_SOURCE_DIR}/packages/dScene/*.h + ${CMAKE_SOURCE_DIR}/packages/*.h + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/physics/*.h +) + +file(GLOB to_remove ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/physics/dgVehicleConstraint.cpp +) +list(REMOVE_ITEM NewtonLibSrc ${to_remove}) + +set(NewtonSrc ${NewtonSrc} + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/newton/NewtonClass.cpp + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/newton/Newton.cpp +) + +set(includeDirs + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/core/ + ${CMAKE_SOURCE_DIR}/coreLibrary_200/source/physics/ + ${CMAKE_SOURCE_DIR}/packages/dCustomJoints/ + ${CMAKE_SOURCE_DIR}/packages/dContainers/ + ${CMAKE_SOURCE_DIR}/packages/dMath/ + ${CMAKE_SOURCE_DIR}/packages/dScene/ + ${CMAKE_SOURCE_DIR}/packages/ +) + +include_directories(${includeDirs}) + +add_definitions( -DJOINTLIBRARY_LIB -D_LINUX_VER ) + + +SET(LIB_TYPE SHARED) +add_library(Newton ${LIB_TYPE} ${NewtonLibH} ${NewtonLibSrc} ${NewtonSrc}) + +INSTALL(TARGETS Newton + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) + +INSTALL(FILES ${NewtonLibH} DESTINATION include) + + diff --git a/dev-games/newton/metadata.xml b/dev-games/newton/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/dev-games/newton/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/dev-games/newton/newton-2.36.ebuild b/dev-games/newton/newton-2.36.ebuild new file mode 100644 index 000000000000..7d0b5d3d0479 --- /dev/null +++ b/dev-games/newton/newton-2.36.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs cmake-utils unpacker + +MY_P="${PN}-dynamics-${PV}" +DESCRIPTION="an integrated solution for real time simulation of physics environments" +HOMEPAGE="http://code.google.com/p/newton-dynamics/" +SRC_URI="http://newton-dynamics.googlecode.com/files/${MY_P}.rar" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="" + +RDEPEND="" +DEPEND="$(unpacker_src_uri_depends)" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + cp "${FILESDIR}"/CMakeLists.txt "${S}" || die +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=/usr/ + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_install +} diff --git a/dev-games/ode/Manifest b/dev-games/ode/Manifest new file mode 100644 index 000000000000..c6f2d2d13312 --- /dev/null +++ b/dev-games/ode/Manifest @@ -0,0 +1,2 @@ +DIST ode-0.11.1.tar.bz2 1720088 SHA256 877884a86a3d53f3c5f2e35fbd8a3dc23c20249f0636c76f6ef41f6bf57a03a1 SHA512 1e015231f4d01c68e7539144d197031cca23d4b58ea53733184a826ce23388956c428a53385254e7eed2c5d3fc28224a688eb13be7ea648bd78e186c8f203d37 WHIRLPOOL a77c4a61b1dd551911e87a2233f279ac5e6cdea9abf1704574f2a42ab683a426b7fc2a8e9b422f80ca379532b7d755cf7d28f1a47948dd80444cff8c7796cd32 +DIST ode-0.12.tar.bz2 1816246 SHA256 65c5315a42c725d2da01ea2c1b045583d54e0d1a95e3f7c062e5ba3769f5c350 SHA512 303ffda8afcb89a87d09c44393f590f5646f10e8959ca06746121859ad2407709cd711ab185fed4817a9f74c9ca4ee13d1698a28577211bf65dbaad1141f6fc0 WHIRLPOOL def7dfd7bb9f78db9c593bb99eb635da9868dd05362817ca344e583ca157da87c3e6932b9912684bc3deed2aff9eeb409d57fd9eb388e2f195f9c83b5cccabc4 diff --git a/dev-games/ode/metadata.xml b/dev-games/ode/metadata.xml new file mode 100644 index 000000000000..0c0888501ff7 --- /dev/null +++ b/dev-games/ode/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +ODE is a free, industrial quality library for simulating articulated rigid body +dynamics - for example ground vehicles, legged creatures, and moving objects in +VR environments. It is fast, flexible, robust and platform independent, with +advanced joints, contact with friction, and built-in collision detection. +</longdescription> + <use> + <flag name="double-precision">more precise calculations at the expense of speed</flag> + <flag name="gyroscopic">enable gyroscopic term (may cause instability)</flag> + </use> + <upstream> + <remote-id type="sourceforge">opende</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/ode/ode-0.11.1.ebuild b/dev-games/ode/ode-0.11.1.ebuild new file mode 100644 index 000000000000..c0de671f1bb9 --- /dev/null +++ b/dev-games/ode/ode-0.11.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="Open Dynamics Engine SDK" +HOMEPAGE="http://ode.org/" +SRC_URI="mirror://sourceforge/opende/${P}.tar.bz2" + +LICENSE="|| ( LGPL-2.1 BSD )" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd" +IUSE="debug doc double-precision examples gyroscopic static-libs" + +RDEPEND="examples? ( + virtual/opengl + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i \ + -e "s:\$.*/drawstuff/textures:/usr/share/doc/${PF}/examples:" \ + drawstuff/src/Makefile.in \ + ode/demo/Makefile.in || die +} + +src_configure() { + # use bash (bug #335760) + CONFIG_SHELL=/bin/bash \ + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable debug asserts) \ + $(use_enable double-precision) \ + $(use_enable examples demos) \ + $(use_enable gyroscopic) \ + $(use_with examples drawstuff X11) +} + +src_compile() { + emake + if use doc ; then + cd ode/doc + doxygen Doxyfile || die + fi +} + +src_install() { + DOCS="CHANGELOG.txt README.txt" \ + default + prune_libtool_files + if use doc ; then + dohtml docs/* + fi + if use examples; then + cd ode/demo + exeinto /usr/share/doc/${PF}/examples + local f + for f in *.c* ; do + doexe .libs/${f%.*} + done + cd ../.. + doexe drawstuff/dstest/dstest + insinto /usr/share/doc/${PF}/examples + doins ode/demo/*.{c,cpp,h} \ + drawstuff/textures/*.ppm \ + drawstuff/dstest/dstest.cpp \ + drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp} + fi +} diff --git a/dev-games/ode/ode-0.12.ebuild b/dev-games/ode/ode-0.12.ebuild new file mode 100644 index 000000000000..cecc087f4725 --- /dev/null +++ b/dev-games/ode/ode-0.12.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="Open Dynamics Engine SDK" +HOMEPAGE="http://ode.org/" +SRC_URI="mirror://sourceforge/opende/${P}.tar.bz2" + +LICENSE="|| ( LGPL-2.1 BSD )" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="debug doc double-precision examples gyroscopic static-libs" + +RDEPEND="examples? ( + virtual/opengl + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i \ + -e "s:\$.*/drawstuff/textures:/usr/share/doc/${PF}/examples:" \ + drawstuff/src/Makefile.in \ + ode/demo/Makefile.in || die +} + +src_configure() { + # use bash (bug #335760) + CONFIG_SHELL=/bin/bash \ + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable debug asserts) \ + $(use_enable double-precision) \ + $(use_enable examples demos) \ + $(use_enable gyroscopic) \ + $(use_with examples drawstuff X11) +} + +src_compile() { + emake + if use doc ; then + cd ode/doc + doxygen Doxyfile || die + fi +} + +src_install() { + DOCS="CHANGELOG.txt README.txt" \ + default + prune_libtool_files + if use doc ; then + dohtml docs/* + fi + if use examples; then + cd ode/demo + exeinto /usr/share/doc/${PF}/examples + local f + for f in *.c* ; do + doexe .libs/${f%.*} + done + cd ../.. + doexe drawstuff/dstest/dstest + insinto /usr/share/doc/${PF}/examples + doins ode/demo/*.{c,cpp,h} \ + drawstuff/textures/*.ppm \ + drawstuff/dstest/dstest.cpp \ + drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp} + fi +} diff --git a/dev-games/ogre/Manifest b/dev-games/ogre/Manifest new file mode 100644 index 000000000000..4ef26084c7fb --- /dev/null +++ b/dev-games/ogre/Manifest @@ -0,0 +1 @@ +DIST ogre-1.9.0.tar.bz2 128098305 SHA256 3072df52b2bed2a1b52e969f140ae9a4373ec931029d3eaa032e7c609a91ef82 SHA512 b1ea93d80ac0978a7c228460a6714f8d17797450efd5af6765c9fa4402e9060a8ef3a700d2757593a3016fdc32276722c8f4a5d9889a3e2eb424f16162a52bde WHIRLPOOL 625cc09ba5a76757b47764c41583584f538eb9561e5bfd546192e06da504aa3924d7070a7dfbe420c4db3edf5870baf5e8b77cc611aa4185806508f79302d6cd diff --git a/dev-games/ogre/files/ogre-1.9.0-remove_media_path_to_bindir.patch b/dev-games/ogre/files/ogre-1.9.0-remove_media_path_to_bindir.patch new file mode 100644 index 000000000000..9af7685c7d77 --- /dev/null +++ b/dev-games/ogre/files/ogre-1.9.0-remove_media_path_to_bindir.patch @@ -0,0 +1,13 @@ +--- a/CMake/InstallResources.cmake 2014-10-29 12:43:49.000000000 +0100 ++++ b/CMake/InstallResources.cmake 2014-10-29 12:46:10.017611431 +0100 +@@ -178,10 +178,6 @@ + + # CREATE CONFIG FILES - BUILD DIR VERSIONS + if (NOT OGRE_BUILD_PLATFORM_APPLE_IOS) +- set(OGRE_MEDIA_DIR_REL "${OGRE_SOURCE_DIR}/Samples/Media") +- set(OGRE_MEDIA_DIR_DBG "${OGRE_SOURCE_DIR}/Samples/Media") +- set(OGRE_TEST_MEDIA_DIR_REL "${OGRE_SOURCE_DIR}/Tests/Media") +- set(OGRE_TEST_MEDIA_DIR_DBG "${OGRE_SOURCE_DIR}/Tests/Media") + else () + # iOS needs to use relative paths in the config files + set(OGRE_MEDIA_DIR_REL "${OGRE_MEDIA_PATH}") diff --git a/dev-games/ogre/files/ogre-1.9.0-remove_resource_path_to_bindir.patch b/dev-games/ogre/files/ogre-1.9.0-remove_resource_path_to_bindir.patch new file mode 100644 index 000000000000..d73762859081 --- /dev/null +++ b/dev-games/ogre/files/ogre-1.9.0-remove_resource_path_to_bindir.patch @@ -0,0 +1,14 @@ +--- a/CMake/InstallResources.cmake 2013-12-01 18:28:12.000000000 +0100 ++++ b/CMake/InstallResources.cmake 2014-10-29 12:38:29.963602465 +0100 +@@ -201,11 +201,6 @@ + set(OGRE_PLUGIN_DIR_DBG "") + set(OGRE_SAMPLES_DIR_REL "") + set(OGRE_SAMPLES_DIR_DBG "") +-elseif (UNIX) +- set(OGRE_PLUGIN_DIR_REL "${OGRE_BINARY_DIR}/lib") +- set(OGRE_PLUGIN_DIR_DBG "${OGRE_BINARY_DIR}/lib") +- set(OGRE_SAMPLES_DIR_REL "${OGRE_BINARY_DIR}/lib") +- set(OGRE_SAMPLES_DIR_DBG "${OGRE_BINARY_DIR}/lib") + endif () + + if (MSVC AND NOT NMAKE) diff --git a/dev-games/ogre/metadata.xml b/dev-games/ogre/metadata.xml new file mode 100644 index 000000000000..c9f8ae738ba8 --- /dev/null +++ b/dev-games/ogre/metadata.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D +engine written in C++ designed to make it easier and more intuitive for developers +to produce games and demos utilising 3D hardware. The class library abstracts all +the details of using the underlying system libraries like Direct3D and OpenGL and +provides an interface based on world objects and other intuitive classes. + +Productivity features + + * Simple, easy to use OO interface designed to minimise the effort required to render 3D scenes, and to be independent of 3D implementation e.g. Direct3D/OpenGL/Glide etc. + * Extensible example framework makes getting your application running is quick and simple + * Common requirements like render state management, hierarchical culling, dealing with transparency are done for you automatically saving you valuable time + * Clean, uncluttered design and full documentation of all engine classes + +Platform and 3D API support + + * Direct3D and OpenGL support + * Windows (all major versions), Linux and Mac OSX support + * Builds on Visual C++ 6 (with STLport), Visual C++.Net (with STLport), Visual C++.Net 2003 + * Builds on gcc 3+ on Linux / Mac OSX + +Material / Shader support + + * Load textures from PNG, JPEG or TGA files, MipMaps generated automatically, resizes maps to align with hardware requirements + * Procedural texture coordinate generation (e.g. environment mapping) and modification (scrolls, warps, rotations) + * Unbounded number of texture layers with many texture blending effects, animated textures + * Multitexturing hardware used to best effect automatically, combined with automatic fallback to mulitpass rendering + * Object transparency and other scene-level blending effects + * All defineable through text scripts to allow you to set up and tweak advanced materials without recompiling + +Meshes + + * Flexible mesh data formats accepted + * Export from Milkshape3D direct to OGRE .mesh and .skeleton format + * Skeletal animation (including blending of multiple animations) + * Biquadric Bezier patches for curved surfaces + * Progressive meshes + +Scene Features + + * Highly customisable, flexible scene management, not tied to any single scene type. Use predefined classes for scene organisation if they suit or plug in your own subclass to gain full control over the scene organisation + * Generic SceneManager hierarchically culls by bounding volumes + * Example plugin (BspSceneManager) specialises to allow fast indoor renders, loading Quake3 levels inc. shader script parsing support + * Hierarchical scene graph; nodes allow objects to be attached to each other and follow each others movements, articulated structures etc + * Scene querying features + +Special Effects + + * Particle Systems, including easily extensible emitters and affectors (customisable through plugins). Systems can be defined in text scripts for easy tweaking. Automatic use of particle pooling for maximum performance + * Support for skyboxes, skyplanes and skydomes, very easy to use + * Billboarding for sprite graphics + * Transparent objects automatically managed (rendering order and depth buffer settings all set up for you) + +Misc features + + * Common resource infrastructure for memory management and loading from archives (ZIP, PK3) + * Flexible plugin architecture allows engine to be extended without recompilation + * 'Controllers' allow you to easily organise derived values between objects e.g. changing the colour of a ship based on shields left + * Debugging memory manager for identifying memory leaks + * ReferenceAppLayer provides an example of how to combine OGRE with other libraries, for example ODE for collision and physics + * XMLConverter to convert efficient runtime binary formats to/from XML for interchange or editing + +Exporters + + * 3D Studio Max (meshes and animation) + * Milkshape 3D (meshes and animation) + * Blender3D (meshes) + * Wings3D (meshes) + * VRML97 (meshes) + * Maya (meshes) +</longdescription> + <use> + <flag name="boost">enable boost support</flag> + <flag name="cg">NVIDIA toolkit plugin</flag> + <flag name="double-precision">more precise calculations at the expense of speed</flag> + <flag name="freeimage">support images via freeimage</flag> + <flag name="gl3plus">Build OpenGL 3+ RenderSystem (EXPERIMENTAL)</flag> + <flag name="gles2">build OpenGL ES 2.x RenderSystem</flag> + <flag name="gles3">Enable OpenGL ES 3.x Features</flag> + <flag name="ois">pull in Object-oriented Input System library for samples</flag> + <flag name="poco">when USE=threads, use poco for threading</flag> + <flag name="tbb">when USE=threads, use tbb for threading</flag> + <flag name="tools">build+install helper tools</flag> + <flag name="zip">support zip archives</flag> + </use> +</pkgmetadata> diff --git a/dev-games/ogre/ogre-1.9.0-r1.ebuild b/dev-games/ogre/ogre-1.9.0-r1.ebuild new file mode 100644 index 000000000000..059d63e167ba --- /dev/null +++ b/dev-games/ogre/ogre-1.9.0-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CMAKE_REMOVE_MODULES="yes" +CMAKE_REMOVE_MODULES_LIST="FindFreetype" + +inherit eutils cmake-utils vcs-snapshot + +DESCRIPTION="Object-oriented Graphics Rendering Engine" +HOMEPAGE="http://www.ogre3d.org/" +SRC_URI="https://bitbucket.org/sinbad/ogre/get/v${PV//./-}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="MIT public-domain" +SLOT="0/1.9.0" +KEYWORDS="amd64 ~arm x86" + +# gles1 currently broken wrt bug #418201 +# gles1 does not even build wrt bug #506058 +IUSE="+boost cg doc double-precision examples +freeimage gl3plus gles2 gles3 ois +opengl poco profile tbb threads tools +zip" + +REQUIRED_USE="threads? ( ^^ ( boost poco tbb ) ) + poco? ( threads ) + tbb? ( threads ) + ?? ( gl3plus ( || ( gles2 gles3 ) ) ) + gles3? ( gles2 ) + gl3plus? ( opengl )" + +RESTRICT="test" #139905 + +RDEPEND=" + media-libs/freetype:2 + virtual/opengl + virtual/glu + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXrandr + x11-libs/libXt + boost? ( dev-libs/boost ) + cg? ( media-gfx/nvidia-cg-toolkit ) + freeimage? ( media-libs/freeimage ) + gles2? ( >=media-libs/mesa-9.0.0[gles2] ) + gles3? ( >=media-libs/mesa-10.0.0[gles2] ) + gl3plus? ( >=media-libs/mesa-9.2.5 ) + ois? ( dev-games/ois ) + threads? ( + poco? ( dev-libs/poco ) + tbb? ( dev-cpp/tbb ) + ) + tools? ( dev-libs/tinyxml[stl] ) + zip? ( sys-libs/zlib dev-libs/zziplib )" +DEPEND="${RDEPEND} + x11-proto/xf86vidmodeproto + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i \ + -e "s:share/OGRE/docs:share/doc/${PF}:" \ + Docs/CMakeLists.txt || die + # Stupid build system hardcodes release names + sed -i \ + -e '/CONFIGURATIONS/s:CONFIGURATIONS Release.*::' \ + CMake/Utils/OgreConfigTargets.cmake || die + + # make sure we're not using the included tinyxml + rm -f Tools/XMLConverter/{include,src}/tiny*.* + + # Fix some path issues + epatch "${FILESDIR}/${P}-remove_resource_path_to_bindir.patch" \ + "${FILESDIR}/${P}-remove_media_path_to_bindir.patch" +} + +src_configure() { + local mycmakeargs=( + -DOGRE_FULL_RPATH=NO + $(cmake-utils_use boost OGRE_USE_BOOST) + $(cmake-utils_use cg OGRE_BUILD_PLUGIN_CG) + $(cmake-utils_use doc OGRE_INSTALL_DOCS) + $(cmake-utils_use double-precision OGRE_CONFIG_DOUBLE) + $(cmake-utils_use examples OGRE_INSTALL_SAMPLES) + $(cmake-utils_use freeimage OGRE_CONFIG_ENABLE_FREEIMAGE) + $(cmake-utils_use opengl OGRE_BUILD_RENDERSYSTEM_GL) + $(cmake-utils_use gl3plus OGRE_BUILD_RENDERSYSTEM_GL3PLUS) + -DOGRE_BUILD_RENDERSYSTEM_GLES=FALSE + $(cmake-utils_use gles2 OGRE_BUILD_RENDERSYSTEM_GLES2) + $(cmake-utils_use gles3 OGRE_CONFIG_ENABLE_GLES3_SUPPORT) + $(cmake-utils_use profile OGRE_PROFILING) + $(cmake-utils_use examples OGRE_BUILD_SAMPLES) + $(cmake-utils_use examples OGRE_INSTALL_SAMPLES_SOURCE) + -DOGRE_BUILD_TESTS=FALSE + $(usex threads "-DOGRE_CONFIG_THREADS=2" "-DOGRE_CONFIG_THREADS=0") + $(cmake-utils_use tools OGRE_BUILD_TOOLS) + $(cmake-utils_use zip OGRE_CONFIG_ENABLE_ZIP) + ) + + if use threads ; then + local f + for f in boost poco tbb ; do + use ${f} || continue + mycmakeargs+=( -DOGRE_CONFIG_THREAD_PROVIDER=${f} ) + break + done + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + CONFIGDIR=/etc/OGRE + SHAREDIR=/usr/share/OGRE + + # plugins and resources are the main configuration + insinto "${CONFIGDIR}" + doins "${CMAKE_BUILD_DIR}"/bin/plugins.cfg + doins "${CMAKE_BUILD_DIR}"/bin/resources.cfg + dosym "${CONFIGDIR}"/plugins.cfg "${SHAREDIR}"/plugins.cfg + dosym "${CONFIGDIR}"/resources.cfg "${SHAREDIR}"/resources.cfg + + # These are only for the sample browser + insinto "${SHAREDIR}" + doins "${CMAKE_BUILD_DIR}"/bin/quakemap.cfg + doins "${CMAKE_BUILD_DIR}"/bin/samples.cfg +} diff --git a/dev-games/ois/Manifest b/dev-games/ois/Manifest new file mode 100644 index 000000000000..cfb28dc7cb33 --- /dev/null +++ b/dev-games/ois/Manifest @@ -0,0 +1 @@ +DIST ois_v1-3.tar.gz 136739 SHA256 50fa76d827e119a80e2c86a5196ac4354e556f80b0a4fa440f69e1057b37faa1 SHA512 48b7355a9be9c66233691aa5461192fb6e537d284e4366ebf931a76ee3be30f2cf17a4aa350fce6b433eaecf4259414062b9dd5854eaf872b9a18294cfc640c3 WHIRLPOOL 45f0887fd759d0a0a38d6126c1693fabab7724f6835288dd528f1845305ef7eeb4bb78549d0d449e8f2b9714c23b0725e43514565853d3132ff0394981fba197 diff --git a/dev-games/ois/files/ois-1.3-automake-1.13.patch b/dev-games/ois/files/ois-1.3-automake-1.13.patch new file mode 100644 index 000000000000..fb103e40335a --- /dev/null +++ b/dev-games/ois/files/ois-1.3-automake-1.13.patch @@ -0,0 +1,11 @@ +--- ois-v1-3/configure.ac ++++ ois-v1-3/configure.ac +@@ -5,7 +5,7 @@ + + AC_CANONICAL_TARGET + AM_INIT_AUTOMAKE( [OIS], 1.3.0 ) +-AM_CONFIG_HEADER([includes/config.h]) ++AC_CONFIG_HEADERS([includes/config.h]) + + dnl Check for programs + AC_PROG_CC diff --git a/dev-games/ois/files/ois-1.3-gcc47.patch b/dev-games/ois/files/ois-1.3-gcc47.patch new file mode 100644 index 000000000000..d002ec3cffb5 --- /dev/null +++ b/dev-games/ois/files/ois-1.3-gcc47.patch @@ -0,0 +1,40 @@ +--- demos/FFConsoleDemo.cpp.old 2012-07-17 08:41:33.667876985 +0200 ++++ demos/FFConsoleDemo.cpp 2012-07-17 08:42:01.415928693 +0200 +@@ -7,6 +7,7 @@ + #include <ios>
+ #include <sstream>
+ #include <vector>
++#include <unistd.h>
+
+ using namespace std;
+
+--- demos/OISConsole.cpp.old 2012-07-17 08:43:44.637681119 +0200 ++++ demos/OISConsole.cpp 2012-07-17 08:44:06.653135337 +0200 +@@ -12,6 +12,7 @@ + #include <iostream>
+ #include <vector>
+ #include <sstream>
++#include <unistd.h>
+
+ ////////////////////////////////////Needed Windows Headers////////////
+ #if defined OIS_WIN32_PLATFORM
+--- src/linux/LinuxJoyStickEvents.cpp.old 2012-07-17 08:37:56.065155660 +0200 ++++ src/linux/LinuxJoyStickEvents.cpp 2012-07-17 08:38:33.236545721 +0200 +@@ -33,6 +33,7 @@ + #include <fcntl.h> //Needed to Open a file descriptor
+ #include <cassert>
+ #include <linux/input.h>
++#include <unistd.h>
+
+
+ #include <sstream>
+--- src/linux/LinuxForceFeedback.cpp.old 2012-07-17 08:40:02.633268854 +0200 ++++ src/linux/LinuxForceFeedback.cpp 2012-07-17 08:40:28.642442655 +0200 +@@ -26,6 +26,7 @@ + #include <cstdlib>
+ #include <errno.h>
+ #include <memory.h>
++#include <unistd.h>
+
+ using namespace OIS;
+
diff --git a/dev-games/ois/metadata.xml b/dev-games/ois/metadata.xml new file mode 100644 index 000000000000..9a10732db25f --- /dev/null +++ b/dev-games/ois/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">wgois</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/ois/ois-1.3.ebuild b/dev-games/ois/ois-1.3.ebuild new file mode 100644 index 000000000000..c2d80ed398bc --- /dev/null +++ b/dev-games/ois/ois-1.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools autotools-utils + +MY_P=${PN}-v${PV/./-} +DESCRIPTION="Object-oriented Input System - A cross-platform C++ input handling library" +HOMEPAGE="http://sourceforge.net/projects/wgois/" +SRC_URI="mirror://sourceforge/wgois/${MY_P/-/_}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="static-libs" + +DEPEND="x11-libs/libXaw + x11-libs/libX11" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc47.patch \ + "${FILESDIR}"/${P}-automake-1.13.patch + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + ) + autotools-utils_src_configure + +} diff --git a/dev-games/openscenegraph/Manifest b/dev-games/openscenegraph/Manifest new file mode 100644 index 000000000000..c4dd9df1a3ec --- /dev/null +++ b/dev-games/openscenegraph/Manifest @@ -0,0 +1 @@ +DIST OpenSceneGraph-3.2.1.zip 7219212 SHA256 d9ae72263d0191855b0f804d93c586d489f119aca0499292acc09bb0fa0b3e6d SHA512 f7bd9aedd3a1f48094a0ad95d267c2f2c946b042f7459d6b33e6038a4b16aeda9cfd69f339ea0a2a478dadadf1875313a4132564b8fcade5ad93511ecd8c1a9e WHIRLPOOL ef47a41a316fae86341cdebecaeceb41cf56b5f11fdf93e8218bb9aa9eaa28fc2fc9122efbeb8dce69fa01d8c8b6a2460fab69190714ca53abfa5d347a0ae1bc diff --git a/dev-games/openscenegraph/files/openscenegraph-3.2.1-cmake.patch b/dev-games/openscenegraph/files/openscenegraph-3.2.1-cmake.patch new file mode 100644 index 000000000000..1a85ee8d47ba --- /dev/null +++ b/dev-games/openscenegraph/files/openscenegraph-3.2.1-cmake.patch @@ -0,0 +1,276 @@ +diff -ruN OpenSceneGraph-3.2.1/CMakeLists.txt new/CMakeLists.txt +--- OpenSceneGraph-3.2.1/CMakeLists.txt 2014-07-04 13:29:02.000000000 +0200 ++++ new/CMakeLists.txt 2014-08-20 00:45:08.857600038 +0200 +@@ -486,6 +486,7 @@ + + # INSTALL_FILES(/include/osg/ FILES "${OPENSCENEGRAPH_CONFIG_HEADER}") + ++INCLUDE(MacroOptionalFindPackage) + + ################################################################################ + # Set Version Info resource file +@@ -515,37 +516,37 @@ + ANDROID_3RD_PARTY() + ELSE() + # Common to all platforms except android: +- FIND_PACKAGE(Freetype) +- FIND_PACKAGE(Inventor) +- FIND_PACKAGE(Jasper) +- FIND_PACKAGE(OpenEXR) +- FIND_PACKAGE(COLLADA) +- FIND_PACKAGE(FBX) +- FIND_PACKAGE(ZLIB) +- FIND_PACKAGE(Xine) +- FIND_PACKAGE(OpenVRML) +- FIND_PACKAGE(Performer) +- FIND_PACKAGE(GDAL) +- FIND_PACKAGE(GTA) +- FIND_PACKAGE(CURL) +- FIND_PACKAGE(LibVNCServer) +- FIND_PACKAGE(OurDCMTK) +- FIND_PACKAGE(FFmpeg) ++ MACRO_OPTIONAL_FIND_PACKAGE(Freetype) ++ MACRO_OPTIONAL_FIND_PACKAGE(Inventor) ++ MACRO_OPTIONAL_FIND_PACKAGE(Jasper) ++ MACRO_OPTIONAL_FIND_PACKAGE(OpenEXR) ++ MACRO_OPTIONAL_FIND_PACKAGE(COLLADA) ++ MACRO_OPTIONAL_FIND_PACKAGE(FBX) ++ MACRO_OPTIONAL_FIND_PACKAGE(ZLIB) ++ MACRO_OPTIONAL_FIND_PACKAGE(Xine) ++ MACRO_OPTIONAL_FIND_PACKAGE(OpenVRML) ++ MACRO_OPTIONAL_FIND_PACKAGE(Performer) ++ MACRO_OPTIONAL_FIND_PACKAGE(GDAL) ++ MACRO_OPTIONAL_FIND_PACKAGE(GTA) ++ MACRO_OPTIONAL_FIND_PACKAGE(CURL) ++ MACRO_OPTIONAL_FIND_PACKAGE(LibVNCServer) ++ MACRO_OPTIONAL_FIND_PACKAGE(OurDCMTK) ++ MACRO_OPTIONAL_FIND_PACKAGE(FFmpeg) + FIND_PACKAGE(DirectShow) +- FIND_PACKAGE(SDL) +- FIND_PACKAGE(Poppler-glib) +- FIND_PACKAGE(RSVG) +- FIND_PACKAGE(GtkGl) ++ MACRO_OPTIONAL_FIND_PACKAGE(SDL) ++ MACRO_OPTIONAL_FIND_PACKAGE(Poppler-glib) ++ MACRO_OPTIONAL_FIND_PACKAGE(RSVG) ++ MACRO_OPTIONAL_FIND_PACKAGE(GtkGl) + FIND_PACKAGE(DirectInput) +- FIND_PACKAGE(NVTT) ++ MACRO_OPTIONAL_FIND_PACKAGE(NVTT) + IF (NOT WIN32) +- FIND_PACKAGE(Asio) ++ MACRO_OPTIONAL_FIND_PACKAGE(Asio) + ENDIF() + FIND_PACKAGE(ZeroConf) + ENDIF() + + IF(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION LESS 8) +- FIND_PACKAGE(ITK) ++ MACRO_OPTIONAL_FIND_PACKAGE(ITK) + ENDIF() + + # Include macro utilities here +@@ -604,12 +605,12 @@ + IF (BUILD_OSG_EXAMPLES AND NOT ANDROID) + + +- FIND_PACKAGE(FLTK) +- FIND_PACKAGE(GLUT) +- FIND_PACKAGE(FOX) ++ MACRO_OPTIONAL_FIND_PACKAGE(FLTK) ++ MACRO_OPTIONAL_FIND_PACKAGE(GLUT) ++ MACRO_OPTIONAL_FIND_PACKAGE(FOX) + + SET(wxWidgets_USE_LIBS base core gl net) +- FIND_PACKAGE(wxWidgets) ++ MACRO_OPTIONAL_FIND_PACKAGE(wxWidgets) + + ENDIF(BUILD_OSG_EXAMPLES AND NOT ANDROID) + +@@ -630,10 +631,10 @@ + # can use Quicktime. + IF(NOT ANDROID) + IF(NOT APPLE) +- FIND_PACKAGE(GIFLIB) +- FIND_PACKAGE(JPEG) +- FIND_PACKAGE(PNG) +- FIND_PACKAGE(TIFF) ++ MACRO_OPTIONAL_FIND_PACKAGE(GIFLIB) ++ MACRO_OPTIONAL_FIND_PACKAGE(JPEG) ++ MACRO_OPTIONAL_FIND_PACKAGE(PNG) ++ MACRO_OPTIONAL_FIND_PACKAGE(TIFF) + # QuickTime is required for OS X, but optional for Windows. + IF(WIN32) + FIND_PACKAGE(QuickTime) +@@ -689,15 +690,7 @@ + SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG") + ENDIF() + +-IF(UNIX AND NOT WIN32 AND NOT APPLE) +- IF(CMAKE_SIZEOF_VOID_P MATCHES "8") +- SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement") +- MARK_AS_ADVANCED(LIB_POSTFIX) +- ENDIF() +-ENDIF() +-IF(NOT DEFINED LIB_POSTFIX) +- SET(LIB_POSTFIX "") +-ENDIF() ++SET(LIB_POSTFIX ${LIB_SUFFIX}) + + # Here we apparantly do some funky stuff with making the bin/ and lib/ + # folders which is probably needed to work around a very old CMake bug? +@@ -1001,7 +994,7 @@ + ${PROJECT_BINARY_DIR}/doc/OpenSceneGraphReferenceDocs/osg32-32.png COPYONLY + ) + #INSTALL(FILES ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}ReferenceDocs-${OPENSCENEGRAPH_VERSION}.chm DESTINATION doc OPTIONAL COMPONENT openscenegraph-doc) +- INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/doc/OpenSceneGraphReferenceDocs DESTINATION doc COMPONENT openscenegraph-doc) ++ INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/doc/OpenSceneGraphReferenceDocs DESTINATION ${GENTOO_DOCDIR} COMPONENT openscenegraph-doc) + + # now set up openthreads documentation generation + IF(BUILD_REF_DOCS_TAGFILE) +@@ -1017,7 +1010,7 @@ + ${PROJECT_BINARY_DIR}/doc/OpenThreadsReferenceDocs/osg32-32.png COPYONLY + ) + #INSTALL(FILES ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}ReferenceDocs-${OPENSCENEGRAPH_VERSION}.chm DESTINATION doc OPTIONAL COMPONENT openscenegraph-doc) +- INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/doc/OpenThreadsReferenceDocs DESTINATION doc COMPONENT openthreads-doc) ++ INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/doc/OpenThreadsReferenceDocs DESTINATION ${GENTOO_DOCDIR} COMPONENT openthreads-doc) + + # Process our other doxyfiles but don't create targets for these + CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/doc/Doxyfiles/all_Doxyfile +diff -ruN OpenSceneGraph-3.2.1/CMakeModules/COPYING-CMAKE-SCRIPTS new/CMakeModules/COPYING-CMAKE-SCRIPTS +--- OpenSceneGraph-3.2.1/CMakeModules/COPYING-CMAKE-SCRIPTS 1970-01-01 01:00:00.000000000 +0100 ++++ new/CMakeModules/COPYING-CMAKE-SCRIPTS 2014-08-20 00:27:15.371715620 +0200 +@@ -0,0 +1,22 @@ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions ++are met: ++ ++1. Redistributions of source code must retain the copyright ++ notice, this list of conditions and the following disclaimer. ++2. Redistributions in binary form must reproduce the copyright ++ notice, this list of conditions and the following disclaimer in the ++ documentation and/or other materials provided with the distribution. ++3. The name of the author may not be used to endorse or promote products ++ derived from this software without specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +diff -ruN OpenSceneGraph-3.2.1/CMakeModules/FindFLTK.cmake new/CMakeModules/FindFLTK.cmake +--- OpenSceneGraph-3.2.1/CMakeModules/FindFLTK.cmake 2010-11-11 17:51:46.000000000 +0100 ++++ new/CMakeModules/FindFLTK.cmake 2014-08-20 00:29:31.229439251 +0200 +@@ -1,52 +0,0 @@ +-# Locate FLTK +-# This module defines +-# FLTK_LIBRARY +-# FLTK_FOUND, if false, do not try to link to gdal +-# FLTK_INCLUDE_DIR, where to find the headers +-# +-# $FLTK_DIR is an environment variable that would +-# correspond to the ./configure --prefix=$FLTK_DIR +-# +-# Created by Robert Osfield. +- +-FIND_PATH(FLTK_INCLUDE_DIR Fl/Fl.H Fl/Fl.h +- $ENV{FLTK_DIR}/include +- $ENV{FLTK_DIR} +- ~/Library/Frameworks +- /Library/Frameworks +- /usr/local/include +- /usr/include +- /sw/include # Fink +- /opt/local/include # DarwinPorts +- /opt/csw/include # Blastwave +- /opt/include +- /usr/freeware/include +-) +- +-MACRO(FIND_FLTK_LIBRARY MYLIBRARY MYLIBRARYNAME) +- +- FIND_LIBRARY(${MYLIBRARY} +- NAMES ${MYLIBRARYNAME} +- PATHS +- $ENV{FLTK_DIR}/lib +- $ENV{FLTK_DIR} +- ~/Library/Frameworks +- /Library/Frameworks +- /usr/local/lib +- /usr/lib +- /sw/lib +- /opt/local/lib +- /opt/csw/lib +- /opt/lib +- /usr/freeware/lib64 +- ) +- +-ENDMACRO(FIND_FLTK_LIBRARY LIBRARY LIBRARYNAME) +- +-FIND_FLTK_LIBRARY(FLTK_LIBRARY fltk) +-FIND_FLTK_LIBRARY(FLTK_GL_LIBRARY fltk_gl) +- +-SET(FLTK_FOUND "NO") +-IF(FLTK_LIBRARY AND FLTK_INCLUDE_DIR) +- SET(FLTK_FOUND "YES") +-ENDIF(FLTK_LIBRARY AND FLTK_INCLUDE_DIR) +diff -ruN OpenSceneGraph-3.2.1/CMakeModules/MacroOptionalFindPackage.cmake new/CMakeModules/MacroOptionalFindPackage.cmake +--- OpenSceneGraph-3.2.1/CMakeModules/MacroOptionalFindPackage.cmake 1970-01-01 01:00:00.000000000 +0100 ++++ new/CMakeModules/MacroOptionalFindPackage.cmake 2014-08-20 00:32:02.142858484 +0200 +@@ -0,0 +1,28 @@ ++# - MACRO_OPTIONAL_FIND_PACKAGE() combines FIND_PACKAGE() with an OPTION() ++# MACRO_OPTIONAL_FIND_PACKAGE( <name> [QUIT] ) ++# This macro is a combination of OPTION() and FIND_PACKAGE(), it ++# works like FIND_PACKAGE(), but additionally it automatically creates ++# an option name WITH_<name>, which can be disabled via the cmake GUI. ++# or via -DWITH_<name>=OFF ++# The standard <name>_FOUND variables can be used in the same way ++# as when using the normal FIND_PACKAGE() ++ ++# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> ++# ++# Redistribution and use is allowed according to the terms of the BSD license. ++# For details see the accompanying COPYING-CMAKE-SCRIPTS file. ++ ++ ++macro (MACRO_OPTIONAL_FIND_PACKAGE _name ) ++ option(WITH_${_name} "Search for ${_name} package" ON) ++ if (WITH_${_name}) ++ find_package(${_name} ${ARGN}) ++ else (WITH_${_name}) ++ set(${_name}_FOUND) ++ set(${_name}_INCLUDE_DIR) ++ set(${_name}_INCLUDES) ++ set(${_name}_LIBRARY) ++ set(${_name}_LIBRARIES) ++ endif (WITH_${_name}) ++endmacro (MACRO_OPTIONAL_FIND_PACKAGE) ++ +diff -ruN OpenSceneGraph-3.2.1/CMakeModules/OsgMacroUtils.cmake new/CMakeModules/OsgMacroUtils.cmake +--- OpenSceneGraph-3.2.1/CMakeModules/OsgMacroUtils.cmake 2014-04-13 18:03:17.000000000 +0200 ++++ new/CMakeModules/OsgMacroUtils.cmake 2014-08-20 07:31:10.261828759 +0200 +@@ -453,7 +453,7 @@ + IF(APPLE) + INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin BUNDLE DESTINATION share/OpenSceneGraph/bin ) + ELSE(APPLE) +- INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin COMPONENT openscenegraph-examples ) ++ INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin COMPONENT openscenegraph-examples ) + ENDIF(APPLE) + + ENDMACRO(SETUP_EXAMPLE) +diff -ruN OpenSceneGraph-3.2.1/examples/osgviewerFLTK/CMakeLists.txt new/examples/osgviewerFLTK/CMakeLists.txt +--- OpenSceneGraph-3.2.1/examples/osgviewerFLTK/CMakeLists.txt 2007-06-25 10:35:06.000000000 +0200 ++++ new/examples/osgviewerFLTK/CMakeLists.txt 2014-08-20 00:40:48.620538012 +0200 +@@ -1,6 +1,6 @@ + SET(TARGET_SRC osgviewerFLTK.cpp ) + +-SET(TARGET_EXTERNAL_LIBRARIES ${FLTK_LIBRARY} ${FLTK_GL_LIBRARY}) ++SET(TARGET_EXTERNAL_LIBRARIES ${FLTK_BASE_LIBRARY} ${FLTK_GL_LIBRARY}) + + INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR} ) + diff --git a/dev-games/openscenegraph/files/openscenegraph-3.2.1-gdal-2.0.patch b/dev-games/openscenegraph/files/openscenegraph-3.2.1-gdal-2.0.patch new file mode 100644 index 000000000000..639cbc958258 --- /dev/null +++ b/dev-games/openscenegraph/files/openscenegraph-3.2.1-gdal-2.0.patch @@ -0,0 +1,49 @@ +--- OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp ++++ OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp +@@ -134,11 +134,21 @@ + + virtual ReadResult readFile(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const + { ++#if GDAL_VERSION_MAJOR < 2 + if (OGRSFDriverRegistrar::GetRegistrar()->GetDriverCount() == 0) + OGRRegisterAll(); ++#else ++ if (GDALGetDriverCount() == 0) ++ GDALAllRegister(); ++#endif + + // Try to open data source ++#if GDAL_VERSION_MAJOR < 2 + OGRDataSource* file = OGRSFDriverRegistrar::Open(fileName.c_str()); ++#else ++ GDALDataset *file; ++ file = (GDALDataset*) GDALOpenEx( fileName.c_str(), GDAL_OF_VECTOR, NULL, NULL, NULL ); ++#endif + if (!file) + return 0; + +@@ -156,6 +166,7 @@ + + osg::Group* group = new osg::Group; + ++#if GDAL_VERSION_MAJOR < 2 + for (int i = 0; i < file->GetLayerCount(); i++) + { + osg::Group* node = readLayer(file->GetLayer(i), file->GetName(), useRandomColorByFeature, addGroupPerFeature); +@@ -163,6 +174,16 @@ + group->addChild( node ); + } + OGRDataSource::DestroyDataSource( file ); ++#else ++ for (int i = 0; i < file->GetLayerCount(); i++) ++ { ++ OGRLayer* layer = (OGRLayer *)GDALDatasetGetLayer(file, i); ++ osg::Group* node = readLayer(layer, layer->GetName(), useRandomColorByFeature, addGroupPerFeature); ++ if (node) ++ group->addChild( node ); ++ } ++ GDALClose( file ); ++#endif + return group; + } + diff --git a/dev-games/openscenegraph/metadata.xml b/dev-games/openscenegraph/metadata.xml new file mode 100644 index 000000000000..99260e6b9652 --- /dev/null +++ b/dev-games/openscenegraph/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> +</maintainer> +<longdescription lang="en"> +The OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well established as the world leading scene graph technology, used widely in the vis-sim, space, scientific, oil-gas, games and virtual reality industries. +</longdescription> + <use> + <flag name="asio">Enable support for <pkg>dev-cpp/asio</pkg> library</flag> + <flag name="fox">Build examples using <pkg>x11-libs/fox</pkg> library</flag> + <flag name="gdal">Enable support for <pkg>sci-libs/gdal</pkg> library</flag> + <flag name="openinventor">Build OpenInventor plugin</flag> + <flag name="osgapps">Build osg applications</flag> + <flag name="xrandr">Enable support for the X xrandr extension</flag> + </use> +</pkgmetadata> diff --git a/dev-games/openscenegraph/openscenegraph-3.2.1-r1.ebuild b/dev-games/openscenegraph/openscenegraph-3.2.1-r1.ebuild new file mode 100644 index 000000000000..944c34e98443 --- /dev/null +++ b/dev-games/openscenegraph/openscenegraph-3.2.1-r1.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils flag-o-matic wxwidgets + +MY_PN="OpenSceneGraph" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Open source high performance 3D graphics toolkit" +HOMEPAGE="http://www.openscenegraph.org/projects/osg/" +SRC_URI="http://www.openscenegraph.org/downloads/developer_releases/${MY_P}.zip" + +LICENSE="wxWinLL-3 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="asio curl debug doc examples ffmpeg fltk fox gdal gif glut gtk jpeg jpeg2k +openexr openinventor osgapps pdf png qt4 qt5 sdl svg tiff truetype vnc wxwidgets +xine xrandr zlib" + +REQUIRED_USE=" + qt4? ( !qt5 ) + qt5? ( !qt4 ) +" + +# TODO: COLLADA, FBX, GTA, ITK, OpenVRML, Performer, DCMTK +RDEPEND=" + x11-libs/libSM + x11-libs/libXext + virtual/glu + virtual/opengl + asio? ( dev-cpp/asio ) + curl? ( net-misc/curl ) + examples? ( + fltk? ( x11-libs/fltk:1[opengl] ) + fox? ( x11-libs/fox:1.6[opengl] ) + glut? ( media-libs/freeglut ) + gtk? ( x11-libs/gtkglext ) + sdl? ( media-libs/libsdl ) + wxwidgets? ( x11-libs/wxGTK[opengl,X] ) + ) + ffmpeg? ( virtual/ffmpeg ) + gdal? ( sci-libs/gdal ) + gif? ( media-libs/giflib ) + jpeg? ( virtual/jpeg ) + jpeg2k? ( media-libs/jasper ) + openexr? ( + media-libs/ilmbase + media-libs/openexr + ) + openinventor? ( media-libs/coin ) + pdf? ( app-text/poppler[cairo] ) + png? ( media-libs/libpng:0 ) + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + ) + svg? ( + gnome-base/librsvg + x11-libs/cairo + ) + tiff? ( media-libs/tiff:0 ) + truetype? ( media-libs/freetype:2 ) + vnc? ( net-libs/libvncserver ) + xine? ( media-libs/xine-lib ) + xrandr? ( x11-libs/libXrandr ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND} + app-arch/unzip + virtual/pkgconfig + x11-proto/xextproto + doc? ( app-doc/doxygen ) + xrandr? ( x11-proto/randrproto ) +" + +S=${WORKDIR}/${MY_P} + +DOCS=(AUTHORS.txt ChangeLog NEWS.txt) + +PATCHES=( + "${FILESDIR}"/${PN}-3.2.1-cmake.patch + "${FILESDIR}"/${PN}-3.2.1-gdal-2.0.patch +) + +src_configure() { + if use examples && use wxwidgets; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + fi + + # Needed by FFmpeg + append-cppflags -D__STDC_CONSTANT_MACROS + + mycmakeargs=( + -DDYNAMIC_OPENSCENEGRAPH=ON + -DWITH_ITK=OFF + -DGENTOO_DOCDIR="/usr/share/doc/${PF}" + $(cmake-utils_use_with asio) + $(cmake-utils_use_with curl) + $(cmake-utils_use_build doc DOCUMENTATION) + $(cmake-utils_use_build osgapps OSG_APPLICATIONS) + $(cmake-utils_use_build examples OSG_EXAMPLES) + $(cmake-utils_use_with ffmpeg FFmpeg) + $(cmake-utils_use_with fltk) + $(cmake-utils_use_with fox) + $(cmake-utils_use_with gdal) + $(cmake-utils_use_with gif GIFLIB) + $(cmake-utils_use_with glut) + $(cmake-utils_use_with gtk GtkGl) + $(cmake-utils_use_with jpeg) + $(cmake-utils_use_with jpeg2k Jasper) + $(cmake-utils_use_with openexr OpenEXR) + $(cmake-utils_use_with openinventor Inventor) + $(cmake-utils_use_with pdf Poppler-glib) + $(cmake-utils_use_with png) + $(cmake-utils_use_with sdl) + $(cmake-utils_use_with svg rsvg) + $(cmake-utils_use_with tiff) + $(cmake-utils_use_with truetype Freetype) + $(cmake-utils_use_with vnc LibVNCServer) + $(cmake-utils_use_with wxwidgets wxWidgets) + $(cmake-utils_use_with xine) + $(cmake-utils_use xrandr OSGVIEWER_USE_XRANDR) + $(cmake-utils_use_with zlib) + ) + if use qt4; then + mycmakeargs+=( -DOSG_USE_QT=ON -DDESIRED_QT_VERSION=4 ) + elif use qt5; then + mycmakeargs+=( -DOSG_USE_QT=ON -DDESIRED_QT_VERSION=5 ) + else + mycmakeargs+=( -DOSG_USE_QT=OFF ) + fi + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + use doc && cmake-utils_src_compile doc_openscenegraph doc_openthreads +} diff --git a/dev-games/openscenegraph/openscenegraph-3.2.1.ebuild b/dev-games/openscenegraph/openscenegraph-3.2.1.ebuild new file mode 100644 index 000000000000..d08b777e775b --- /dev/null +++ b/dev-games/openscenegraph/openscenegraph-3.2.1.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils flag-o-matic wxwidgets + +MY_PN="OpenSceneGraph" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Open source high performance 3D graphics toolkit" +HOMEPAGE="http://www.openscenegraph.org/projects/osg/" +SRC_URI="http://www.openscenegraph.org/downloads/developer_releases/${MY_P}.zip" + +LICENSE="wxWinLL-3 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="asio curl debug doc examples ffmpeg fltk fox gdal gif glut gtk jpeg jpeg2k +openexr openinventor osgapps pdf png qt4 sdl svg tiff truetype vnc wxwidgets +xine xrandr zlib" + +# TODO: COLLADA, FBX, GTA, ITK, OpenVRML, Performer, DCMTK +RDEPEND=" + x11-libs/libSM + x11-libs/libXext + virtual/glu + virtual/opengl + asio? ( dev-cpp/asio ) + curl? ( net-misc/curl ) + examples? ( + fltk? ( x11-libs/fltk:1[opengl] ) + fox? ( x11-libs/fox:1.6[opengl] ) + glut? ( media-libs/freeglut ) + gtk? ( x11-libs/gtkglext ) + sdl? ( media-libs/libsdl ) + wxwidgets? ( x11-libs/wxGTK[opengl,X] ) + ) + ffmpeg? ( virtual/ffmpeg ) + gdal? ( sci-libs/gdal ) + gif? ( media-libs/giflib ) + jpeg? ( virtual/jpeg ) + jpeg2k? ( media-libs/jasper ) + openexr? ( + media-libs/ilmbase + media-libs/openexr + ) + openinventor? ( media-libs/coin ) + pdf? ( app-text/poppler[cairo] ) + png? ( media-libs/libpng:0 ) + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + ) + svg? ( + gnome-base/librsvg + x11-libs/cairo + ) + tiff? ( media-libs/tiff:0 ) + truetype? ( media-libs/freetype:2 ) + vnc? ( net-libs/libvncserver ) + xine? ( media-libs/xine-lib ) + xrandr? ( x11-libs/libXrandr ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND} + app-arch/unzip + virtual/pkgconfig + x11-proto/xextproto + doc? ( app-doc/doxygen ) + xrandr? ( x11-proto/randrproto ) +" + +S=${WORKDIR}/${MY_P} + +DOCS=(AUTHORS.txt ChangeLog NEWS.txt) + +PATCHES=( + "${FILESDIR}"/${PN}-3.2.1-cmake.patch +) + +src_configure() { + if use examples && use wxwidgets; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + fi + + # Needed by FFmpeg + append-cppflags -D__STDC_CONSTANT_MACROS + + mycmakeargs=( + -DDESIRED_QT_VERSION=4 + -DDYNAMIC_OPENSCENEGRAPH=ON + -DWITH_ITK=OFF + -DGENTOO_DOCDIR="/usr/share/doc/${PF}" + $(cmake-utils_use_with asio) + $(cmake-utils_use_with curl) + $(cmake-utils_use_build doc DOCUMENTATION) + $(cmake-utils_use_build osgapps OSG_APPLICATIONS) + $(cmake-utils_use_build examples OSG_EXAMPLES) + $(cmake-utils_use_with ffmpeg FFmpeg) + $(cmake-utils_use_with fltk) + $(cmake-utils_use_with fox) + $(cmake-utils_use_with gdal) + $(cmake-utils_use_with gif GIFLIB) + $(cmake-utils_use_with glut) + $(cmake-utils_use_with gtk GtkGl) + $(cmake-utils_use_with jpeg) + $(cmake-utils_use_with jpeg2k Jasper) + $(cmake-utils_use_with openexr OpenEXR) + $(cmake-utils_use_with openinventor Inventor) + $(cmake-utils_use_with pdf Poppler-glib) + $(cmake-utils_use_with png) + $(cmake-utils_use qt4 OSG_USE_QT) + $(cmake-utils_use_with sdl) + $(cmake-utils_use_with svg rsvg) + $(cmake-utils_use_with tiff) + $(cmake-utils_use_with truetype Freetype) + $(cmake-utils_use_with vnc LibVNCServer) + $(cmake-utils_use_with wxwidgets wxWidgets) + $(cmake-utils_use_with xine) + $(cmake-utils_use xrandr OSGVIEWER_USE_XRANDR) + $(cmake-utils_use_with zlib) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + use doc && cmake-utils_src_compile doc_openscenegraph doc_openthreads +} diff --git a/dev-games/paklib/Manifest b/dev-games/paklib/Manifest new file mode 100644 index 000000000000..a5651eeffe55 --- /dev/null +++ b/dev-games/paklib/Manifest @@ -0,0 +1 @@ +DIST pak-0.3.tar.gz 12885 SHA256 6139688e96d044386ac92e587791bf29d0adc501240765bb08fe4b00f31cf6c9 SHA512 05eb8402fc1b1b0ab381dbf815c59fa1fde1e1aa081c124d0f2f3b257fdefd23e9c7995c055b368f53dabab60722b6505976bc601d991265581ee36cb96b7750 WHIRLPOOL 982cebeb1f48ecd0099f694f00ebcf292968fa1710b6b1020e760fbdcf95e70cdccc7caed75a65ead3b856839fe84f89c090e25b772f0d3de387ea5c7068d821 diff --git a/dev-games/paklib/metadata.xml b/dev-games/paklib/metadata.xml new file mode 100644 index 000000000000..8d14a6674949 --- /dev/null +++ b/dev-games/paklib/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">paklib</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/paklib/paklib-0.3.ebuild b/dev-games/paklib/paklib-0.3.ebuild new file mode 100644 index 000000000000..46d7f006d7dc --- /dev/null +++ b/dev-games/paklib/paklib-0.3.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 toolchain-funcs + +DESCRIPTION="library for accessing Quake pak files" +HOMEPAGE="http://sourceforge.net/projects/paklib/" +SRC_URI="mirror://sourceforge/paklib/pak-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S=${WORKDIR}/pak + +src_compile() { + $(tc-getCC) ${LDFLAGS} ${CFLAGS} -fPIC -shared pak.c -o libpak.so || die "pak.so failed" + $(tc-getCC) ${CFLAGS} -c pak.c -o libpak.a || die "pak.a failed" +} + +src_install() { + dolib.so libpak.so + dolib.a libpak.a + insinto /usr/include + doins pak.h + dodoc AUTHORS NEWS README TODO pak.c pak.h +} diff --git a/dev-games/physfs/Manifest b/dev-games/physfs/Manifest new file mode 100644 index 000000000000..bdb7b23eccf6 --- /dev/null +++ b/dev-games/physfs/Manifest @@ -0,0 +1 @@ +DIST physfs-2.0.3.tar.bz2 560628 SHA256 ca862097c0fb451f2cacd286194d071289342c107b6fe69079c079883ff66b69 SHA512 47eff0c81b8dc3bb526766b0a8ad2437d2951867880116d6e6e8f2ec1490e263541fb741867fed6517cc3fa8a9c5651b36e3e02a499f19cfdc5c7261c9707e80 WHIRLPOOL 30362f92d5702842142c08c3183a384876a03e9e3e400364b0fa59c99ffee994667c1ad08fe633ef146e98301789a980a3419f60a18b24b9c341bb74144ccc73 diff --git a/dev-games/physfs/metadata.xml b/dev-games/physfs/metadata.xml new file mode 100644 index 000000000000..e67532100d47 --- /dev/null +++ b/dev-games/physfs/metadata.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +PhysicsFS is a library to provide abstract access to various archives. It is +intended for use in video games, and the design was somewhat inspired by Quake 3's +file subsystem. The programmer defines a "write directory" on the physical +filesystem. No file writing done through the PhysicsFS API can leave that write +directory, for security. For example, an embedded scripting language cannot write +outside of this path if it uses PhysFS for all of its I/O, which means that +untrusted scripts can run more safely. Symbolic links can be disabled as well, for +added safety. For file reading, the programmer lists directories and archives that +form a "search path". Once the search path is defined, it becomes a single, +transparent hierarchical filesystem. This makes for easy access to ZIP files in the +same way as you access a file directly on the disk, and it makes it easy to ship a +new archive that will override a previous archive on a per-file basis. Finally, +PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are available, +the user's home directory, where in the real filesystem your program is running, +etc. +</longdescription> +<use> +<flag name="grp">Enable Build Engine GRP archive support</flag> +<flag name="hog">Enable Descent I/II HOG archive support</flag> +<flag name="mvl">Enable Descent I/II MVL archive support</flag> +<flag name="wad">Enable Doom WAD archive support</flag> +<flag name="qpak">Enable Quake I/II QPAK archive support</flag> +<flag name="zip">Enable ZIP archive support</flag> +</use> +</pkgmetadata> diff --git a/dev-games/physfs/physfs-2.0.3-r1.ebuild b/dev-games/physfs/physfs-2.0.3-r1.ebuild new file mode 100644 index 000000000000..e740a069bcff --- /dev/null +++ b/dev-games/physfs/physfs-2.0.3-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-multilib + +DESCRIPTION="Abstraction layer for filesystem and archive access" +HOMEPAGE="http://icculus.org/physfs/" +SRC_URI="http://icculus.org/physfs/downloads/${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="doc grp hog mvl qpak static-libs wad +zip" + +RDEPEND="" +DEPEND="doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i -e 's:-Werror::' CMakeLists.txt || die + # make sure these libs aren't used + rm -rf lzma zlib* +} + +src_configure() { + local mycmakeargs=" + -DPHYSFS_ARCHIVE_7Z=OFF + -DPHYSFS_BUILD_SHARED=ON + -DPHYSFS_BUILD_TEST=OFF + -DPHYSFS_BUILD_WX_TEST=OFF + -DPHYSFS_INTERNAL_ZLIB=OFF + $(cmake-utils_use static-libs PHYSFS_BUILD_STATIC) + $(cmake-utils_use grp PHYSFS_ARCHIVE_GRP) + $(cmake-utils_use hog PHYSFS_ARCHIVE_HOG) + $(cmake-utils_use mvl PHYSFS_ARCHIVE_MVL) + $(cmake-utils_use wad PHYSFS_ARCHIVE_WAD) + $(cmake-utils_use qpak PHYSFS_ARCHIVE_QPAK) + $(cmake-utils_use zip PHYSFS_ARCHIVE_ZIP)" + + cmake-multilib_src_configure +} + +src_compile() { + cmake-multilib_src_compile + + if multilib_is_native_abi && use doc ; then + doxygen || die "doxygen failed" + fi +} + +src_install() { + local DOCS="CHANGELOG.txt CREDITS.txt TODO.txt" + local HTML_DOCS=$(use doc && echo docs/html/*) + + cmake-multilib_src_install +} diff --git a/dev-games/poker-eval/Manifest b/dev-games/poker-eval/Manifest new file mode 100644 index 000000000000..95cc01fa70cb --- /dev/null +++ b/dev-games/poker-eval/Manifest @@ -0,0 +1 @@ +DIST poker-eval-138.0.tar.gz 470224 SHA256 92659e4a90f6856ebd768bad942e9894bd70122dab56f3b23dd2c4c61bdbcf68 SHA512 693dfac358beb63b3cbfb2d29bdea65904b894dd9872757db4e203849a0ca7c6951333dd181268c33cb54dd1bd37f57ed963d5c7ab5f9c34e67fdb211fac2fa6 WHIRLPOOL 8103bbfbc97ffd3f808ac5390f8537dc452d8bd96f78f832f8f0058ac384c155ad1cccb2051c9b934e3412b0004000460a614c5b20e2f13541339b11b8be777e diff --git a/dev-games/poker-eval/metadata.xml b/dev-games/poker-eval/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/dev-games/poker-eval/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/dev-games/poker-eval/poker-eval-138.0.ebuild b/dev-games/poker-eval/poker-eval-138.0.ebuild new file mode 100644 index 000000000000..8b5b66472a6e --- /dev/null +++ b/dev-games/poker-eval/poker-eval-138.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="A fast C library for evaluating poker hands" +HOMEPAGE="http://gna.org/projects/pokersource/" +SRC_URI="http://download.gna.org/pokersource/sources/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="static-libs" + +src_configure() { + econf \ + --without-ccache \ + $(use_enable static-libs static) +} + +src_install() { + DOCS="AUTHORS ChangeLog NEWS README TODO WHATS-HERE" \ + default + prune_libtool_files +} diff --git a/dev-games/ps2-packer/Manifest b/dev-games/ps2-packer/Manifest new file mode 100644 index 000000000000..c1c737ab555e --- /dev/null +++ b/dev-games/ps2-packer/Manifest @@ -0,0 +1 @@ +DIST ps2-packer-0.4.4-linux.tar.gz 56579 SHA256 c592e88005c6a07edca65566f461155268966523b9113c919e455233d7c1d7d1 SHA512 491f662af5364fe0177a9a6676a80ae218a941f68c00bb7bc375f2002e61ea98afa58d6dd0c1f7e225e5659bd28e82c25128058edebb9dfb1794d297f090a28d WHIRLPOOL 459f194ec560f35631b3518f943b16d43051e9621b48d0cc7b3cc08fb7de5baf92699a81f8aecf246486421177e91e7ff85788b8d48a932914866c88410b61ad diff --git a/dev-games/ps2-packer/metadata.xml b/dev-games/ps2-packer/metadata.xml new file mode 100644 index 000000000000..f3ae899a0823 --- /dev/null +++ b/dev-games/ps2-packer/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="github">ps2dev/ps2-packer</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/ps2-packer/ps2-packer-0.4.4.ebuild b/dev-games/ps2-packer/ps2-packer-0.4.4.ebuild new file mode 100644 index 000000000000..4d5d1c4a76cc --- /dev/null +++ b/dev-games/ps2-packer/ps2-packer-0.4.4.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 games + +DESCRIPTION="another ELF packer for the PS2" +HOMEPAGE="https://github.com/ps2dev/ps2-packer" +SRC_URI="mirror://gentoo/${P}-linux.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="strip" + +QA_TEXTRELS=" + ${GAMES_PREFIX_OPT:1}/ps2-packer/n2e-packer.so + ${GAMES_PREFIX_OPT:1}/ps2-packer/n2d-packer.so + ${GAMES_PREFIX_OPT:1}/ps2-packer/n2b-packer.so" + +QA_WX_LOAD=" + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2e-0088-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/lzo-0088-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2e-asm-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/null-0088-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2e-asm-one-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2e-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/zlib-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2b-0088-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2d-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/null-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2b-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/zlib-0088-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/lzo-1d00-stub + ${GAMES_PREFIX_OPT:1}/ps2-packer/stub/n2d-0088-stub" + +RDEPEND="sys-libs/glibc" + +S=${WORKDIR} + +src_install() { + insinto "${GAMES_PREFIX_OPT}"/${PN} + doins -r README.txt stub + exeinto "${GAMES_PREFIX_OPT}"/${PN} + doexe *.so ps2-packer + games_make_wrapper ${PN} "${GAMES_PREFIX_OPT}"/${PN}/${PN} + prepgamesdirs +} diff --git a/dev-games/quake4-sdk/Manifest b/dev-games/quake4-sdk/Manifest new file mode 100644 index 000000000000..fa7abcebd02b --- /dev/null +++ b/dev-games/quake4-sdk/Manifest @@ -0,0 +1 @@ +DIST quake4-linux-1.4.2-sdk.x86.run 65799543 SHA256 f8c0c5d26a253d4ccca341a8638e20e2a6e6bae5a8dc432de7b258a0a8db68e5 SHA512 21f09f71f040e22d9d4cfa09aa3d5d276d71716ed4eab5098682f8060eb0159d460f6f02b35d110689570f8c251141bf5d0eb1e4af8f68fcaa66b9e7bcb3855f WHIRLPOOL 39b0413513c90f4e0cac5569d22da476034a2fadbb56148eee229906f079f1494bca1d35d60f9fb70c3d701db16f689dd4bae6771f16700efab64606dd2f28e3 diff --git a/dev-games/quake4-sdk/metadata.xml b/dev-games/quake4-sdk/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/dev-games/quake4-sdk/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/dev-games/quake4-sdk/quake4-sdk-1.4.2.ebuild b/dev-games/quake4-sdk/quake4-sdk-1.4.2.ebuild new file mode 100644 index 000000000000..5f212d06cdb4 --- /dev/null +++ b/dev-games/quake4-sdk/quake4-sdk-1.4.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker games + +DESCRIPTION="Quake4 SDK" +HOMEPAGE="http://www.iddevnet.com/quake4/" +SRC_URI="mirror://idsoftware/quake4/source/linux/quake4-linux-${PV}-sdk.x86.run" + +LICENSE="QUAKE4" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="strip" + +S=${WORKDIR} + +src_unpack() { + unpack_makeself + rm -rf setup.{sh,data} || die +} + +src_install() { + insinto "${GAMES_PREFIX_OPT}/${PN}" + doins -r * + prepgamesdirs +} diff --git a/dev-games/simgear/Manifest b/dev-games/simgear/Manifest new file mode 100644 index 000000000000..df7d42c1d160 --- /dev/null +++ b/dev-games/simgear/Manifest @@ -0,0 +1 @@ +DIST simgear-3.4.0.tar.bz2 1057455 SHA256 927d66fe72aacb9dacced4506430bd5fc7726bc8d3d07d6f1866bc4cb11a5894 SHA512 9ebf49ea2f024f0e52a4d18ba6f77361e7b9f51a0e7238661b4b2fd9db0176bdd948612d9b4aec3ae4d8210676e7533dfc0308b9c71bdeb22e99a68b90d81320 WHIRLPOOL bb48b6640409a96816ade77c22a91f88c452d339165dd0241354c26ff27572a14538ecfd91265c239def4621657be8766c081cffc237711a691d7ef54461b548 diff --git a/dev-games/simgear/metadata.xml b/dev-games/simgear/metadata.xml new file mode 100644 index 000000000000..dc1208cc442b --- /dev/null +++ b/dev-games/simgear/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> +</maintainer> +<longdescription> +SimGear is a set of open-source libraries designed to be used as building blocks for +quickly assembling 3d simulations, games, and visualization applications. +</longdescription> +<use> + <flag name="subversion">Enables terrasync scenery downloader</flag> +</use> +</pkgmetadata> diff --git a/dev-games/simgear/simgear-3.4.0.ebuild b/dev-games/simgear/simgear-3.4.0.ebuild new file mode 100644 index 000000000000..579b7279af05 --- /dev/null +++ b/dev-games/simgear/simgear-3.4.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils + +DESCRIPTION="Development library for simulation games" +HOMEPAGE="http://www.simgear.org/" +SRC_URI="http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="amd64 ~ppc x86" +SLOT="0" +IUSE="debug subversion test" + +COMMON_DEPEND=" + dev-libs/expat + >=dev-games/openscenegraph-3.2.0 + media-libs/openal + sys-libs/zlib + virtual/opengl +" +DEPEND="${COMMON_DEPEND} + >=dev-libs/boost-1.44 +" +RDEPEND="${COMMON_DEPEND} + subversion? ( dev-vcs/subversion ) +" + +DOCS=(AUTHORS ChangeLog NEWS README Thanks) + +src_configure() { + local mycmakeargs=( + -ENABLE_PKGUTIL=OFF + -DENABLE_RTI=OFF + -DENABLE_SOUND=ON + -DSIMGEAR_HEADLESS=OFF + -DSIMGEAR_SHARED=ON + -DSYSTEM_EXPAT=ON + $(cmake-utils_use_enable test TESTS) + ) + cmake-utils_src_configure +} diff --git a/dev-games/t4k-common/Manifest b/dev-games/t4k-common/Manifest new file mode 100644 index 000000000000..fac74abea9d8 --- /dev/null +++ b/dev-games/t4k-common/Manifest @@ -0,0 +1 @@ +DIST t4k_common-0.1.1.tar.gz 629215 SHA256 42c155816dae2c5dad560faa50edaa1ca84536530283d37859c4b91e82675110 SHA512 ddf9c0ccf1b6a4ab9f009794262fef86587e31e5110e5a8041214d7c94c607b9f4ca5ec21f04254bfc00a625ab75a04a69b3dcaff9ec13dbb92d5d82b6e375cf WHIRLPOOL 689ea91fea9323b468377eb2ed0c71fbef90527959d65304d110ce70ca62e6173dd010cd449b23785d4a3bc9f2c5c63272ecc8a8032068073a5deec93ae3a7b0 diff --git a/dev-games/t4k-common/files/t4k-common-0.1.1-libpng.patch b/dev-games/t4k-common/files/t4k-common-0.1.1-libpng.patch new file mode 100644 index 000000000000..29991544ddbf --- /dev/null +++ b/dev-games/t4k-common/files/t4k-common-0.1.1-libpng.patch @@ -0,0 +1,18 @@ +--- src/t4k_common-0.1.1/src/t4k_loaders.c 2011-04-08 05:46:07.000000000 +0300 ++++ src.new/t4k_common-0.1.1/src/t4k_loaders.c 2012-05-02 10:35:41.836670434 +0300 +@@ -1028,12 +1028,9 @@ + { + png_init_io(png_ptr, fi); + +- info_ptr->width = surf->w; +- info_ptr->height = surf->h; +- info_ptr->bit_depth = 8; +- info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA; +- info_ptr->interlace_type = 1; +- info_ptr->valid = 0; /* will be updated by various png_set_FOO() functions */ ++ png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, ++ PNG_COLOR_TYPE_RGB_ALPHA, 1, ++ PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); + + png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr, + PNG_sRGB_INTENT_PERCEPTUAL); diff --git a/dev-games/t4k-common/metadata.xml b/dev-games/t4k-common/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/dev-games/t4k-common/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/dev-games/t4k-common/t4k-common-0.1.1.ebuild b/dev-games/t4k-common/t4k-common-0.1.1.ebuild new file mode 100644 index 000000000000..98732eb9625f --- /dev/null +++ b/dev-games/t4k-common/t4k-common-0.1.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="A library of code shared between tuxmath and tuxtype" +HOMEPAGE="http://tux4kids.alioth.debian.org/tuxmath/download.php" +SRC_URI="http://alioth.debian.org/frs/download.php/3540/t4k_common-${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="static-libs svg" + +RDEPEND="dev-libs/libxml2:2 + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf + media-libs/sdl-pango + svg? ( + gnome-base/librsvg:2 + media-libs/libpng:0 + x11-libs/cairo + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/t4k_common-${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-libpng.patch +} + +src_configure() { + econf \ + $(usex svg "" "--without-rsvg") \ + $(use_enable static-libs static) +} + +src_install() { + default + use static-libs || prune_libtool_files --all +} diff --git a/dev-games/tiled/Manifest b/dev-games/tiled/Manifest new file mode 100644 index 000000000000..0e36e5770d96 --- /dev/null +++ b/dev-games/tiled/Manifest @@ -0,0 +1,2 @@ +DIST tiled-0.11.0.tar.gz 2324668 SHA256 0d4b028902dfe08f18b542bfd9eaaf08886c1f685b2e176f438c3bf9d72e410d SHA512 c3eb230225a144938069b54bcedfe9927dd42358ca91d8922f56a4e566f0041b4b33aef3d87ef4b3b58634e9e98efd98a7132f419c2dd18d563f28393df066f8 WHIRLPOOL f28764e1d0904acecef826b4c35d7f56513c9b0cee682fbe1abf45989a1c6076d9eaa0285dff3daa64d88b8061dd3aec1fbae52208e1ea3510a2b4f167ed2270 +DIST tiled-0.12.3.tar.gz 2372813 SHA256 8078b266cc4902451e14b1efb6c8eba69f610e5056fcb74d1d30b5b236253200 SHA512 a8b5cb2201806e6b5a0e5079a9e12fbffcbb79f2df0a193e3c3e80424df1c8c4c94ae23c1553a82a1813d4bc65d9da54d79faa41a8983233aa67023e2348cc4b WHIRLPOOL 6deb8f40aea684619c5aee3746080f0543c8a7d3dfc37d76afbd447bc34923afdbb4b676553e6e33d187a0702dfa0514ec4b567a02a95dbd4a5e87bc28c7fa92 diff --git a/dev-games/tiled/metadata.xml b/dev-games/tiled/metadata.xml new file mode 100644 index 000000000000..0b4750a0187c --- /dev/null +++ b/dev-games/tiled/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>kensington@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">tiled</remote-id> + <remote-id type="github">bjorn/tiled</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/tiled/tiled-0.11.0.ebuild b/dev-games/tiled/tiled-0.11.0.ebuild new file mode 100644 index 000000000000..d33d1a1992e7 --- /dev/null +++ b/dev-games/tiled/tiled-0.11.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PLOCALES="cs de en es fr he it ja lv nl pt pt_BR ru zh zh_TW" +PYTHON_COMPAT=( python2_7 ) +inherit multilib l10n python-single-r1 qt4-r2 + +DESCRIPTION="A general purpose tile map editor" +HOMEPAGE="http://www.mapeditor.org/" +SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz" + +LICENSE="BSD-2 GPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=">=dev-qt/qtcore-4.7:4 + >=dev-qt/qtgui-4.7:4 + >=dev-qt/qtopengl-4.7:4 + sys-libs/zlib + python? ( ${PYTHON_DEPS} )" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS COPYING NEWS README.md ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + rm -r src/zlib || die + sed -e "s/^LANGUAGES =.*/LANGUAGES = $(l10n_get_locales)/" \ + -i translations/translations.pro || die +} + +src_configure() { + eqmake4 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)" +} + +src_install() { + qt4-r2_src_install + + if use examples ; then + docompress -x /usr/share/doc/${PF}/examples + dodoc -r examples + fi +} diff --git a/dev-games/tiled/tiled-0.12.3.ebuild b/dev-games/tiled/tiled-0.12.3.ebuild new file mode 100644 index 000000000000..a3f88b8f7bcf --- /dev/null +++ b/dev-games/tiled/tiled-0.12.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 + +PYTHON_COMPAT=( python2_7 ) +inherit fdo-mime multilib python-single-r1 qt4-r2 + +DESCRIPTION="A general purpose tile map editor" +HOMEPAGE="http://www.mapeditor.org/" +SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz" + +LICENSE="BSD-2 GPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=">=dev-qt/qtcore-4.7:4 + >=dev-qt/qtgui-4.7:4 + >=dev-qt/qtopengl-4.7:4 + sys-libs/zlib + python? ( ${PYTHON_DEPS} )" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS COPYING NEWS README.md ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + rm -r src/zlib || die +} + +src_configure() { + eqmake4 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)" +} + +src_install() { + qt4-r2_src_install + + if use examples ; then + docompress -x /usr/share/doc/${PF}/examples + dodoc -r examples + fi +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} diff --git a/dev-games/vamos/Manifest b/dev-games/vamos/Manifest new file mode 100644 index 000000000000..af87d15968d1 --- /dev/null +++ b/dev-games/vamos/Manifest @@ -0,0 +1 @@ +DIST vamos-0.7.1.tar.gz 1681074 SHA256 c81930b5ea376431c0abf868bf23153440eb6c44c1c47e3d9a53a5a15ab35824 SHA512 7560911e12636a4c530b6eeedc942be7121e39312d58f736a72d3b7fa2f632c962e9ccf714709f8f2e4335fa6d718f6870e7ba9e0c84f55c572e7915b4bf03e2 WHIRLPOOL 925b0038ae1638d270f54b7fee81526589bb4e2a67817834d17678063d2587da753d4e75237d610c4c111fabb1fcdb6b6e42417893f78245cd5f04100d7ada09 diff --git a/dev-games/vamos/files/vamos-0.7.1-as-needed.patch b/dev-games/vamos/files/vamos-0.7.1-as-needed.patch new file mode 100644 index 000000000000..868e9318cae8 --- /dev/null +++ b/dev-games/vamos/files/vamos-0.7.1-as-needed.patch @@ -0,0 +1,11 @@ +--- vamos-0.7.0.orig/media/Makefile.in ++++ vamos-0.7.0/media/Makefile.in +@@ -71,7 +71,7 @@ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' + am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)" + LTLIBRARIES = $(lib_LTLIBRARIES) +-libvamos_media_la_LIBADD = ++libvamos_media_la_LIBADD = ../geometry/libvamos-geometry.la + am_libvamos_media_la_OBJECTS = Ac3d.lo Sample.lo Texture_Image.lo \ + XML_Parser.lo + libvamos_media_la_OBJECTS = $(am_libvamos_media_la_OBJECTS) diff --git a/dev-games/vamos/files/vamos-0.7.1-gcc46.patch b/dev-games/vamos/files/vamos-0.7.1-gcc46.patch new file mode 100644 index 000000000000..bf2ec3c6f6aa --- /dev/null +++ b/dev-games/vamos/files/vamos-0.7.1-gcc46.patch @@ -0,0 +1,10 @@ +--- vamos-0.7.1.orig/geometry/Parameter.h ++++ vamos-0.7.1/geometry/Parameter.h +@@ -21,6 +21,7 @@ + #define PARAMETER_H + + #include <vector> ++#include <cstddef> + + /// A container for numbers passed from the command line. + namespace Vamos_Geometry diff --git a/dev-games/vamos/metadata.xml b/dev-games/vamos/metadata.xml new file mode 100644 index 000000000000..6561eaa5ffd0 --- /dev/null +++ b/dev-games/vamos/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">vamos</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/vamos/vamos-0.7.1.ebuild b/dev-games/vamos/vamos-0.7.1.ebuild new file mode 100644 index 000000000000..57abc9d3aaca --- /dev/null +++ b/dev-games/vamos/vamos-0.7.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="an automotive simulation framework" +HOMEPAGE="http://vamos.sourceforge.net/" +SRC_URI="mirror://sourceforge/vamos/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="static-libs" + +RDEPEND="virtual/opengl + virtual/glu + media-libs/freeglut + media-libs/libpng:0 + media-libs/libsdl[joystick,video] + media-libs/openal + dev-libs/boost + media-libs/freealut" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-gcc46.patch +} + +src_configure() { + econf \ + --disable-unit-tests \ + $(use_enable static-libs static) +} + +src_install() { + default + dobin caelum/.libs/caelum + newdoc caelum/README README.caelum + dodoc AUTHORS ChangeLog README TODO + prune_libtool_files +} diff --git a/dev-games/wfmath/Manifest b/dev-games/wfmath/Manifest new file mode 100644 index 000000000000..f864c99531bd --- /dev/null +++ b/dev-games/wfmath/Manifest @@ -0,0 +1 @@ +DIST wfmath-1.0.1.tar.bz2 389227 SHA256 1503f0efaf9b27bf96547888062492c2412aebc32a0e407d58d50b84e3e2a506 SHA512 4017a572f946182c7aed4ffb8dfe139f85f5bb946a42bd593579030ee9f5617a07859f62b1169322d613919b37a0ff39079aa989f960d22b6cedfb9c3e7701bc WHIRLPOOL 3c3c78bed0d8d5c70cf4343b54e292bf92856b6629924f75c6c3fc769ae60d816f793c9cbe1fb3161491a90b06d52b1da58557c9ac99a9394fa61baef1946dcc diff --git a/dev-games/wfmath/metadata.xml b/dev-games/wfmath/metadata.xml new file mode 100644 index 000000000000..9e1c2a2c218e --- /dev/null +++ b/dev-games/wfmath/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +The primary focus of WFMath is geometric objects. Thus, it includes several +shapes (boxes, balls, lines), in addition to the basic math objects that are +used to build these shapes (points, vectors, matricies). +Most of the library classes can be divided into two sorts. The first kind are +basic mathematical objects, whose members are all fundamental types. The second +kind are shapes, which implement the shape class interface described in +doc/shape.h. +</longdescription> + <upstream> + <remote-id type="sourceforge">worldforge</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-games/wfmath/wfmath-1.0.1.ebuild b/dev-games/wfmath/wfmath-1.0.1.ebuild new file mode 100644 index 000000000000..10ad211a472d --- /dev/null +++ b/dev-games/wfmath/wfmath-1.0.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +DESCRIPTION="Worldforge math library" +HOMEPAGE="http://www.worldforge.org/dev/eng/libraries/wfmath" +SRC_URI="mirror://sourceforge/worldforge/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc static-libs" + +RDEPEND="" +DEPEND="doc? ( app-doc/doxygen ) + virtual/pkgconfig" + +src_configure() { + econf \ + $(use_enable static-libs static) +} + +src_compile() { + emake + if use doc; then + emake -C doc docs + fi +} + +src_install() { + default + if use doc; then + dohtml doc/html/* + fi + if ! use static-libs ; then + find "${D}" -type f -name '*.la' -exec rm {} + \ + || die "la removal failed" + fi +} |