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.
42 lines
814 B
42 lines
814 B
4 years ago
|
# Copyright 2020 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit cmake
|
||
|
|
||
|
MY_P=StormLib-${PV}
|
||
|
DESCRIPTION="Library to read and write MPQ archives (Diablo, StarCraft)"
|
||
|
HOMEPAGE="
|
||
|
http://www.zezula.net/en/mpq/stormlib.html
|
||
|
https://github.com/ladislav-zezula/StormLib"
|
||
|
SRC_URI="
|
||
|
https://github.com/ladislav-zezula/StormLib/archive/v${PV}.tar.gz
|
||
|
-> ${MY_P}.tar.gz"
|
||
|
S=${WORKDIR}/${MY_P}
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
RDEPEND="
|
||
|
app-arch/bzip2:=
|
||
|
dev-libs/libtomcrypt:=[libtommath]
|
||
|
sys-libs/zlib:="
|
||
|
DEPEND=${RDEPEND}
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/stormlib-9.23-gnuinstalldirs.patch
|
||
|
)
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DBUILD_SHARED_LIBS=ON
|
||
|
# interactive test app
|
||
|
-DSTORM_BUILD_TESTS=OFF
|
||
|
-DWITH_LIBTOMCRYPT=ON
|
||
|
)
|
||
|
|
||
|
cmake_src_configure
|
||
|
}
|