From fa5138cc28eefc76aa85b57da8827142c9157e5f Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 24 Aug 2019 15:37:15 +0200 Subject: [PATCH] New package: glfw-wayland-3.3 --- srcpkgs/glfw-wayland/template | 29 +++++++++++++++++++++++++++++ srcpkgs/glfw/template | 1 + 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/glfw-wayland/template diff --git a/srcpkgs/glfw-wayland/template b/srcpkgs/glfw-wayland/template new file mode 100644 index 00000000000..5df3a169b82 --- /dev/null +++ b/srcpkgs/glfw-wayland/template @@ -0,0 +1,29 @@ +# Template file for 'glfw-wayland' +pkgname=glfw-wayland +version=3.3 +revision=1 +wrksrc=glfw-${version} +build_style=cmake +configure_args="-DBUILD_SHARED_LIBS=ON -DGLFW_USE_WAYLAND=ON" +hostmakedepends="extra-cmake-modules pkg-config" +makedepends="MesaLib-devel glu-devel wayland-devel wayland-protocols + libxkbcommon-devel" +short_desc="Multi-platform library for creating windows with OpenGL contexts" +maintainer="q66 " +license="Zlib" +homepage="http://www.glfw.org" +distfiles="${SOURCEFORGE_SITE}/glfw/glfw-${version}.tar.bz2" +checksum=32797630af0da94a1a05302bca0435eae352f593197a04670d797de2e492a5a5 +provides="glfw-${version}_${revision}" +replaces="glfw>=0" + +if [ "$CROSS_BUILD" ]; then + # wayland-scanner + hostmakedepends+=" wayland-devel" +fi + +do_install() { + vmkdir usr/lib + install -m755 ${wrksrc}/build/src/libglfw.so.${version} ${DESTDIR}/usr/lib/ + ln -s libglfw.so.${version} ${DESTDIR}/usr/lib/libglfw.so.3 +} diff --git a/srcpkgs/glfw/template b/srcpkgs/glfw/template index 3e6789725f0..5a040e62c44 100644 --- a/srcpkgs/glfw/template +++ b/srcpkgs/glfw/template @@ -1,4 +1,5 @@ # Template file for 'glfw' +# update together with glfw-wayland pkgname=glfw version=3.3 revision=1