# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit cmake-utils eutils MY_P=libShadowDive DESCRIPTION="C library for parsing and writing One Must Fall 2097 file formats." HOMEPAGE="https://github.com/omf2097/libShadowDive" SRC_URI="https://github.com/omf2097/${MY_P}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="zlib" DEPEND="media-libs/libpng zlib? ( sys-libs/zlib )" RDEPEND="${DEPEND}" DOCS=( README.md ) S="${WORKDIR}/${MY_P}-${PV}" src_configure() { mycmakeargs=( "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/usr" ) cmake-utils_src_configure } multilib_src_compile() { emake CC="$(tc-getCC)" OFLAGS="${CFLAGS}" }