summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-02-28 02:32:20 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-02-28 02:32:20 +0000
commitf80d73914d088e30749ea89182b7703b077b7b98 (patch)
treec6b0eea3387ae519d198323deb3e5707d9a7f8a4 /games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild
parentAdded ~mips to KEYWORDS to satisfy repoman deps. (Manifest recommit) (diff)
downloadgentoo-2-f80d73914d088e30749ea89182b7703b077b7b98.tar.gz
gentoo-2-f80d73914d088e30749ea89182b7703b077b7b98.tar.bz2
gentoo-2-f80d73914d088e30749ea89182b7703b077b7b98.zip
initial commit (bug #43059)
Diffstat (limited to 'games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild')
-rw-r--r--games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild b/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild
new file mode 100644
index 000000000000..7ebaa964a010
--- /dev/null
+++ b/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild,v 1.1 2004/02/28 02:32:20 mr_bones_ Exp $
+
+inherit eutils games
+
+S="${WORKDIR}/${PN}"
+DESCRIPTION="Free clone of an excellent NeoGeo puzzle game, Magical Drop"
+HOMEPAGE="http://krystaldrop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/krystaldrop/art_${PV}.tgz
+ mirror://sourceforge/krystaldrop/src_${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="opengl"
+
+RDEPEND="opengl? ( virtual/opengl )
+ >=media-libs/libsdl-1.2.5
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+ >=dev-libs/libxml2-2.5.7
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack src_${PV}.tgz
+ cd ${S}
+ epatch "${FILESDIR}/krystaldrop-assert.patch"
+ unpack art_${PV}.tgz
+
+ sed -i \
+ -e "/^EXEDIR:=/ s|$|/bin|" \
+ -e "/^INSTALL_PREFIX:=/ s|$|${D}|" Makefile \
+ || die "sed Makefile failed"
+
+ # fix the high score location
+ sed -i \
+ -e "s:BINDIR:\"${GAMES_STATEDIR}/${PN}\":" \
+ Sources/KrystalDrop/Controller/HighScoresController.cpp \
+ || die "sed HighScoresController.cpp failed"
+
+ if ! use opengl ; then
+ sed -i \
+ -e "/<opengl>.*<\/opengl>/ s|yes|no|" kdrop.xml \
+ || die "sed kdrop.xml failed"
+ sed -i \
+ -e '/^USE_OPENGL/ s/yes/no/' Sources/Makefile \
+ || die "sed Sources/Makefile failed"
+ fi
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodir "${GAMES_STATEDIR}/${PN}"
+ mv "${D}${GAMES_DATADIR}/${PN}/art/survival.sco" \
+ "${D}${GAMES_STATEDIR}/${PN}/" || die "mv failed"
+ fperms 664 "${GAMES_STATEDIR}/${PN}/survival.sco"
+ dodoc CHANGES README
+ doman doc/kdrop.6
+ prepgamesdirs
+}