summaryrefslogtreecommitdiff
path: root/games-arcade/emilia-pinball
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/emilia-pinball
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/emilia-pinball')
-rw-r--r--games-arcade/emilia-pinball/Manifest7
-rw-r--r--games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild60
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch30
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch13
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch64
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch11
-rw-r--r--games-arcade/emilia-pinball/metadata.xml11
7 files changed, 196 insertions, 0 deletions
diff --git a/games-arcade/emilia-pinball/Manifest b/games-arcade/emilia-pinball/Manifest
new file mode 100644
index 000000000000..d5cb610045d9
--- /dev/null
+++ b/games-arcade/emilia-pinball/Manifest
@@ -0,0 +1,7 @@
+AUX emilia-pinball-0.3.1-gcc46.patch 887 BLAKE2B 1b850fc066b2f33edde6c5f9e0ce58af86b4ae5eda7bb77b3d364e45548572b48f34a7e0a50f9ca660585ca0282e0ec9c3031449ca9ffa7b60d2c3cae920c794 SHA512 758d2d42f40b7d020aeeef75331b6a392c18eb9f9f34242d449ee233ef2f1b12900b69d572a40930a6dbd986e98be9258ccb2130746e36c8729c011ce294fda3
+AUX emilia-pinball-0.3.1-glibc210.patch 379 BLAKE2B 5eb1a6885265f7c5ca3ca73108ba54890e0f1551e8b0efcfca62637385b9700a900ce7181c7f5a7100f265c82df7b0ef98765bc6bd05ad079e7941b12d384541 SHA512 a949474aa76dc0b503635c40fb8b641daaab59b51d1d680fc9ac3f6e94566f9064526fe21107e5e549a02c3264dfa0fc6d94a5f8a833a88defd4e9b3a6bb9be0
+AUX emilia-pinball-0.3.1-libtool.patch 2371 BLAKE2B 625fc092dfe779ca1cb7b17c305e21de5113314f59ea7e2cd214b59a1c49b45668b3a76e9e56141d18df0e42eb72c295cf84aa4df50d7e070b6b1864250b506b SHA512 c60940620ba70c725774c9e0dfb930d2e5760fad9e64ec951ca3ab973f3e9f0884d88c0e7b4d8bf01f91651a7e5bd2111bcf5a38a63b46319436c7d2f270d71e
+AUX emilia-pinball-0.3.1-parallel.patch 428 BLAKE2B 368bf4e511f362e3daff200bee164fc0fa5c8bedde5f81cbe8778159e5f5157ff7a48b611541942703cc76f78e85b8e1b8bc42b6a305770feaf4577204576071 SHA512 8c8d0ef2bbb59579cf3e0f12e624bc28c27e810cad2d140a4c85f998d482101d97bdb7109fd01fb4bb9f2e77369c503b51c5a704b2f0768e570e7eb094f4f3c6
+DIST pinball-0.3.1.tar.gz 6082982 BLAKE2B 307fd8fa6a6a64a15423f2cdacf6711affec4d0a94beca4c660316fa2db268b857fe80d3a672a078fd4454e858fdbf235ab3c62ba9695ee6df422b56536ba2d2 SHA512 d54f2635f583be8a7e4bf3463c69c1ab368e1c069dd7c4edffb95df0448faf7e82ddb8f8607d22a7336e2db176134555ca65b613e9d008b38fecb8ad5a818498
+EBUILD emilia-pinball-0.3.1-r1.ebuild 1480 BLAKE2B 52e56f3be42f2acff04ae8404d89709c40fb99b7d5979a5a42bf0befaa9cdf5452d60fde8ed101fd3c401e0d6db7e71ce72c363c46435f23442ca9e4fbb973c7 SHA512 0084ee59a4bddf993b55da586c70182d6f6f9a70c975e1cb1ae6527156e6286d38abaf09eb2189d7dd65b17fee2ffa4fd3353d4eb2c3ccdc4918e85e07c24984
+MISC metadata.xml 330 BLAKE2B 7deaad70c752f4c41009dfd6ec073f972e9ee484d4497c0b23d184cd48bdb5aaa45f2644c412ab2a885aea6655e1a737a612bb65b3d8147272f63a2de932825c SHA512 8432311fd9fb74150e0571245c2afda26de63a3a3671905cb7f221984933e5971c1f5f355517c54b7c31de3a3d3349d06116a4e67c57c44489147af5ae80e8cf
diff --git a/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..519b304f6840
--- /dev/null
+++ b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+MY_PN=${PN/emilia-/}
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="SDL OpenGL pinball game"
+HOMEPAGE="http://pinball.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pinball/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# Drop the libtool dep once libltdl goes stable.
+RDEPEND="virtual/opengl
+ x11-libs/libSM
+ media-libs/libsdl[joystick,opengl,video,X]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 )"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i -e '/dnl/d' {src,test}/Makefile.am || die #334899
+ epatch "${FILESDIR}"/${P}-glibc210.patch \
+ "${FILESDIR}"/${P}-libtool.patch \
+ "${FILESDIR}"/${P}-gcc46.patch \
+ "${FILESDIR}"/${P}-parallel.patch
+ rm -rf libltdl
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf --with-x
+}
+
+src_compile() {
+ emake CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+ default
+ dosym "${GAMES_BINDIR}"/pinball "${GAMES_BINDIR}"/emilia-pinball
+ mv "${D}/${GAMES_PREFIX}/include" "${D}/usr/" || die
+ dodir /usr/bin
+ mv "${D}/${GAMES_BINDIR}/pinball-config" "${D}/usr/bin/" || die
+ sed -i \
+ -e 's:-I${prefix}/include/pinball:-I/usr/include/pinball:' \
+ "${D}"/usr/bin/pinball-config || die
+ newicon data/pinball.xpm ${PN}.xpm
+ make_desktop_entry emilia-pinball "Emilia pinball"
+ prepgamesdirs
+}
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch
new file mode 100644
index 000000000000..d78779197fce
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch
@@ -0,0 +1,30 @@
+--- base/SignalSender.cpp.old 2011-04-26 09:39:24.303339444 +0200
++++ base/SignalSender.cpp 2011-04-26 09:39:51.261063162 +0200
+@@ -11,6 +11,7 @@
+ #include "SignalSender.h"
+ #include "Group.h"
+ #include "Behavior.h"
++#include <cstddef>
+
+ SignalSender * SignalSender::p_SignalSender = NULL;
+
+--- base/Behavior.cpp.old 2011-04-26 09:36:27.129006665 +0200
++++ base/Behavior.cpp 2011-04-26 09:36:48.855396752 +0200
+@@ -9,6 +9,7 @@
+ #include "Private.h"
+ #include "Behavior.h"
+ #include "Group.h"
++#include <cstddef>
+
+ Behavior::Behavior() {
+ //EM_COUT("Behavior::Behavior", 1);
+--- base/BehaviorVisitor.cpp.old 2011-04-26 09:37:39.759653248 +0200
++++ base/BehaviorVisitor.cpp 2011-04-26 09:37:54.481594952 +0200
+@@ -9,6 +9,7 @@
+ #include "BehaviorVisitor.h"
+ #include "Behavior.h"
+ #include "Group.h"
++#include <cstddef>
+
+ BehaviorVisitor * BehaviorVisitor::p_BehaviorVisitor = NULL;
+
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch
new file mode 100644
index 000000000000..800dbeae21a7
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch
@@ -0,0 +1,13 @@
+--- base/Config.cpp
++++ base/Config.cpp
+@@ -423,8 +423,8 @@
+ m_sDataDir = string(EM_DATADIR) + "/";
+ m_sExeDir = "./";
+ if ( *( m_sDataDir.c_str() ) != '/' ) {
+- char* ptr=0;
+- char* ptrw = 0;
++ const char* ptr=0;
++ const char* ptrw = 0;
+ //cout<<"relative to exe file"<<endl;
+ ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32
+ #ifdef WIN32
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch
new file mode 100644
index 000000000000..437e4eb684a4
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch
@@ -0,0 +1,64 @@
+diff -ur pinball-0.3.1.orig/configure.ac pinball-0.3.1/configure.ac
+--- pinball-0.3.1.orig/configure.ac 2003-11-21 09:40:18.000000000 +0200
++++ pinball-0.3.1/configure.ac 2010-03-05 20:41:24.000000000 +0200
+@@ -14,18 +14,13 @@
+ CFLAGS="-g -W -Wall -O2"
+ CXXFLAGS="-g -W -Wall -O2"
+
+-AC_CONFIG_SUBDIRS(libltdl)
+-
+ dnl Checks for programs.
+ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_INSTALL
+-AC_LIBTOOL_DLOPEN
+-AC_LIBLTDL_CONVENIENCE
+-AC_PROG_LIBTOOL
+
+-AC_SUBST(INCLTDL)
+-AC_SUBST(LIBLTDL)
++LT_PREREQ([2.2.6])
++LT_INIT([dlopen])
+
+ dnl *******************************************
+ dnl PATHS AND DIRS ****************************
+diff -ur pinball-0.3.1.orig/Makefile.am pinball-0.3.1/Makefile.am
+--- pinball-0.3.1.orig/Makefile.am 2003-12-10 12:15:35.000000000 +0200
++++ pinball-0.3.1/Makefile.am 2010-03-05 20:36:48.000000000 +0200
+@@ -1,6 +1,6 @@
+ AUTOMAKE_OPTIONS = gnu
+
+-SUBDIRS = libltdl addon base data src test
++SUBDIRS = addon base data src test
+
+ EXTRA_DIST = bootstrap pinball.spec clean pinball.desktop
+
+diff -ur pinball-0.3.1.orig/src/Makefile.am pinball-0.3.1/src/Makefile.am
+--- pinball-0.3.1.orig/src/Makefile.am 2003-11-20 18:46:17.000000000 +0200
++++ pinball-0.3.1/src/Makefile.am 2010-03-05 20:37:08.000000000 +0200
+@@ -7,9 +7,9 @@
+
+ pinlib_LIBRARIES = libemilia_pin.a
+
+-INCLUDES = -I../base -I../addon @INCLTDL@
++INCLUDES = -I../base -I../addon
+
+-pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@
++pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
+ pinball_LDFLAGS = -export-dynamic
+
+ pinball_SOURCES = Pinball.cpp
+diff -ur pinball-0.3.1.orig/test/Makefile.am pinball-0.3.1/test/Makefile.am
+--- pinball-0.3.1.orig/test/Makefile.am 2003-11-20 18:46:17.000000000 +0200
++++ pinball-0.3.1/test/Makefile.am 2010-03-05 20:36:38.000000000 +0200
+@@ -6,8 +6,8 @@
+ noinst_PROGRAMS = scale simple light texture load explode collision signal billboard font thread menu joy sound trans math misc varray unittest
+ dnl noinst_PROGRAMS = unittest
+
+-INCLUDES = -I../base -I../addon -I../src @INCLTDL@
+-LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@
++INCLUDES = -I../base -I../addon -I../src
++LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
+
+ testlib_LTLIBRARIES = libModuleTest.la
+
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch
new file mode 100644
index 000000000000..3dfef56090c9
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.am.old 2011-04-26 10:46:05.102070461 +0200
++++ src/Makefile.am 2011-04-26 10:46:16.872813136 +0200
+@@ -9,7 +9,7 @@
+
+ INCLUDES = -I../base -I../addon
+
+-pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
++pinball_LDADD = libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
+ pinball_LDFLAGS = -export-dynamic
+
+ pinball_SOURCES = Pinball.cpp
diff --git a/games-arcade/emilia-pinball/metadata.xml b/games-arcade/emilia-pinball/metadata.xml
new file mode 100644
index 000000000000..551a8380f3c8
--- /dev/null
+++ b/games-arcade/emilia-pinball/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pinball</remote-id>
+ </upstream>
+</pkgmetadata>