1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit desktop toolchain-funcs xdg
7 DESCRIPTION="A 3D fantasy MMORPG written in C and SDL"
8 HOMEPAGE="http://www.eternal-lands.com"
9 SRC_URI="https://github.com/raduprv/Eternal-Lands/archive/${PV}.tar.gz -> ${P}.tar.gz"
11 LICENSE="eternal_lands"
13 KEYWORDS="~amd64 ~x86"
16 RDEPEND="app-arch/unzip
18 media-libs/cal3d[-16bit-indices]
21 media-libs/libsdl[X,opengl,video]
26 sys-libs/zlib[minizip]
42 S="${WORKDIR}/Eternal-Lands-${PV}"
45 "${FILESDIR}/${PN}-1.9.5.3-build.patch"
46 "${FILESDIR}/${PN}-1.9.5.3-minizip.patch"
52 sed -i "s/FEATURES/EL_FEATURES/g" make.defaults || die
53 sed -i "s/FEATURES/EL_FEATURES/g" Makefile.linux || die
55 # Remove bundled minizip
56 rm io/{crypt,ioapi,unzip,zip}.h || die
57 rm io/{ioapi,unzip,zip}.c || die
59 cp Makefile.linux Makefile || die
63 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
69 newbin "${FILESDIR}"/el-wrapper el
70 newicon -s 48 elc.png ${PN}.png
71 make_desktop_entry el "Eternal Lands"
74 use doc && dodoc -r docs/html/