public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] New version of heroes ebuild
@ 2001-07-09  5:23 Dan Armak
  2001-07-09  5:34 ` Thomas M. Beaudry
  2001-07-09  9:55 ` Daniel Robbins
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Armak @ 2001-07-09  5:23 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

The original version I posted installed a file into /doc: a very strange 
default on the part of the makefile. The ebuild now passes a special paramter 
to configure to make it install into /usr/share/doc/${P} as needed.

Dan Armak

[-- Attachment #2: heroes-0.11.ebuild --]
[-- Type: text/plain, Size: 2450 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=/usr/share/doc/${P} --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` isn'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
    
}


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-07-09 19:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-09  5:23 [gentoo-dev] New version of heroes ebuild Dan Armak
2001-07-09  5:34 ` Thomas M. Beaudry
2001-07-09  9:55 ` Daniel Robbins
2001-07-09 11:40   ` Dan Armak
2001-07-09 13:53     ` Daniel Robbins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox