Files
guru/media-libs/gl4es/gl4es-9999.ebuild
Haelwenn (lanodan) Monnier 5864326da1 media-libs/gl4es: Remove keyword as it's live-only
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-04-03 01:53:04 +02:00

36 lines
741 B
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake git-r3
DESCRIPTION="OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library"
HOMEPAGE="http://ptitseb.github.io/gl4es/"
EGIT_REPO_URI="https://github.com/ptitSeb/gl4es.git"
LICENSE="MIT"
SLOT="0"
IUSE="egl X test"
RESTRICT="!test? ( test )"
DEPEND="
media-libs/mesa[X?,egl?]
"
RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-util/apitrace )"
# Note: Should be added into virtual/opengl if moved to ::gentoo
src_configure() {
local mycmakeargs=(
-DNOX11=$(usex !X)
-DNOEGL=$(usex !egl)
)
cmake_src_configure
}
pkg_install() {
einfo "To use this replacement library add ${PREFIX}/usr/lib/gl4es/ to LD_LIBRARY_PATH"
}