diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-07-22 13:57:39 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-07-22 13:57:39 +0000 |
commit | 1b81d96191b5755a5295422e65bda23d8f573347 (patch) | |
tree | 5fce3b151fc5eaa9ddd2008b07f43a676c5af864 /games-misc/freespace2 | |
parent | fvwm live ebuild by 6thpink. (diff) | |
download | philantrop-1b81d96191b5755a5295422e65bda23d8f573347.tar.gz philantrop-1b81d96191b5755a5295422e65bda23d8f573347.tar.bz2 philantrop-1b81d96191b5755a5295422e65bda23d8f573347.zip |
Some more random ebuilds from my formerly local overlay. :-)
svn path=/trunk/; revision=18
Diffstat (limited to 'games-misc/freespace2')
-rwxr-xr-x | games-misc/freespace2/Manifest | 2 | ||||
-rwxr-xr-x | games-misc/freespace2/files/digest-freespace2-20040510 | 1 | ||||
-rwxr-xr-x | games-misc/freespace2/freespace2-20040510.ebuild | 72 |
3 files changed, 75 insertions, 0 deletions
diff --git a/games-misc/freespace2/Manifest b/games-misc/freespace2/Manifest new file mode 100755 index 0000000..29597f4 --- /dev/null +++ b/games-misc/freespace2/Manifest @@ -0,0 +1,2 @@ +MD5 a2748bbd10ae5b0cfd952594e51680dd freespace2-20040510.ebuild 1389 +MD5 ec0a147b4a1bd474341b5c2b8dd10f2e files/digest-freespace2-20040510 73 diff --git a/games-misc/freespace2/files/digest-freespace2-20040510 b/games-misc/freespace2/files/digest-freespace2-20040510 new file mode 100755 index 0000000..4869bb7 --- /dev/null +++ b/games-misc/freespace2/files/digest-freespace2-20040510 @@ -0,0 +1 @@ +MD5 a4dabbe473f8b9fd45bf1c40ff9ca31b freespace2-20040510.tar.bz2 2765840 diff --git a/games-misc/freespace2/freespace2-20040510.ebuild b/games-misc/freespace2/freespace2-20040510.ebuild new file mode 100755 index 0000000..f0facf3 --- /dev/null +++ b/games-misc/freespace2/freespace2-20040510.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit eutils games + +DESCRIPTION="port of the original FreeSpace2" +HOMEPAGE="http://icculus.org/projects/freespace2/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="debug mve" + +RDEPEND="virtual/x11 + media-libs/libsdl + media-libs/openal + virtual/opengl" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +src_unpack() { + unpack ${A} + + # configure + cd ${S} + + # disable debug + if !(use debug); then + einfo "Disabling debug..." + sed -i \ + -e "s/^#CFLAGS+=-DNDEBUG/CFLAGS+=-DNDEBUG/" \ + Makefile + fi + + # enable movie playing codes + if (use mve); then + einfo "Enabling movies..." + sed -i \ + -e "s/^MVE=false/MVE=true/" \ + Makefile + fi +} + +src_compile() { + emake || die "make error" +} + +src_install() { + dir=${GAMES_PREFIX_OPT}/${PN} + + dodir ${dir} + exeinto ${dir} + docinto ${dir} + + doexe freespace2 + dodoc README + games_make_wrapper freespace2 ./freespace2 ${dir} + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + einfo "Copy the data files from a FreeSpace2 Windows full installation" + einfo "into ${dir}" + einfo " Example: cp -r /mnt/winc/Games/FreeSpace2/* ${dir}" + echo + einfo "You can change resolution from 640x480 to 1024x768 if you edit" + einfo " ~/.freespace2/FreeSpace2.ini (created on the first run)" +} |