summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-02-12 21:10:44 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-02-12 21:10:44 +0000
commit42fe41b456657b2ff2ad6cb93886db580a777e0d (patch)
treea6028a0ef36820d74ed5e416225b25d7a252e179 /games-rpg/adonthell
parentVersion bump. (diff)
downloadgentoo-2-42fe41b456657b2ff2ad6cb93886db580a777e0d.tar.gz
gentoo-2-42fe41b456657b2ff2ad6cb93886db580a777e0d.tar.bz2
gentoo-2-42fe41b456657b2ff2ad6cb93886db580a777e0d.zip
Use external SDL_ttf and SDL_mixer, bug #166536
(Portage version: 2.1.2-r9)
Diffstat (limited to 'games-rpg/adonthell')
-rw-r--r--games-rpg/adonthell/ChangeLog11
-rw-r--r--games-rpg/adonthell/adonthell-0.3.4a-r1.ebuild (renamed from games-rpg/adonthell/adonthell-0.3.4a.ebuild)23
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.4a-external-libs.patch114
-rw-r--r--games-rpg/adonthell/files/digest-adonthell-0.3.4a-r1 (renamed from games-rpg/adonthell/files/digest-adonthell-0.3.4a)0
4 files changed, 133 insertions, 15 deletions
diff --git a/games-rpg/adonthell/ChangeLog b/games-rpg/adonthell/ChangeLog
index ab6c40511d71..1cb0e5c85a86 100644
--- a/games-rpg/adonthell/ChangeLog
+++ b/games-rpg/adonthell/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-rpg/adonthell
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/ChangeLog,v 1.13 2006/11/02 23:49:40 nyhm Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/ChangeLog,v 1.14 2007/02/12 21:10:44 nyhm Exp $
+
+*adonthell-0.3.4a-r1 (12 Feb 2007)
+
+ 12 Feb 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/adonthell-0.3.4a-external-libs.patch, -adonthell-0.3.4a.ebuild,
+ +adonthell-0.3.4a-r1.ebuild:
+ Use external SDL_ttf and SDL_mixer, bug #166536
02 Nov 2006; Tristan Heaven <nyhm@gentoo.org> adonthell-0.3.4a.ebuild:
Add nls dependencies
diff --git a/games-rpg/adonthell/adonthell-0.3.4a.ebuild b/games-rpg/adonthell/adonthell-0.3.4a-r1.ebuild
index f3251e0d06ce..688d24b194b4 100644
--- a/games-rpg/adonthell/adonthell-0.3.4a.ebuild
+++ b/games-rpg/adonthell/adonthell-0.3.4a-r1.ebuild
@@ -1,25 +1,21 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.4a.ebuild,v 1.8 2006/11/02 23:49:40 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.4a-r1.ebuild,v 1.1 2007/02/12 21:10:44 nyhm Exp $
-WANT_AUTOCONF="latest"
-WANT_AUTOMAKE="latest"
inherit autotools eutils games
DESCRIPTION="roleplaying game engine"
HOMEPAGE="http://adonthell.linuxgames.com/"
-SRC_URI="http://savannah.nongnu.org/download/adonthell/${PN}-src-${PV}.tar.gz"
+SRC_URI="http://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE="doc nls"
-RDEPEND="dev-lang/python
- >=media-libs/freetype-2
+RDEPEND="media-libs/sdl-ttf
+ media-libs/sdl-mixer
media-libs/libsdl
- media-libs/libvorbis
- media-libs/libogg
dev-lang/swig
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
@@ -37,17 +33,18 @@ src_unpack() {
epatch \
"${FILESDIR}"/${PV}-configure.in.patch \
"${FILESDIR}"/${P}-gcc-41.patch \
- "${FILESDIR}"/${P}-inline.patch
+ "${FILESDIR}"/${P}-inline.patch \
+ "${FILESDIR}"/${P}-external-libs.patch
+ rm -f src/SDL_ttf.* # SDL_ttf
+ rm -f src/{music*,SDL_mixer.h,wavestream*,mixer.c} # SDL_mixer
rm -f ac{local,include}.m4
AT_M4DIR="m4" eautoreconf
}
src_compile() {
- # the fugly --with-vorbis is to work around #98689
egamesconf \
--disable-dependency-tracking \
--disable-py-debug \
- --with-vorbis="${T}" \
$(use_enable nls) \
$(use_enable doc) \
|| die
@@ -57,7 +54,7 @@ src_compile() {
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
- keepdir "${GAMES_DATADIR}/${PN}/games"
+ keepdir "${GAMES_DATADIR}"/${PN}/games
dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
prepgamesdirs
}
diff --git a/games-rpg/adonthell/files/adonthell-0.3.4a-external-libs.patch b/games-rpg/adonthell/files/adonthell-0.3.4a-external-libs.patch
new file mode 100644
index 000000000000..d1ab6757d971
--- /dev/null
+++ b/games-rpg/adonthell/files/adonthell-0.3.4a-external-libs.patch
@@ -0,0 +1,114 @@
+--- configure.in
++++ configure.in
+@@ -50,10 +50,6 @@
+ AC_ARG_ENABLE(py-debug,
+ [ --disable-py-debug Disable debugging of Python scripts (enabled by default)],
+ pydebug=$enableval, pydebug=yes)
+-AC_ARG_WITH(ogg,
+-[ --with-ogg=DIR Set where the Ogg library is located])
+-AC_ARG_WITH(vorbis,
+-[ --with-vorbis=DIR Set where the Vorbis library is located])
+ AC_ARG_WITH(data-dir,
+ [ --with-data-dir=DIR Directory where datas will be installed],
+ gamedatadir="$withval", gamedatadir=none)
+@@ -129,28 +125,16 @@
+ )
+
+ dnl *******************
+-dnl Check for FreeType2
++dnl Check for SDL_ttf
+ dnl *******************
+
+-AC_CHECK_FT2(6.0.0,
+- :,
+- AC_MSG_ERROR([*** Freetype version >= 6.0.0 not found!])
+-)
++AC_CHECK_LIB(SDL_ttf, TTF_Init,,exit 1)
+
+ dnl *******************
+-dnl Check for OggVorbis
++dnl Check for SDL_mixer
+ dnl *******************
+
+-OGG_VORBIS=no
+-XIPH_PATH_VORBIS(
+- OGG_VORBIS="yes"
+- ogg_music="enabled"
+- OGG_LIBS="$VORBISFILE_LIBS $VORBIS_LIBS"
+- OGG_DEFS="-DOGG_MUSIC"
+- OGG_CFLAGS="$VORBIS_CFLAGS",
+- AC_MSG_RESULT(Disabling OggVorbis support)
+- ogg_music="disabled"
+-)
++AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio,,exit 1)
+
+ dnl ********************
+ dnl Check for Python.
+@@ -377,11 +361,7 @@
+ AC_CHECK_HEADERS([pthread.h])
+ fi
+
+-if test x$OGG_VORBIS = xyes; then
+- AC_CHECK_HEADERS([vorbis/vorbisfile.h])
+-fi
+
+-AM_CONDITIONAL(HAVE_OGG_VORBIS, test x$OGG_VORBIS = xyes)
+
+ dnl ********************************
+ dnl Generate our compiler arguements
+@@ -396,9 +376,6 @@
+ AC_SUBST(SDL_CFLAGS)
+ AC_SUBST(SDL_LIBS)
+ AC_SUBST(SDL_DEFS)
+-AC_SUBST(OGG_CFLAGS)
+-AC_SUBST(OGG_LIBS)
+-AC_SUBST(OGG_DEFS)
+ AC_SUBST(PY_CFLAGS)
+ AC_SUBST(PY_LIBS)
+ AC_SUBST(P_SWIG)
+@@ -427,11 +404,9 @@
+ echo "SDL ....................... : `$SDL_CONFIG --version`"
+ echo "Python .................... : $PY_VERSION"
+ echo "Python debugging .......... : $pydebug"
+-echo "Freetype .................. : `freetype-config --version`"
+ if test x$haveswig = xyes; then
+ echo "SWIG ...................... : $SWIG_VERSION"
+ fi
+-echo "Ogg music ................. : $ogg_music"
+ echo "Building API doc .......... : $builddoc"
+ if test x$memleaks = xyes; then
+ echo "Test for Memory Leaks ..... : enabled"
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -6,7 +6,7 @@
+
+ EXTRA_DIST = .indent.pro prefs.l py_adonthell.i
+
+-AM_CPPFLAGS =$(SDL_DEFS) $(OGG_DEFS) $(SDL_CFLAGS) $(OGG_CFLAGS) $(PY_CFLAGS) $(FT2_CFLAGS)
++AM_CPPFLAGS =$(SDL_DEFS) $(SDL_CFLAGS) $(PY_CFLAGS)
+
+ noinst_LIBRARIES = libadonthell.a
+
+@@ -24,7 +24,7 @@
+ win_base.h win_border.h win_container.h str_hash.h win_font.h win_image.h \
+ win_label.h win_mapview.h label.h label_input.h win_scrollbar.h win_scroll.h \
+ win_select.h win_theme.h win_keys.h win_event.h win_types.h win_write.h \
+-win_ttf.h win_manager.h win_object.h window.h win_wrappers.h yarg.h SDL_ttf.h
++win_ttf.h win_manager.h win_object.h window.h win_wrappers.h yarg.h
+
+ libadonthell_a_SOURCES = adonthell.cc animation.cc audio.cc \
+ character_base.cc character.cc data_screen.cc dialog.cc dialog_screen.cc \
+@@ -39,11 +39,9 @@
+ win_background.cc win_base.cc win_border.cc win_container.cc win_font.cc \
+ win_ttf.cc win_keys.cc win_manager.cc win_scrollbar.cc win_scroll.cc \
+ win_select.cc \
+-win_theme.cc win_event.cc yarg.cc mixer.c music.c music_cmd.c music_cmd.h \
+-music_ogg.c music_ogg.h wave.h wavestream.c wavestream.h SDL_mixer.h \
+-SDL_ttf.c $(headers)
++win_theme.cc win_event.cc yarg.cc $(headers)
+
+-libadonthell_LDADD = $(SDL_LIBS) $(OGG_LIBS) $(PY_LIBS) $(INTLLIBS) $(FT2_LIBS)
++libadonthell_LDADD = $(SDL_LIBS) $(PY_LIBS) $(INTLLIBS)
+
+ adonthell_LDADD = libadonthell.a $(libadonthell_LDADD)
+
diff --git a/games-rpg/adonthell/files/digest-adonthell-0.3.4a b/games-rpg/adonthell/files/digest-adonthell-0.3.4a-r1
index ce596c647843..ce596c647843 100644
--- a/games-rpg/adonthell/files/digest-adonthell-0.3.4a
+++ b/games-rpg/adonthell/files/digest-adonthell-0.3.4a-r1