aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrfaa <rfaa@rfaa.se>2020-04-22 23:23:16 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-06-13 09:23:29 -0300
commit5e88e13df8a88c9ef52f7a8db16e1a9a84d3b04e (patch)
tree2349c62e7ab8829437e320631cbb4bd12e8a7ce2
parent2159fb3cb1b2c3c2dd8afa85f77e58e68c3c8a64 (diff)
downloadaports-5e88e13df8a88c9ef52f7a8db16e1a9a84d3b04e.tar.gz
aports-5e88e13df8a88c9ef52f7a8db16e1a9a84d3b04e.tar.bz2
aports-5e88e13df8a88c9ef52f7a8db16e1a9a84d3b04e.tar.xz
testing/glfw-wayland: new aport
https://www.glfw.org Multi-platform library for OpenGL and Vulkan application development targeting Wayland instead of X11 Co-authored-by: Leo <thinkabit.ukim@gmail.com>
-rw-r--r--testing/glfw-wayland/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/glfw-wayland/APKBUILD b/testing/glfw-wayland/APKBUILD
new file mode 100644
index 0000000000..30be251aa6
--- /dev/null
+++ b/testing/glfw-wayland/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: rfaa <rfaa@rfaa.se>
+pkgname=glfw-wayland
+pkgver=3.3.2
+pkgrel=0
+pkgdesc="Multi-platform library for OpenGL and Vulkan application development (Wayland)"
+options="!check" # tests requires a working wayland session
+url="https://www.glfw.org/"
+arch="all"
+license="Zlib"
+depends_dev="linux-headers mesa-dev extra-cmake-modules wayland-dev wayland-protocols
+ libxkbcommon-dev"
+makedepends="$depends_dev cmake"
+subpackages="$pkgname-dev"
+source="glfw-$pkgver.tar.gz::https://github.com/glfw/glfw/archive/$pkgver.tar.gz"
+builddir="$srcdir/glfw-$pkgver"
+
+provides="glfw=$pkgver-r$pkgrel"
+replaces="glfw"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGLFW_USE_WAYLAND=ON
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+
+dev() {
+ provides="glfw-dev=$pkgver-r$pkgrel"
+ replaces="glfw-dev"
+
+ default_dev
+}
+
+sha512sums="f5af749d33b5b900ccf07988ad0bf51bd766a18e4cf2bc2a76020c88e98a2528ff1b965224184fe0d290cfe34b1af1e6f633600660d81194fe354078e2f35c56 glfw-3.3.2.tar.gz"