You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
10 years ago
|
|
||
|
MY_P="${P/-server/}"
|
||
6 years ago
|
DESCRIPTION="Server for the crossfire clients"
|
||
10 years ago
|
HOMEPAGE="http://crossfire.real-time.com/"
|
||
|
SRC_URI="mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.tar.bz2
|
||
|
mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.maps.tar.bz2
|
||
|
mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.arch.tar.bz2"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
10 years ago
|
IUSE="X"
|
||
|
RESTRICT="test"
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
net-misc/curl
|
||
10 years ago
|
X? (
|
||
|
x11-libs/libXaw
|
||
6 years ago
|
media-libs/libpng:0=
|
||
|
)
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
10 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
10 years ago
|
rm -f "${WORKDIR}"/maps/Info/combine.pl # bug #236205
|
||
|
ln -s "${WORKDIR}/arch" "${S}/lib" || die
|
||
6 years ago
|
eapply "${FILESDIR}"/${P}-format.patch
|
||
10 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
6 years ago
|
econf --disable-static
|
||
10 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
# work around the collect.pl locking
|
||
|
emake -j1 -C lib
|
||
|
emake
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
6 years ago
|
keepdir /var/lib/crossfire/{account,datafiles,maps,players,template-maps,unique-items}
|
||
|
insinto /usr/share/crossfire
|
||
10 years ago
|
doins -r "${WORKDIR}/maps"
|
||
6 years ago
|
find "${D}" -name '*.la' -delete || die
|
||
10 years ago
|
}
|