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/freecnc/freecnc-0.2.1.31072003.ebuild | |
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/freecnc/freecnc-0.2.1.31072003.ebuild')
-rw-r--r-- | games-strategy/freecnc/freecnc-0.2.1.31072003.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/games-strategy/freecnc/freecnc-0.2.1.31072003.ebuild b/games-strategy/freecnc/freecnc-0.2.1.31072003.ebuild new file mode 100644 index 000000000000..cd6da7cfd452 --- /dev/null +++ b/games-strategy/freecnc/freecnc-0.2.1.31072003.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecnc/freecnc-0.2.1.31072003.ebuild,v 1.1 2003/09/10 05:27:31 vapier Exp $ + +inherit games flag-o-matic eutils + +DESCRIPTION="SDL-rewrite of the classical real time strategy hit Command & Conquer" +HOMEPAGE="http://freecnc-sf.holarse.net/" +#mirror://sourceforge/freecnc/freecnc++-${PV}-src.tar.bz2 +SRC_URI="mirror://gentoo/freecnc++-${PV}-src.tar.bz2 + nocd? ( ftp://ftp.westwood.com/pub/cc1/previews/demo/cc1demo1.zip ) + nocd? ( ftp://ftp.westwood.com/pub/cc1/previews/demo/cc1demo2.zip )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="zlib nocd" + +DEPEND="media-libs/libsdl + media-libs/sdl-net + zlib? ( sys-libs/zlib )" + +S=${WORKDIR}/freecnc++ + +src_unpack() { + unpack freecnc++-${PV}-src.tar.bz2 + if [ `use nocd` ] ; then + mkdir data ; cd data + unpack cc1demo1.zip cc1demo2.zip + for f in * ; do + mv ${f} `echo ${f} | awk '{print tolower($1)}'` || die "moving $f" + done + fi + cd ${S} + epatch ${FILESDIR}/${PV}-makefile-cflags.patch + epatch ${FILESDIR}/${PV}-remove-root.patch + epatch ${FILESDIR}/${PV}-gentoo-paths.patch + sed -i \ + -e "s:GENTOO_LOGDIR:${GAMES_LOGDIR}:" \ + -e "s:GENTOO_CONFDIR:${GAMES_SYSCONFDIR}/${PN}/:" \ + -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}/:" \ + src/{freecnc,vfs/vfs}.cpp tools/audplay/audplay.cpp +} + +src_compile() { + make linux EXTRACFLAGS="${CFLAGS}" || die +} + +src_install() { + exeinto ${GAMES_LIBDIR}/${PN} + doexe freecnc *.vfs audplay shpview tmpinied + dogamesbin ${FILESDIR}/freecnc + dosed "s:GENTOO_DIR:${GAMES_LIBDIR}/${PN}:" ${GAMES_BINDIR}/freecnc + insinto ${GAMES_DATADIR}/${PN}/conf + doins conf/* + insinto ${GAMES_SYSCONFDIR}/${PN} + doins conf/* + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + if [ `use nocd` ] ; then + cd ${WORKDIR}/data + insinto ${GAMES_DATADIR}/${PN} + doins *.mix *.aud + dodoc *.txt + fi + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + einfo "If you have the C&C games, then just copy the .mix" + einfo "to ${GAMES_DATADIR}/${PN}" + einfo "Otherwise, re-emerge freecnc with 'nocd' in your USE." +} |