1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Eric Belanger <eric@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
8 pkgdesc="Provides functionality for small OpenGL programs"
9 url="https://freeglut.sourceforge.net/"
12 depends=(libxi libxrandr libgl)
13 makedepends=(mesa glu libxxf86vm cmake ninja git)
17 _commit=63c0e78d84ecbfcf8accd8bac04404427899053b # tags/v3.4.0
18 source=("git+https://github.com/FreeGLUTProject/freeglut#commit=$_commit")
23 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
31 cmake -S freeglut -B build -G Ninja \
32 -DFREEGLUT_BUILD_STATIC_LIBS=OFF \
33 -DCMAKE_INSTALL_PREFIX=/usr \
34 -DCMAKE_INSTALL_LIBDIR=lib \
35 -DCMAKE_BUILD_TYPE=None
40 DESTDIR="$pkgdir" cmake --install build
42 ln -s glut.pc "$pkgdir/usr/lib/pkgconfig/freeglut.pc"
44 install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" freeglut/COPYING
47 # vim:set sw=2 sts=-1 et: