36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'glfw'
|
|
# update together with glfw-wayland
|
|
pkgname=glfw
|
|
version=3.4
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS=ON"
|
|
hostmakedepends="pkg-config wayland-devel"
|
|
makedepends="MesaLib-devel libXrandr-devel libXi-devel glu-devel libXcursor-devel
|
|
libxkbcommon-devel libXinerama-devel wayland-devel wayland-protocols"
|
|
short_desc="Multi-platform library for creating windows with OpenGL contexts"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="Zlib"
|
|
homepage="http://www.glfw.org"
|
|
changelog="https://www.glfw.org/changelog.html"
|
|
distfiles="https://github.com/glfw/glfw/archive/${version}.tar.gz"
|
|
checksum=c038d34200234d071fae9345bc455e4a8f2f544ab60150765d7704e08f3dac01
|
|
|
|
glfw-wayland_package() {
|
|
build_style=meta
|
|
short_desc+=" - (transitional dummy package)"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
}
|
|
|
|
|
|
glfw-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove /usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|