Commit 0eaedd76 authored by Leo's avatar Leo
Browse files

testing/gl4es: new aport

https://ptitseb.github.io/gl4es/
OpenGL 2.1/1.5 to GL ES 2.0/1.1 library
parent 3b016107
Pipeline #10535 passed with stages
in 2 minutes and 9 seconds
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=gl4es
pkgver=1.1.2
pkgrel=0
pkgdesc="OpenGL 2.1/1.5 to GL ES 2.0/1.1 library"
url="https://ptitseb.github.io/gl4es/"
arch="all"
license="MIT"
makedepends="cmake libx11-dev libexecinfo-dev linux-headers chrpath"
source="$pkgname-$pkgver.tar.gz::https://github.com/ptitSeb/gl4es/archive/v$pkgver.tar.gz"
replaces="mesa-gl" # provides /usr/lib/libGL.so.1
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="$CFLAGS" \
$CMAKE_CROSSOPTS .
make -C build
}
check() {
make -C build test
}
package() {
mkdir -p "$pkgdir"/usr/lib
chrpath -d build/lib/libGL.so.1
mv build/lib/libGL.so.1 "$pkgdir"/usr/lib
cd "$pkgdir"/usr/lib
mv libGL.so.1 libGL.so.1.1.2
ln -s libGL.so.1.1.2 libGL.so.1
}
sha512sums="b58a9b026381ee52ad9d8567f637c0ea0ed6ae576479fe0341d99e71c6000720c1777e08e0ed99ad6043760d3b3cb6901d50d399308e9a396cc26c207809279d gl4es-1.1.2.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment