contrib/glfw3/Pkgfile

24 lines
712 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
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: libglvnd vulkan-loader xorg-libxcursor xorg-libxi xorg-libxinerama
name=glfw3
2021-04-11 07:24:28 +02:00
version=3.3.4
2021-04-05 07:10:20 +02:00
release=1
source=(https://github.com/glfw/glfw/releases/download/$version/glfw-$version.zip)
build() {
prt-get isinst ninja && PKGMK_GLFW+=' -G Ninja'
cmake -S glfw-$version -B build $PKGMK_GLFW \
-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
cmake --build build
DESTDIR=$PKG cmake --build build --target install
}