media-libs/gl4es: New Package

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2021-03-29 17:04:12 +02:00
parent b11b34dc29
commit 93ed632afb
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# 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"
KEYWORDS="~amd64"
IUSE="egl X"
DEPEND="
media-libs/mesa[X?,egl?]
"
RDEPEND="${DEPEND}"
# 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"
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>contact@hacktivis.me</email>
<name>Haelwenn (lanodan) Monnier</name>
</maintainer>
<use>
<flag name="egl">Enable EGL support.</flag>
</use>
<upstream>
<remote-id type="github">ptitSeb/gl4es</remote-id>
</upstream>
</pkgmetadata>