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.
76 lines
1.6 KiB
76 lines
1.6 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
inherit desktop toolchain-funcs xdg
|
||
|
|
||
|
DESCRIPTION="A 3D fantasy MMORPG written in C and SDL"
|
||
|
HOMEPAGE="http://www.eternal-lands.com"
|
||
|
SRC_URI="https://github.com/raduprv/Eternal-Lands/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="eternal_lands"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="doc"
|
||
|
|
||
|
RDEPEND="app-arch/unzip
|
||
|
dev-libs/libxml2
|
||
|
media-libs/cal3d[-16bit-indices]
|
||
|
media-libs/freealut
|
||
|
media-libs/libpng:0=
|
||
4 years ago
|
media-libs/libsdl2[X,opengl,video]
|
||
5 years ago
|
media-libs/libvorbis
|
||
|
media-libs/openal
|
||
4 years ago
|
media-libs/sdl2-image
|
||
|
media-libs/sdl2-net
|
||
5 years ago
|
sys-libs/zlib[minizip]
|
||
|
virtual/glu
|
||
|
virtual/opengl
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXau
|
||
|
x11-libs/libXdmcp
|
||
|
x11-libs/libXext"
|
||
|
DEPEND="${RDEPEND}
|
||
|
media-libs/glew"
|
||
|
BDEPEND="${DEPEND}
|
||
|
virtual/pkgconfig
|
||
|
doc? (
|
||
|
app-doc/doxygen
|
||
|
media-gfx/graphviz
|
||
|
)"
|
||
|
|
||
|
S="${WORKDIR}/Eternal-Lands-${PV}"
|
||
|
|
||
|
PATCHES=(
|
||
4 years ago
|
"${FILESDIR}/${PN}-1.9.5.8-build.patch"
|
||
5 years ago
|
"${FILESDIR}/${PN}-1.9.5.3-minizip.patch"
|
||
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
sed -i "s/FEATURES/EL_FEATURES/g" make.defaults || die
|
||
|
sed -i "s/FEATURES/EL_FEATURES/g" Makefile.linux || die
|
||
|
|
||
|
# Remove bundled minizip
|
||
|
rm io/{crypt,ioapi,unzip,zip}.h || die
|
||
|
rm io/{ioapi,unzip,zip}.c || die
|
||
|
|
||
|
cp Makefile.linux Makefile || die
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
|
||
|
use doc && emake docs
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin el.linux.bin
|
||
4 years ago
|
newbin "${FILESDIR}"/el-wrapper-1.9.5.8 el
|
||
5 years ago
|
newicon -s 48 elc.png ${PN}.png
|
||
|
make_desktop_entry el "Eternal Lands"
|
||
|
|
||
|
dodoc CHANGES TODO
|
||
|
use doc && dodoc -r docs/html/
|
||
|
}
|