summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-12-30 02:20:50 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-12-30 02:20:50 +0000
commit7e5b275abf74ac42eb06abf49d2cfbf9beca8dba (patch)
tree4b61ebc51b83df0d568e0864bebce18cfc50ccf5 /games-arcade/smc
parentx86 stable, bug #198687 (diff)
downloadgentoo-2-7e5b275abf74ac42eb06abf49d2cfbf9beca8dba.tar.gz
gentoo-2-7e5b275abf74ac42eb06abf49d2cfbf9beca8dba.tar.bz2
gentoo-2-7e5b275abf74ac42eb06abf49d2cfbf9beca8dba.zip
Version bump
(Portage version: 2.1.4_rc11)
Diffstat (limited to 'games-arcade/smc')
-rw-r--r--games-arcade/smc/ChangeLog8
-rw-r--r--games-arcade/smc/files/digest-smc-1.46
-rw-r--r--games-arcade/smc/files/smc-1.4-link-libpng.patch15
-rw-r--r--games-arcade/smc/smc-1.4.ebuild59
4 files changed, 87 insertions, 1 deletions
diff --git a/games-arcade/smc/ChangeLog b/games-arcade/smc/ChangeLog
index f96403fcc241..fe12373cff5f 100644
--- a/games-arcade/smc/ChangeLog
+++ b/games-arcade/smc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-arcade/smc
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/smc/ChangeLog,v 1.3 2007/12/02 00:18:36 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/smc/ChangeLog,v 1.4 2007/12/30 02:20:48 nyhm Exp $
+
+*smc-1.4 (30 Dec 2007)
+
+ 30 Dec 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/smc-1.4-link-libpng.patch, +smc-1.4.ebuild:
+ Version bump
*smc-1.3 (02 Dec 2007)
diff --git a/games-arcade/smc/files/digest-smc-1.4 b/games-arcade/smc/files/digest-smc-1.4
new file mode 100644
index 000000000000..53f4570269c1
--- /dev/null
+++ b/games-arcade/smc/files/digest-smc-1.4
@@ -0,0 +1,6 @@
+MD5 bb007603c723eddd6ccb007cc5f01cd6 SMC_music_4.0_high.zip 29959059
+RMD160 7ce06d59f73755e26a33cb786cf10cdb949c9d41 SMC_music_4.0_high.zip 29959059
+SHA256 5fd3c4b1f09a7c9ceef4b4a5e42bd3ece4278f7fbc034871478f78bd54e377b0 SMC_music_4.0_high.zip 29959059
+MD5 39250214ee0892cd9f015c43878b34fb smc-1.4_no_music.tar.bz2 23982216
+RMD160 2eeb1f094e0f4c0425c9234ed6031c2fecd0a369 smc-1.4_no_music.tar.bz2 23982216
+SHA256 d3d16aeb01a15d5afbed6fbc8a6dce62060ef1e7fcb68a0c4439c2efa5c74a9d smc-1.4_no_music.tar.bz2 23982216
diff --git a/games-arcade/smc/files/smc-1.4-link-libpng.patch b/games-arcade/smc/files/smc-1.4-link-libpng.patch
new file mode 100644
index 000000000000..cf576b0c57de
--- /dev/null
+++ b/games-arcade/smc/files/smc-1.4-link-libpng.patch
@@ -0,0 +1,15 @@
+Index: configure.ac
+===================================================================
+--- configure.ac (revision 907)
++++ configure.ac (working copy)
+@@ -26,6 +26,10 @@
+ CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
+ LIBS="$LIBS $SDL_LIBS"
+
++# Check for libpng
++AC_CHECK_LIB(png, png_init_io, ,
++ AC_MSG_ERROR([Unable to find libpng]))
++
+ # Check for SDL_image library
+ AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW, ,
+ AC_MSG_ERROR([Unable to find the SDL_image library with PNG support]))
diff --git a/games-arcade/smc/smc-1.4.ebuild b/games-arcade/smc/smc-1.4.ebuild
new file mode 100644
index 000000000000..5fff0d680e6c
--- /dev/null
+++ b/games-arcade/smc/smc-1.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/smc/smc-1.4.ebuild,v 1.1 2007/12/30 02:20:48 nyhm Exp $
+
+inherit autotools eutils games
+
+MY_P=${P}_no_music
+MUSIC_P=SMC_music_4.0_high
+DESCRIPTION="Secret Maryo Chronicles"
+HOMEPAGE="http://www.secretmaryo.org/"
+SRC_URI="mirror://sourceforge/smclone/${MY_P}.tar.bz2
+ mirror://sourceforge/smclone/${MUSIC_P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-games/cegui-0.5
+ dev-libs/boost
+ virtual/opengl
+ virtual/glu
+ media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ app-arch/unzip"
+
+pkg_setup() {
+ games_pkg_setup
+ if ! built_with_use media-libs/sdl-image png ; then
+ die "Please emerge sdl-image with USE=png"
+ fi
+ if ! built_with_use dev-games/cegui opengl ; then
+ die "Please emerge cegui with USE=opengl"
+ fi
+ if ! built_with_use dev-games/cegui devil ; then
+ die "Please emerge cegui with USE=devil"
+ fi
+}
+
+src_unpack() {
+ unpack ${MY_P}.tar.bz2
+ cd "${S}"
+ unpack ${MUSIC_P}.zip
+ epatch "${FILESDIR}"/${P}-link-libpng.patch
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ newicon data/icon/window_32.png ${PN}.png
+ make_desktop_entry ${PN} "Secret Maryo Chronicles"
+ dodoc docs/*.txt
+ dohtml docs/{*.css,*.html}
+ prepgamesdirs
+}