diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:27:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:27:31 +0000 |
commit | 0c0186e57f9c188f3c71c04a35825c8e134cf141 (patch) | |
tree | 764612f703bdba5335d790064606b1f53a330c24 /games-strategy/freecraft | |
parent | minor version update. resolves bug 27641 (diff) | |
download | gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.tar.gz gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.tar.bz2 gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.zip |
mmm strategy games
Diffstat (limited to 'games-strategy/freecraft')
-rw-r--r-- | games-strategy/freecraft/ChangeLog | 40 | ||||
-rw-r--r-- | games-strategy/freecraft/Manifest | 5 | ||||
-rw-r--r-- | games-strategy/freecraft/files/1.18-setup.patch | 50 | ||||
-rw-r--r-- | games-strategy/freecraft/files/digest-freecraft-1.18-r1 | 1 | ||||
-rw-r--r-- | games-strategy/freecraft/files/playfreecraft | 15 | ||||
-rw-r--r-- | games-strategy/freecraft/freecraft-1.18-r1.ebuild | 67 |
6 files changed, 178 insertions, 0 deletions
diff --git a/games-strategy/freecraft/ChangeLog b/games-strategy/freecraft/ChangeLog new file mode 100644 index 000000000000..8d66c2606a69 --- /dev/null +++ b/games-strategy/freecraft/ChangeLog @@ -0,0 +1,40 @@ +# ChangeLog for app-games/freecraft +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecraft/ChangeLog,v 1.1 2003/09/10 05:27:31 vapier Exp $ + + 12 Jul 2003; Michael Sterrett <msterret@gentoo.org> + freecraft-1.18-r1.ebuild: + fix DESCRIPTION + +*freecraft-1.18-r1 (20 Jun 2003) + + 20 Jun 2003; Mike Frysinger <vapier@gentoo.org> : + Cleaned up + add games.eclass support + rework runscript. + +*freecraft-1.18 (18 Mar 2003) + + 28 Mar 2003; Jose Alberto Suárez López <bass@gentoo.org> freecraft-1.18.ebuild: + Bump version. + +*freecraft-1.17.2 (31 Jul 2002) + + 22 Jul 2002; Jose Alberto Suárez López <bass@gentoo.org> freecraft-1.17.2.ebuild: + Bump version. + +*freecraft-1.17.1 (28 Jun 2002) + + 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> freecraft-1.17.1.ebuild : + Added KEYWORDS. + + 28 Jun 2002; Brandon Low <lostlogic@gentoo.org> freecraft-1.17.1.ebuild : + Ouch, that ebuild was a pain to update and make more reasonable... + Ahh, but now it is done... enjoy this updated version, now obeys + CFLAGS, and the setup is a bit more sane, plus uses the portage + functions for installation properly. Oh and I also version bumped + in the process :) + +*freecraft-1.17-r1 (15 Jun 2002) + + 15 Jun 2002; Gabriele Giorgetti <stroke@gentoo.org> freecraft-1.17-r1.ebuild : + Initial release of a ebuild for the freecraft project. + Ebuild written by: Keith Gross <grossk@mail.tds.net> diff --git a/games-strategy/freecraft/Manifest b/games-strategy/freecraft/Manifest new file mode 100644 index 000000000000..0755e2d7e486 --- /dev/null +++ b/games-strategy/freecraft/Manifest @@ -0,0 +1,5 @@ +MD5 26fcca4042bfb33bb7fa5c0c79440982 ChangeLog 1467 +MD5 5d497d878af671fafdd6af9ba7355222 freecraft-1.18-r1.ebuild 1836 +MD5 c7be4012a9ba721244dec67d4abc2e53 files/1.18-setup.patch 1057 +MD5 6c27ce2218d486e19d552a2ae7781c17 files/digest-freecraft-1.18-r1 73 +MD5 1c4f64fa279e68a8cf4508221d6fffe4 files/playfreecraft 474 diff --git a/games-strategy/freecraft/files/1.18-setup.patch b/games-strategy/freecraft/files/1.18-setup.patch new file mode 100644 index 000000000000..b92ff5f43335 --- /dev/null +++ b/games-strategy/freecraft/files/1.18-setup.patch @@ -0,0 +1,50 @@ +--- setup.orig 2003-06-20 13:07:06.000000000 -0400 ++++ setup 2003-06-20 13:14:36.000000000 -0400 +@@ -31 +31 @@ +-EXTRA_CFLAGS="-DUNIT_ON_MAP -DNEW_AI -DUSE_LIBMODPLUG -DUSE_HP_FOR_XP -DNEW_FOW -DBUILDING_DESTROYED" ++EXTRA_CFLAGS="-DUNIT_ON_MAP -DNEW_AI -DUSE_LIBMODPLUG -DUSE_HP_FOR_XP -DNEW_FOW -DBUILDING_DESTROYED ${GENTOO_CFLAGS}" +@@ -462 +462 @@ +- read $N VIDSEL ++ VIDSEL=S +@@ -554 +554 @@ +-read $N ANSWER ++ANSWER=y +@@ -575 +575 @@ +- read $N ANSWERA ++ ANSWERA=n +@@ -598 +598 @@ +- read $N ANSWER2 ++ ANSWER2=y +@@ -621 +621 @@ +- read $N ANSWER ++ ANSWER=n +@@ -641 +641 @@ +- read $N ANSWER ++ ANSWER=n +@@ -674 +674 @@ +- read $N ANSWER ++ ANSWER=n +@@ -696 +696 @@ +- read $N CDMode ++ CDMode=s +@@ -780 +780 @@ +-read $N COMPOPT ++COMPOPT=O +@@ -830 +830 @@ +- read $N DEBUGASK ++ DEBUGASK=n +@@ -870 +870 @@ +- read $N OPTASK ++ OPTASK=N +@@ -897 +897 @@ +- read $N TYPEASK ++ TYPEASK= +@@ -913 +913 @@ +- read $N PROCASK ++ PROCASK= +@@ -952 +952 @@ +- read $N PROCASK ++ PROCASK= +@@ -1159 +1159 @@ +-read $N ANSWER ++ANSWER=n diff --git a/games-strategy/freecraft/files/digest-freecraft-1.18-r1 b/games-strategy/freecraft/files/digest-freecraft-1.18-r1 new file mode 100644 index 000000000000..8720e43ef97e --- /dev/null +++ b/games-strategy/freecraft/files/digest-freecraft-1.18-r1 @@ -0,0 +1 @@ +MD5 e7926083835d9f913e4bfc7e1ab13cc1 freecraft-030311-src.tar.gz 1883435 diff --git a/games-strategy/freecraft/files/playfreecraft b/games-strategy/freecraft/files/playfreecraft new file mode 100644 index 000000000000..542146588d6f --- /dev/null +++ b/games-strategy/freecraft/files/playfreecraft @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ ! -d GENTOO_DATADIR/data/music ] ; then + echo "You have to install the data files in order to play!" + echo "You can either \`emerge freecraft-fcmp\` or install" + echo "the data files from the Warcraft CD." + echo + echo "To install off the warcraft CD do this:" + echo " 1 mount the cd at /mnt/cdrom" + echo " 2 run the script GENTOO_DATADIR/tools/build.sh" + echo " 3 leave cd in the drive to listen to music" + exit 1 +fi + +freecraft -d GENTOO_DATADIR/data "$@" diff --git a/games-strategy/freecraft/freecraft-1.18-r1.ebuild b/games-strategy/freecraft/freecraft-1.18-r1.ebuild new file mode 100644 index 000000000000..9459aba3ec20 --- /dev/null +++ b/games-strategy/freecraft/freecraft-1.18-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecraft/freecraft-1.18-r1.ebuild,v 1.1 2003/09/10 05:27:31 vapier Exp $ + +inherit games eutils + +MY_P=${PN}-030311 +DESCRIPTION="realtime strategy game engine for games like Warcraft/Starcraft/etc." +HOMEPAGE="http://freecraft.sourceforge.net/" +SRC_URI="mirror://sourceforge/freecraft/${MY_P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND=">=media-libs/libpng-1.2.3 + >=media-libs/libsdl-1.2.4 + sys-libs/zlib" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-setup.patch + env GENTOO_CFLAGS="${CFLAGS}" ./setup || die +} + +src_compile() { + make depend || die "depend generation failed" + make || die "build failed" +} + +src_install() { + sed -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \ + ${FILESDIR}/playfreecraft > ${T}/playfreecraft + dogamesbin freecraft ${T}/playfreecraft + + exeinto ${GAMES_DATADIR}/${PN}/tools + doexe tools/{build.sh,aledoc,startool,wartool} + + dodir ${GAMES_DATADIR}/${PN}/ + cp -r data ${D}/${GAMES_DATADIR}/${PN}/ + + insinto ${GAMES_DATADIR}/${PN}/contrib + cp -r contrib ${D}/${GAMES_DATADIR}/${PN}/ + + dohtml -r doc + dodoc README + + prepgamesdirs +} + +pkg_postinst() { + einfo "Freecraft is now installed but in order to actually play" + einfo "you will need to either use a Warcraft CD or install the" + einfo "freecraft-fcmp ebuild. To use a Warcraft CD:" + einfo " 1 mount the cd as /mnt/cdrom" + einfo " 2 cd ${GAMES_DATADIR}" + einfo " 3 run tools/build.sh" + einfo "This will extract the data files to the correct place." + einfo "Note that the CD is still needed for the music. To" + einfo "start a game just run \`playfreecraft\`." + einfo "For more info, review \`freecraft --help\`." + + games_pkg_postinst +} |