add dreamchess

atratsevskiy
Трацевский Александр 12 years ago
parent 9a5f6840f9
commit 0386e6b0a7

@ -0,0 +1,4 @@
AUX dreamchess-0.2.0-configure.ac.patch 1357 RMD160 57f5fc5c92a7c2fd947cb940170c460ed58e3e52 SHA1 a5cf4be68c6657ae692381a56ad5659f6481c14c SHA256 8901ba65ce54400a61a4ebfd58fe91d1a17d4a3b56bf2256ceb59a24255ef9c7
DIST dreamchess-0.2.0.tar.gz 5458328 RMD160 d3ee004589da020daac9fa8195d252b82851f696 SHA1 0e27c9d7cb20104367edc5aabe3076b70d989374 SHA256 7615699995a635c3dff6c952aa0d32723c415c8bb42448b4269d3daa199d8059
DIST dreamchess-music-1.0.run.tar 74229760 RMD160 b9a7238e6e0cb962ccf83c166271aa571a96365b SHA1 9a2f720eff17f03cea31d75786e0f7cd61282c05 SHA256 d0472c94e40e8c2570eef83a3f36b61db60d45d79d4fb752bda4a23e76008cdd
EBUILD dreamchess-0.2.0.ebuild 1190 RMD160 c0e66e773e4577fb33e23a62a193f2357203de60 SHA1 447f39e100ecdb15ab5536d8925826b5ddb8787e SHA256 f01dd501f83a5cfa04f58b9d6ac770ce6bc698a8b47efebe5889ff4e5cf7be5e

@ -0,0 +1,51 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils autotools games
MY_MUSIC="${PN}-music-1.0.run"
DESCRIPTION="3D OpenGL moderately-strong chess engine"
HOMEPAGE="http://www.dreamchess.org/"
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz
sound? ( music? ( mirror://berlios/${PN}/${MY_MUSIC}.tar ) )"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="music sound"
RDEPEND="virtual/opengl
media-libs/libsdl
media-libs/sdl-image
sound? ( media-libs/sdl-mixer )
dev-libs/mini-xml"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-configure.ac.patch"
eautoreconf
if use music ; then
if use sound ; then
"${WORKDIR}/${MY_MUSIC}" --tar xf
else
ewarn "You need to enable the sound use flag to play music."
fi
fi
}
src_compile() {
egamesconf $( use_with sound mixer-sdl )
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install"
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
newicon data/icon.png ${PN}.png || die "newicon failed"
make_desktop_entry ${PN} "DreamChess" ${PN}.png
prepgamesdirs
}

@ -0,0 +1,42 @@
--- configure.ac.orig 2008-11-28 13:16:29.372873219 -0800
+++ configure.ac 2008-11-28 13:15:20.523374056 -0800
@@ -52,6 +52,7 @@
dnl Check for SDL
AC_ARG_WITH([sdl], [ --without-sdl do not use SDL])
AC_ARG_WITH([gl], [ --without-gl do not use GL])
+AC_ARG_WITH([mixer-sdl], [ --without-mixer-sdl do not use SDL_Mixer])
AC_ARG_ENABLE([linked-engine], [ --enable-linked-engine statically link with `dreamer' engine], [enable_linked_engine=yes])
AC_DEFUN([AC_CHECK_SDL_HEADER],
@@ -191,6 +192,7 @@
with_ui_sdl="no"
fi
+if test x"$with_mixer_sdl" = xyes; then
AC_CHECK_SDL_HEADER([SDL_mixer.h], [have_sdl_mixer_h="yes"],
[have_sdl_mixer_h="no"]
)
@@ -205,6 +207,7 @@
x"$have_sdl" = xyes -a \
x"$have_sdl_mixer" = xyes; then supported_mixer_sdl="yes"
else supported_mixer_sdl="no"
+ AC_MSG_ERROR([SDL_Mixer was not found, please check your SDL installation.])
fi
if test x"$supported_mixer_sdl" = xno; then
@@ -214,6 +217,7 @@
else
with_mixer_sdl="yes"
fi
+fi
AC_DEFUN([AC_PRINT_LIB],
if test x"$2" = xyes; then
@@ -293,7 +297,6 @@
fi
AC_CHECK_HEADER([mxml.h], [], [AC_MSG_ERROR([Cannot find Mini-XML header file.])])
-AC_CHECK_LIB(mxml, mxmlLoadFile, [], [AC_MSG_ERROR([Cannot find Mini-XML library.])])
AM_CONDITIONAL(BEOS_RC, test x"$beos_rc" = x"yes")
AC_SUBST(DREAMCHESS_LIBS)
Loading…
Cancel
Save