gentoo/dev-games/StormLib/StormLib-9.21.ebuild

36 lines
820 B
Bash
Raw Normal View History

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
2015-08-21 14:38:36 +02:00
# $Id$
EAPI="6"
inherit cmake-multilib
DESCRIPTION="library to read and write MPQ archives"
HOMEPAGE="http://www.zezula.net/en/mpq/main.html"
SRC_URI="https://github.com/ladislav-zezula/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
2016-09-29 11:28:47 +02:00
LICENSE="MIT"
2015-01-25 21:10:38 +01:00
SLOT="0/9"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
DEPEND="dev-libs/libtomcrypt[static-libs?,${MULTILIB_USEDEP}]
sys-libs/zlib[static-libs?,${MULTILIB_USEDEP}]
app-arch/bzip2[static-libs?,${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-fix-build-system.patch
)
multilib_src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS="$(usex static-libs no yes)"
-DWITH_LIBTOMCRYPT=ON)
cmake-utils_src_configure
}