# ChangeLog for games-arcade/smclone
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/smclone/ChangeLog,v 1.10 2006/11/20 20:42:12 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/smclone/ChangeLog,v 1.11 2006/11/20 22:15:18 nyhm Exp $
+
+*smclone-0.99.3 (20 Nov 2006)
+
+ 20 Nov 2006; Tristan Heaven <nyhm@gentoo.org>
+ +files/smclone-0.99.3-build.patch, +files/smclone-0.99.3-paths.patch,
+ +smclone-0.99.3.ebuild:
+ Version bump, bug #138483
20 Nov 2006; <blubb@gentoo.org> smclone-0.97.ebuild:
stable on amd64
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX smclone-0.97-gentoo-paths.patch 1877 RMD160 18cd7c5c4a6ffd0428491f30d70f86a8e93ec88a SHA1 6c946bcf7f8f876df58dade064bcde00390d7833 SHA256 019ec95e0f7b0b85558b5684e0e4b3d0b31ffa0aa54f9c836cd1ef514e4b40e8
MD5 b6a6d58c54c9b3795df75cc1995bb51f files/smclone-0.97-gentoo-paths.patch 1877
RMD160 18cd7c5c4a6ffd0428491f30d70f86a8e93ec88a files/smclone-0.97-gentoo-paths.patch 1877
MD5 7bcdde4dd7960b5f497476d2509a324c files/smclone-0.97-use-HOME.patch 2606
RMD160 75b3fa1b7c7eaee39608cf9ac000f6da10175a93 files/smclone-0.97-use-HOME.patch 2606
SHA256 fa16b2aab67892cc9176e5769772f9b4000efe61dcb0fb3f2de02279bcc35c6b files/smclone-0.97-use-HOME.patch 2606
+AUX smclone-0.99.3-build.patch 5510 RMD160 98d0d7c528abbcfed3f6460d38850f3076be718d SHA1 cb27c8c52029dab4a8182137ffd93dd8722b485e SHA256 d98cadc9db611353c7008ad7128c45839732206534b55bdefb693f265250fe5f
+MD5 31ae8baff14127454604f5fe68ff6378 files/smclone-0.99.3-build.patch 5510
+RMD160 98d0d7c528abbcfed3f6460d38850f3076be718d files/smclone-0.99.3-build.patch 5510
+SHA256 d98cadc9db611353c7008ad7128c45839732206534b55bdefb693f265250fe5f files/smclone-0.99.3-build.patch 5510
+AUX smclone-0.99.3-paths.patch 700 RMD160 4d937d2d2a577d39769bd9b25c34d69ec33e10c8 SHA1 3e149832462af7b6b301e3672e6c9d5483e4dc7e SHA256 4a32ee318850b7bf660691fc54aaf7fc74cac86a09b7cbfd5c9ec6f97d3c50b9
+MD5 1e141c927cbe1cbedd194f7b266b7f9f files/smclone-0.99.3-paths.patch 700
+RMD160 4d937d2d2a577d39769bd9b25c34d69ec33e10c8 files/smclone-0.99.3-paths.patch 700
+SHA256 4a32ee318850b7bf660691fc54aaf7fc74cac86a09b7cbfd5c9ec6f97d3c50b9 files/smclone-0.99.3-paths.patch 700
DIST SMC_0.97_game.zip 5313784
DIST SMC_0.97_source.zip 233670
+DIST SMC_0.99.3_game.zip 11405177 RMD160 788d9173d59a28931a3740fb4565fdcb8b305d60 SHA1 3a62310e30ab0cc18abbbb0e9f4f195d393bf1e0 SHA256 dba14de056ce3a5fc6b2b4ceea4ac86afe8541023fe7ca90f08b579cd937aa2c
+DIST SMC_0.99.3_source.zip 472102 RMD160 bfddda2135a25cb0c631634adea7d77a08f15d56 SHA1 03722c861ce14bf8aa013f8dfeb820b9acc3754c SHA256 b5796dd135008c6b8adad2dd06bdebf58f979cd981fcfa8cd71418a4ecd51808
DIST music_2.0_RC_1.zip 17954786
+DIST music_3.1_high.zip 28684034 RMD160 728e2c029f47147d31894caa1b7722daf4635386 SHA1 66b00c8aeae8909a8d2d376c1305513b1075ae42 SHA256 8497dce0547d638daf05e0277c7b3fc5dfe33948ddb538b4bb4fba95acccc823
EBUILD smclone-0.97.ebuild 1720 RMD160 3fc59e0b4e66733d80aed92b09d665745b3fc530 SHA1 0f5f3b73cc1126681d5e8fcc3e2df6fab047ce21 SHA256 e7d6103f4b1ca9805707ac9887dce554f411bd53b3856daa59648ede3b7613f8
MD5 ff06a6b63e94f78b1dde53c2b1d05593 smclone-0.97.ebuild 1720
RMD160 3fc59e0b4e66733d80aed92b09d665745b3fc530 smclone-0.97.ebuild 1720
SHA256 e7d6103f4b1ca9805707ac9887dce554f411bd53b3856daa59648ede3b7613f8 smclone-0.97.ebuild 1720
-MISC ChangeLog 1882 RMD160 e89d7467e20993f72a135bd14be51983a271b4d0 SHA1 46ca8b4a63e6ac55edbf069b1869280d9a53d0d4 SHA256 be2a9d2c500bd54086bd9b0147905a8ed3ebd1f24156e079aba7275f8e849fd9
-MD5 c2e8edd84a028eed01a479cce03f06a3 ChangeLog 1882
-RMD160 e89d7467e20993f72a135bd14be51983a271b4d0 ChangeLog 1882
-SHA256 be2a9d2c500bd54086bd9b0147905a8ed3ebd1f24156e079aba7275f8e849fd9 ChangeLog 1882
+EBUILD smclone-0.99.3.ebuild 1648 RMD160 4e19839d664b6abfbbb42ed9fda7671d075176d9 SHA1 9b62913fe59bbefddc7b2b79114f2539a57397cd SHA256 bae32e30539338b785df88d4db4b0a74ab9ba67a0a1f2a27759bc8b2ca56670e
+MD5 e6872014e5ae6dccd2df58c1fdf53653 smclone-0.99.3.ebuild 1648
+RMD160 4e19839d664b6abfbbb42ed9fda7671d075176d9 smclone-0.99.3.ebuild 1648
+SHA256 bae32e30539338b785df88d4db4b0a74ab9ba67a0a1f2a27759bc8b2ca56670e smclone-0.99.3.ebuild 1648
+MISC ChangeLog 2087 RMD160 425e7413280d15707b77df288eefb9f04c68a4a1 SHA1 54db2e6696248cd7f51c1fb6024f37299d9de31c SHA256 4a2c4e0a5090e2c98cf0e0d50ddf7e0baf4ba80d8ed75c1cb82dc5bfe91804de
+MD5 60c2e16c34394d15adb54cc19fb17651 ChangeLog 2087
+RMD160 425e7413280d15707b77df288eefb9f04c68a4a1 ChangeLog 2087
+SHA256 4a2c4e0a5090e2c98cf0e0d50ddf7e0baf4ba80d8ed75c1cb82dc5bfe91804de ChangeLog 2087
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
MD5 6a6c50e9f4bbccabd4b487227fa297a7 files/digest-smclone-0.97 192
RMD160 3c05a32fa50bbe457bf51955aa2977f42b1eb85f files/digest-smclone-0.97 192
SHA256 07b98fc430e89e1bca0642fd606165f1ce6bf036f1edd256640b87b4f3e5812c files/digest-smclone-0.97 192
+MD5 baab1790569abb831ba91b92bb34c4b4 files/digest-smclone-0.99.3 729
+RMD160 fc58200131e93f231c8e18243ebf19ac344b6a13 files/digest-smclone-0.99.3 729
+SHA256 6cd8eaff92dad0bc9c5059dca63be3c040a07cbe5a580ead150f4140feb02417 files/digest-smclone-0.99.3 729
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFYij9dz7hIScOURERAnA7AJwNeBr78RIBc6j9FsDe4nT9IpV8DQCggcIi
+Du9Y7lIJptg+5y7IYAj2GEw=
+=4XvB
+-----END PGP SIGNATURE-----
--- /dev/null
+MD5 0062f7ab46193737e5b4ee3bdf4e116a SMC_0.99.3_game.zip 11405177
+RMD160 788d9173d59a28931a3740fb4565fdcb8b305d60 SMC_0.99.3_game.zip 11405177
+SHA256 dba14de056ce3a5fc6b2b4ceea4ac86afe8541023fe7ca90f08b579cd937aa2c SMC_0.99.3_game.zip 11405177
+MD5 f623b9bd817c587a93af1d9735feaf00 SMC_0.99.3_source.zip 472102
+RMD160 bfddda2135a25cb0c631634adea7d77a08f15d56 SMC_0.99.3_source.zip 472102
+SHA256 b5796dd135008c6b8adad2dd06bdebf58f979cd981fcfa8cd71418a4ecd51808 SMC_0.99.3_source.zip 472102
+MD5 710261e92e44066a811a8bbf68dba526 music_3.1_high.zip 28684034
+RMD160 728e2c029f47147d31894caa1b7722daf4635386 music_3.1_high.zip 28684034
+SHA256 8497dce0547d638daf05e0277c7b3fc5dfe33948ddb538b4bb4fba95acccc823 music_3.1_high.zip 28684034
--- /dev/null
+--- configure.ac
++++ configure.ac
+@@ -2,7 +2,7 @@
+ \r
+ AC_INIT(src/core/main.cpp)\r
+ \r
+-PACKAGE=smc\r
++PACKAGE=smclone\r
+ VERSION=0.99.3\r
+ \r
+ AC_PREREQ(2.50)\r
+@@ -56,15 +56,13 @@
+ #AC_SUBST(CEGUI-OPENGL_LIBS)\r
+ #CPPFLAGS="$CPPFLAGS $CEGUI-OPENGL_CFLAGS"\r
+ CPPFLAGS="$CPPFLAGS `pkg-config --cflags CEGUI-OPENGL`"\r
+-LIBS="$LIBS `pkg-config --libs CEGUI-OPENGL`"\r
++LIBS="$LIBS `pkg-config --libs CEGUI-OPENGL` -lGLU"\r
+ \r
+ \r
+ dnl Checks for header files.\r
+ \r
+ AC_HEADER_STDC\r
+ \r
+-AC_CHECK_HEADERS([SDL_rotozoom.h], ,\r
+- AC_MSG_ERROR([The SDL_gfx library is not installed correctly!]))\r
+ \r
+ \r
+ dnl Checks for typedefs, structures, and compiler characteristics.\r
+@@ -87,22 +85,20 @@
+ packageprefix=${prefix}\r
+ fi\r
+ \r
+-dnl Set PACKAGE DATA & DOC DIR\r
+-packagedatadir=share/${PACKAGE}\r
+-packagedocdir=doc/${PACKAGE}\r
++packagedatadir=${datadir}/${PACKAGE}\r
+ \r
+ AC_DEFINE_UNQUOTED(SAVE_DIR, "savegames", [Directory for savegames])\r
+ AC_DEFINE_UNQUOTED(SCREENSHOT_DIR, "screenshots", [Directory for screenshots])\r
+-AC_DEFINE_UNQUOTED(LEVEL_DIR, "${packageprefix}/${packagedatadir}/levels/", [Directory for level files])\r
+-AC_DEFINE_UNQUOTED(OVERWORLD_DIR, "${packageprefix}/${packagedatadir}/world", [Directory for word data])\r
+-AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "${packageprefix}/${packagedatadir}/pixmaps", [Directory for pixmap data])\r
+-AC_DEFINE_UNQUOTED(SOUNDS_DIR, "${packageprefix}/${packagedatadir}/sounds", [Directory for sound data])\r
+-AC_DEFINE_UNQUOTED(MUSIC_DIR, "${packageprefix}/${packagedatadir}/music", [Directory for music data])\r
+-AC_DEFINE_UNQUOTED(FONT_DIR, "${packageprefix}/${packagedatadir}/font", [Directory for font data])\r
+-AC_DEFINE_UNQUOTED(ICON_DIR, "${packageprefix}/${packagedatadir}/icon", [Directory for icon data])\r
+-AC_DEFINE_UNQUOTED(SCHEME_DIR, "${packageprefix}/${packagedatadir}/schemes", [Directory for scheme data])\r
+-AC_DEFINE_UNQUOTED(GUI_FONT_DIR, "${packageprefix}/${packagedatadir}/gui/font", [Directory for gui font data])\r
+-AC_DEFINE_UNQUOTED(GUI_SCHEME_DIR, "${packageprefix}/${packagedatadir}/gui/schemes", [Directory for gui scheme data])\r
+-AC_DEFINE_UNQUOTED(GUI_LAYOUT_DIR, "${packageprefix}/${packagedatadir}/gui/layout", [Directory for gui layout data])\r
++AC_DEFINE_UNQUOTED(LEVEL_DIR, "${packagedatadir}/levels", [Directory for level files])\r
++AC_DEFINE_UNQUOTED(OVERWORLD_DIR, "${packagedatadir}/world", [Directory for word data])\r
++AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "${packagedatadir}/pixmaps", [Directory for pixmap data])\r
++AC_DEFINE_UNQUOTED(SOUNDS_DIR, "${packagedatadir}/sounds", [Directory for sound data])\r
++AC_DEFINE_UNQUOTED(MUSIC_DIR, "${packagedatadir}/music", [Directory for music data])\r
++AC_DEFINE_UNQUOTED(FONT_DIR, "${packagedatadir}/font", [Directory for font data])\r
++AC_DEFINE_UNQUOTED(ICON_DIR, "${packagedatadir}/icon", [Directory for icon data])\r
++AC_DEFINE_UNQUOTED(SCHEME_DIR, "${packagedatadir}/schemes", [Directory for scheme data])\r
++AC_DEFINE_UNQUOTED(GUI_FONT_DIR, "${packagedatadir}/gui/font", [Directory for gui font data])\r
++AC_DEFINE_UNQUOTED(GUI_SCHEME_DIR, "${packagedatadir}/gui/schemes", [Directory for gui scheme data])\r
++AC_DEFINE_UNQUOTED(GUI_LAYOUT_DIR, "${packagedatadir}/gui/layout", [Directory for gui layout data])\r
+ \r
+-AC_OUTPUT([Makefile src/Makefile data/Makefile docs/Makefile])\r
++AC_OUTPUT([Makefile src/Makefile])\r
+--- Makefile.am
++++ Makefile.am
+@@ -2,5 +2,5 @@
+ \r
+ AUTOMAKE_OPTIONS = foreign 1.7\r
+ \r
+-SUBDIRS = src data docs\r
++SUBDIRS = src\r
+ \r
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -7,39 +7,38 @@
+ smc_SOURCES = \ \r
+ audio/audio.cpp \ \r
+ audio/sound_manager.cpp \ \r
++ core/camera.cpp \ \r
+ core/collision.cpp \ \r
+ core/file_parser.cpp \ \r
+- core/camera.cpp \ \r
+ core/framerate.cpp \ \r
+- core/globals.cpp \ \r
+ core/game_core.cpp \ \r
++ core/globals.cpp \ \r
+ core/main.cpp \ \r
+- core/obj_manager.cpp \ \r
+ core/math/point.cpp \ \r
+- core/math/vector.cpp \ \r
+ core/math/rect.cpp \ \r
+- player/player.cpp \ \r
+- enemies/rokko.cpp \ \r
++ core/math/vector.cpp \ \r
++ core/obj_manager.cpp \ \r
++ enemies/eato.cpp \ \r
+ enemies/enemy.cpp \ \r
++ enemies/gee.cpp \ \r
+ enemies/gumba.cpp \ \r
+ enemies/jpiranha.cpp \ \r
+ enemies/rex.cpp \ \r
+- enemies/turtle.cpp \ \r
++ enemies/rokko.cpp \ \r
++ enemies/spika.cpp \ \r
+ enemies/thromp.cpp \ \r
+- enemies/eato.cpp \ \r
+- enemies/gee.cpp \ \r
+- gui/dialog.cpp \ \r
++ enemies/turtle.cpp \ \r
+ gui/hud.cpp \ \r
+ gui/menu.cpp \ \r
+ gui/menu_data.cpp \ \r
+ input/joystick.cpp \ \r
+- input/mouse.cpp \ \r
+ input/keyboard.cpp \ \r
+- level/level.cpp \ \r
+- level/level_background.h \ \r
++ input/mouse.cpp \ \r
+ level/global_effect.cpp \ \r
+- level/level_settings.cpp \ \r
++ level/level_background.cpp \ \r
++ level/level.cpp \ \r
+ level/leveleditor.cpp \ \r
++ level/level_settings.cpp \ \r
+ objects/active.cpp \ \r
+ objects/basicsprite.cpp \ \r
+ objects/bonusbox.cpp \ \r
+@@ -56,16 +55,17 @@
+ objects/sprite.cpp \ \r
+ objects/star.cpp \ \r
+ overworld/layer.cpp \ \r
+- overworld/worlds.cpp \ \r
+ overworld/overworld.cpp \ \r
+ overworld/ow_player.cpp \ \r
+ overworld/waypoint.cpp \ \r
++ overworld/worlds.cpp \ \r
++ player/player.cpp \ \r
+ user/preferences.cpp \ \r
+ user/savegame.cpp \ \r
+ video/animation.cpp \ \r
++ video/font.cpp \ \r
++ video/gl_surface.cpp \ \r
+ video/img_manager.cpp \ \r
+ video/img_settings.cpp \ \r
+ video/renderer.cpp \ \r
+- video/font.cpp \ \r
+- video/gl_surface.cpp \ \r
+- video/video.cpp
+\ No newline at end of file
++ video/video.cpp\r
--- /dev/null
+--- src/core/main.cpp
++++ src/core/main.cpp
+@@ -35,9 +35,7 @@
+ #include "../input/keyboard.h"\r
+ \r
+ // for linux directory creation\r
+-#ifdef POSIX\r
+ #include <sys/stat.h>\r
+-#endif\r
+ \r
+ /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */\r
+ \r
+@@ -107,11 +105,12 @@
+ srand( (unsigned int)time( NULL ) );\r
+ \r
+ // get linux user data dir ( home directory )\r
+-#ifdef POSIX\r
+ user_data_dir = (string)getenv( "HOME" ) + "/.smc/";\r
+ \r
+- mkdir( user_data_dir, S_IRWXU );\r
+-#endif\r
++ mkdir( user_data_dir.c_str(), S_IRWXU );\r
++ chdir( user_data_dir.c_str() );\r
++ mkdir( SAVE_DIR, S_IRWXU );\r
++ mkdir( SCREENSHOT_DIR, S_IRWXU );\r
+ \r
+ pCamera = new cCamera();\r
+ pVideo = new cVideo();\r
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/smclone/smclone-0.99.3.ebuild,v 1.1 2006/11/20 22:15:18 nyhm Exp $
+
+WANT_AUTOCONF=latest
+WANT_AUTOMAKE=latest
+inherit autotools eutils games
+
+MUSIC_V=3.1
+DESCRIPTION="Secret Maryo Chronicles"
+HOMEPAGE="http://www.secretmaryo.org/"
+SRC_URI="mirror://sourceforge/${PN}/SMC_${PV}_source.zip
+ mirror://sourceforge/${PN}/SMC_${PV}_game.zip
+ mirror://sourceforge/${PN}/music_${MUSIC_V}_high.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="dev-games/cegui
+ 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"
+
+S=${WORKDIR}
+
+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 devil opengl ; then
+ die "Please emerge cegui with USE=\"devil opengl\""
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -f configure data/Makefile* docs/license.txt
+ sed -i "s:data/:${GAMES_DATADIR}/${PN}/:" \
+ $(find data/gui -type f) \
+ || die "sed failed"
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-paths.patch
+ eautoreconf
+}
+
+src_install() {
+ newgamesbin src/smc ${PN} || die "newgamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/* || die "doins failed"
+ newicon data/icon/window_32.png ${PN}.png
+ make_desktop_entry ${PN} "Secret Maryo Chronicles"
+ dodoc docs/*.txt
+ dohtml docs/{*.css,*.html}
+ prepgamesdirs
+}