Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10810 - Ebuild: Crossfire Client 1.4.0
Summary: Ebuild: Crossfire Client 1.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-15 23:47 UTC by jdm
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jdm 2002-11-15 23:47:18 UTC
Here is the ebuild for Crossfire Client v1.4.0, all I did was hack the 1.2.1
ebuild and change the version numbers, compiles and runs just fine:

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header:
/home/cvsroot/gentoo-x86/app-games/crossfire-client/crossfire-client-1.4.0.ebuild,v
1.7 2002/11/16 12:38:32 vapier Exp $

IUSE="sdl gtk alsa"

S=${WORKDIR}/crossfire-client-1.4.0

DESCRIPTION="Client for the nethack-style but more in the line of UO"

SRC_URI="mirror://sourceforge/crossfire/${P}.tar.gz"

HOMEPAGE="http://crossfire.real-time.com/"
KEYWORDS="x86"
SLOT="0"

LICENSE="GPL-2"

DEPEND="x11-base/xfree
        media-libs/xpm
        sdl? ( media-libs/libsdl
                x11-libs/gtk+
                media-libs/libpng )
        gtk? ( x11-libs/gtk+
                media-libs/libpng )
        alsa? ( media-libs/alsa-lib )"

src_compile() {

        local myconf=""

        use alsa \
                && myconf="${myconf} --enable-alsa" \
                || myconf="${myconf} --disable-alsa"
        use gtk \
        && myconf="${myconf} --enable-png" \
                || myconf="${myconf} --disable-gtk --disable-png"
        use sdl \
                && myconf="${myconf} --enable-sdl --enable-png" \
                || myconf="${myconf} --disable-sdl --disable--gtk --disable-png"

        ./configure --prefix=/usr \
                --datadir=/usr/share/crossfire-client \
                --infodir=/usr/share/info \
                --mandir=/usr/share/man \
        ${myconf} || die
        make || die
}

src_install () {
        make prefix=${D}usr mandir=${D}usr/share/man/man1 install || die
}