contrib/glfw3/Pkgfile

22 lines
641 B
Plaintext
Raw Normal View History

2021-04-05 07:10:20 +02:00
# Description: A multi-platform library for OpenGL, OpenGL ES and Vulkan development
# URL: https://www.glfw.org
2023-08-21 02:28:21 +02:00
# Maintainer: unmaintained
2021-04-05 07:10:20 +02:00
# Depends on: libglvnd vulkan-loader xorg-libxcursor xorg-libxi xorg-libxinerama
name=glfw3
2022-07-23 22:40:45 +02:00
version=3.3.8
2021-04-05 07:10:20 +02:00
release=1
source=(https://github.com/glfw/glfw/releases/download/$version/glfw-$version.zip)
build() {
2023-08-18 20:41:09 +02:00
cmake -S glfw-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
-D BUILD_SHARED_LIBS=ON
2021-04-05 07:10:20 +02:00
2023-08-18 20:41:09 +02:00
ninja -C build -j ${JOBS-1}
DESTDIR=$PKG ninja -C build install
2021-04-05 07:10:20 +02:00
}