diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-05 18:41:15 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-05 18:41:15 +0000 |
commit | c9f6ab5ceacc2adc16f5ed65c7049c70cf538e16 (patch) | |
tree | 686563316bc489446d97bad86e2a1b4aa2f720e0 /games-arcade | |
parent | Moved from sunrise overlay. Fixes bug #283449 (diff) | |
download | gentoo-2-c9f6ab5ceacc2adc16f5ed65c7049c70cf538e16.tar.gz gentoo-2-c9f6ab5ceacc2adc16f5ed65c7049c70cf538e16.tar.bz2 gentoo-2-c9f6ab5ceacc2adc16f5ed65c7049c70cf538e16.zip |
Use system libltdl wrt #252403, thanks to Diego E. 'Flameeyes' Pettenò for reporting.
(Portage version: 2.2_rc63/cvs/Linux x86_64)
Diffstat (limited to 'games-arcade')
3 files changed, 134 insertions, 2 deletions
diff --git a/games-arcade/emilia-pinball/ChangeLog b/games-arcade/emilia-pinball/ChangeLog index d32ff80fedc2..83c910489dfb 100644 --- a/games-arcade/emilia-pinball/ChangeLog +++ b/games-arcade/emilia-pinball/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for games-arcade/emilia-pinball -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/ChangeLog,v 1.16 2009/06/24 23:39:15 mr_bones_ Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/ChangeLog,v 1.17 2010/03/05 18:41:15 ssuominen Exp $ + +*emilia-pinball-0.3.1-r1 (05 Mar 2010) + + 05 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> + +emilia-pinball-0.3.1-r1.ebuild, + +files/emilia-pinball-0.3.1-libtool.patch: + Use system libltdl wrt #252403, thanks to Diego E. 'Flameeyes' Pettenò + for reporting. 24 Jun 2009; Michael Sterrett <mr_bones_@gentoo.org> +files/emilia-pinball-0.3.1-glibc210.patch, emilia-pinball-0.3.1.ebuild: 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..f7d58c4503bd --- /dev/null +++ b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild,v 1.1 2010/03/05 18:41:15 ssuominen Exp $ + +EAPI=2 +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="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="virtual/opengl + x11-libs/libSM + media-libs/libsdl[opengl,video,X] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + >=sys-devel/libtool-2.2.6b" +DEPEND="${RDEPEND} + x11-libs/libXt" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-glibc210.patch \ + "${FILESDIR}"/${P}-libtool.patch + rm -rf libltdl + eautoreconf +} + +src_configure() { + egamesconf --with-x +} + +src_compile() { + emake -j1 CXXFLAGS="${CXXFLAGS}" || die "emake failed" +} + +src_install() { + dodoc README || die "dodoc failed" + emake DESTDIR="${D}" install || die "emake install failed" + dosym "${GAMES_BINDIR}"/pinball "${GAMES_BINDIR}"/emilia-pinball + mv "${D}/${GAMES_PREFIX}/include" "${D}/usr/" \ + || die "mv failed (include)" + dodir /usr/bin + mv "${D}/${GAMES_BINDIR}/pinball-config" "${D}/usr/bin/" \ + || die "mv failed (bin)" + sed -i \ + -e 's:-I${prefix}/include/pinball:-I/usr/include/pinball:' \ + "${D}"/usr/bin/pinball-config || die "sed failed" + 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-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 + |