mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 16:38:01 +00:00
Done via: ``` git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@' ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
59 lines
1.2 KiB
Bash
59 lines
1.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MY_P="${P/-server/}"
|
|
DESCRIPTION="Server for the crossfire clients"
|
|
HOMEPAGE="http://crossfire.real-time.com/"
|
|
SRC_URI="https://downloads.sourceforge.net/crossfire/${PN}/${PV}/${MY_P}.tar.bz2
|
|
https://downloads.sourceforge.net/crossfire/${PN}/${PV}/${MY_P}.maps.tar.bz2
|
|
https://downloads.sourceforge.net/crossfire/${PN}/${PV}/${MY_P}.arch.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="X"
|
|
RESTRICT="test"
|
|
|
|
RDEPEND="
|
|
net-misc/curl
|
|
virtual/zlib:=
|
|
virtual/libcrypt:=
|
|
X? (
|
|
x11-libs/libXaw
|
|
media-libs/libpng:0=
|
|
)
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# bug #236205
|
|
rm -f "${WORKDIR}"/maps/Info/combine.pl || die
|
|
ln -s "${WORKDIR}"/arch "${S}"/lib || die
|
|
|
|
eapply "${FILESDIR}"/${P}-format.patch
|
|
}
|
|
|
|
src_configure() {
|
|
econf --disable-static
|
|
}
|
|
|
|
src_compile() {
|
|
# work around the collect.pl locking
|
|
emake -j1 -C lib
|
|
emake
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
keepdir /var/lib/crossfire/{account,datafiles,maps,players,template-maps,unique-items}
|
|
|
|
insinto /usr/share/crossfire
|
|
doins -r "${WORKDIR}"/maps
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|