forked from ports/contrib
22 lines
641 B
Plaintext
22 lines
641 B
Plaintext
# Description: A multi-platform library for OpenGL, OpenGL ES and Vulkan development
|
|
# URL: https://www.glfw.org
|
|
# Maintainer: unmaintained
|
|
# Depends on: libglvnd vulkan-loader xorg-libxcursor xorg-libxi xorg-libxinerama
|
|
|
|
name=glfw3
|
|
version=3.3.8
|
|
release=1
|
|
source=(https://github.com/glfw/glfw/releases/download/$version/glfw-$version.zip)
|
|
|
|
build() {
|
|
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
|
|
|
|
ninja -C build -j ${JOBS-1}
|
|
DESTDIR=$PKG ninja -C build install
|
|
}
|