* [gentoo-dev] app-games/heroes ebuild
@ 2001-07-07 11:04 Dan Armak
0 siblings, 0 replies; only message in thread
From: Dan Armak @ 2001-07-07 11:04 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]
Hi,
Here's an ebuild for the great game of heroes (heroes.sourceforge.net), an
ultra-advanced nibbles followup. (It's very resource-demanding. I've got a
k6-2/500 & TNT2 w/ 32MB and 224 MB RAM and it's still not smooth!)
This is my 1st ebuild post, so I'm prepared for constructive criticism. In
particular, should I post the digests?
Ebuild-specific notes:
1. heroes can use either sdl+sdl-mixer or libggi+libgii+libmikmod. The latter
is the default. My ebuild forces SDL if it's in USE, otherwise libggi, and
adjusts the config options & DEPEND accordingly.
I haven't actually buit with libggi, so someone should try that.
2. Something is wrong with the auto-downloading, it's probably a mistake of
mine. If I use wget everything works: it tries ibiblio.org, doesn't find it,
and goes to the server I put in SRC_URI. But, if I use prozilla then it tries
something (it doesn't say what - just "connecting to server..."), says it
can't find it (understandable if it's ibiblio.org), and goes right to
ftpsearch - without my SRC_URI in the mirror list. What's wrong? Can you
reproduce this behaviour?
Dan Armak
[-- Attachment #2: heroes-0.11.ebuild --]
[-- Type: text/plain, Size: 2430 bytes --]
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <ermak@netvision.net.il>
# /home/cvsroot/gentoo-x86/app-games/heroes/heroes-0.11.ebuild
P=heroes-0.11
A1=${P}.tar.gz
A2="heroes-data-1.1.tar.gz"
A3="heroes-sound-tracks-1.0.tar.gz"
A4="heroes-sound-effects-1.0.tar.gz"
# Is this needed for digest creation? What happens if ${A} isn't defined?
A="${A1} ${A2} ${A3} ${A4}"
S=${WORKDIR}/${P}
DESCRIPTION="heroes: an ultra-advanced multiplayer worms racing game"
SRC_URI="http://prdownloads.sourceforge.net/heroes/heroes-0.11.tar.gz
http://prdownloads.sourceforge.net/heroes/${A2}
http://prdownloads.sourceforge.net/heroes/${A3}
http://prdownloads.sourceforge.net/heroes/${A4}"
HOMEPAGE="http://heroes.sourceforge.net/"
# heroes can either link against SDL+SDL-mixer or, libGGI+libGII+libmikmod.
DEPEND="virtual/x11"
confopts="--prefix=/usr --host=${CHOST} --enable-html-doc --disable-debug --disable-heroes-debug"
# The following means that SDL is used only if it's in the USE var.
# This conforms to the game's default of using ggi if possible and
# SDL as a fallback option.
if [ "`use sdl`" ]; then
DEPEND="${DEPEND} media-libs/libsdl media-libs/sdl-mixer"
confopts="${confopts} --with-sdl --with-sdl-mixer"
else # `use ggi` sin't checked since this is the game's default
DEPEND="${DEPEND} media-libs/libggi media-libs/libgii
media-libs/libmikmod"
confopts="${confopts} --with-ggi --with-mikmod"
fi
DEPEND="media-libs/libsdl media-libs/sdl-mixer virtual/x11"
src_unpack() {
unpack ${A1} ${A2} ${A3} ${A4}
}
src_compile() {
#main part
cd ${WORKDIR}/heroes-0.11
try ./configure ${confopts}
try make
#levels
cd ${WORKDIR}/heroes-data-1.1
try ./configure --prefix=/usr
try make
#sounds
cd ${WORKDIR}/heroes-sound-effects-1.0
try ./configure --prefix=/usr
try make
#music
cd ${WORKDIR}/heroes-sound-tracks-1.0
try ./configure --prefix=/usr
try make
}
src_install () {
#main part
cd ${WORKDIR}/heroes-0.11
try make DESTDIR=${D} install
#levels
cd ${WORKDIR}/heroes-data-1.1
try make DESTDIR=${D} install
#sounds
cd ${WORKDIR}/heroes-sound-effects-1.0
try make DESTDIR=${D} install
#music
cd ${WORKDIR}/heroes-sound-tracks-1.0
try make DESTDIR=${D} install
}
[-- Attachment #3: digest-heroes-0.11 --]
[-- Type: text/plain, Size: 253 bytes --]
MD5 09de470a5b77e26c2b57b88afaa4db62 heroes-0.11.tar.gz
MD5 553785cf7b55ce4662276fa8c1d77a48 heroes-data-1.1.tar.gz
MD5 bcde6137a4b21b7395fd3d84b42b7888 heroes-sound-tracks-1.0.tar.gz
MD5 f4defb80baf765fceac034a408f7ad2e heroes-sound-effects-1.0.tar.gz
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-07 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-07 11:04 [gentoo-dev] app-games/heroes ebuild Dan Armak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox