#Packager: Panagiotis Papasotiriou
pkgname=glfw pkgver=3.2 pkgrel=2pp source=("https://github.com/glfw/glfw/releases/download/$pkgver/$pkgname-$pkgver.zip") sourcetemplate=http://people.salixos.org/papasot/salix/$pkgname url="http://www.glfw.org" docs=("COPYING.txt" "README.md") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "GLFW (OpenGL framework)" "GLFW is a free, Open Source, multi-platform library for opening a" "window, creating an OpenGL context and managing input. It is easy to" "integrate into existing applications and does not lay claim to the" "main loop." "GLFW is written in C and has native support for Windows, Mac OS X and" "many Unix-like systems using the X Window System, such as Linux and" "FreeBSD." "" "HomePage: http://www.glfw.org" ) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p glfw-build cd glfw-build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DBUILD_SHARED_LIBS=ON \ -DGLFW_BUILD_DOCS=OFF \ -DGLFW_BUILD_EXAMPLES=OFF \ -DGLFW_BUILD_TESTS=OFF \ -DGLFW_DOCUMENT_INTERNALS=OFF \ -DGLFW_USE_MIR=OFF \ -DGLFW_USE_WAYLAND=OFF \ -DCMAKE_BUILD_TYPE=Release .. make -j $numjobs || exit 1 make install DESTDIR=$startdir/pkg cd .. }