blob: bd226aab5b7abd2258b08459c5f8cb30e9fc2838 (
plain)
1 # Description: A multi-platform library for OpenGL, OpenGL ES and Vulkan development
2 # URL: https://www.glfw.org
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libglvnd vulkan-loader xorg-libxcursor xorg-libxi xorg-libxinerama
5
6 name=glfw3
7 version=3.3.8
8 release=1
9 source=(https://github.com/glfw/glfw/releases/download/$version/glfw-$version.zip)
10
11 build() {
12 prt-get isinst ninja && PKGMK_GLFW+=' -G Ninja'
13
14 cmake -S glfw-$version -B build $PKGMK_GLFW \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_INSTALL_LIBDIR=lib \
17 -D CMAKE_BUILD_TYPE=Release \
18 -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
19 -D BUILD_SHARED_LIBS=ON
20
21 cmake --build build
22 DESTDIR=$PKG cmake --build build --target install
23 }
|