From 004d29a8fb81b65c79bd726b0f2e6dd48f41338d Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 27 Jun 2019 17:21:54 -0300 Subject: community/glslang: move from testing --- community/glslang/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 community/glslang/APKBUILD (limited to 'community/glslang') diff --git a/community/glslang/APKBUILD b/community/glslang/APKBUILD new file mode 100644 index 0000000000..a37f023aed --- /dev/null +++ b/community/glslang/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Leo +# Maintainer: Leo +pkgname=glslang +pkgver=7.11.3214 +pkgrel=0 +pkgdesc="Khronos reference front-end for GLSL, ESSL, and sample SPIR-V generator" +options="!check" # Requires git checkout of gmock +url="https://github.com/KhronosGroup/glslang" +arch="all" +license="BSD-3-Clause" +depends_dev="$pkgname" +makedepends="cmake python3 bison" +subpackages="$pkgname-static $pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DBUILD_SHARED_LIBS=ON \ + ${CMAKE_CROSSOPTS} . + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="5e7f8c063b30fc5edf65898b2371f4128aead05008865d065de9d3a94354de787035067ec908651c7e88bf294251d1410929d2b1c19e03d9b51476ea8a7eae96 glslang-7.11.3214.tar.gz" -- cgit v1.2.3