2014-02-10 16:59:40 +01:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-08-08 09:25:07 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-02-10 16:59:40 +01:00
|
|
|
# $Header: $
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2013-04-30 18:33:24 +02:00
|
|
|
EAPI="5"
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2013-11-13 17:06:15 +01:00
|
|
|
inherit cmake-multilib
|
2012-08-08 09:25:07 +02:00
|
|
|
|
|
|
|
DESCRIPTION="library to read and write MPQ archives"
|
|
|
|
HOMEPAGE="http://www.zezula.net/en/mpq/main.html"
|
2013-11-13 17:06:15 +01:00
|
|
|
SRC_URI="https://github.com/stormlib/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
2012-08-08 09:25:07 +02:00
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
|
|
|
|
LICENSE="as-is"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2013-11-13 23:13:22 +01:00
|
|
|
IUSE="static-libs"
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2013-11-13 17:06:15 +01:00
|
|
|
DEPEND="=dev-libs/libtomcrypt-1.17-r7[static-libs?,${MULTILIB_USEDEP}]
|
|
|
|
sys-libs/zlib[static-libs?,${MULTILIB_USEDEP}]
|
|
|
|
app-arch/bzip2[static-libs?,${MULTILIB_USEDEP}]"
|
2012-08-08 09:25:07 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}/${PN}-multilib.patch"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs="
|
|
|
|
-DWITH_LIBTOMCRYPT=ON"
|
|
|
|
|
2013-11-13 17:06:15 +01:00
|
|
|
cmake-multilib_src_configure
|
2012-08-08 09:25:07 +02:00
|
|
|
}
|