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="http://freeglut.sourceforge.net/"
12 depends=(libxi libxrandr libgl)
13 makedepends=(mesa glu libxxf86vm cmake ninja)
18 source=(https://downloads.sourceforge.net/freeglut/freeglut-$pkgver.tar.gz)
19 sha512sums=('190231951d314f854c244bd27f7c20488403bd0eecffc342097a2e3d1621cec87f6c209a77b4c153aabcf44697b4070227930e295ab74fb88953cbbf94fc81d9')
26 cmake -S freeglut-$pkgver -B build -G Ninja \
27 -DFREEGLUT_BUILD_STATIC_LIBS=OFF \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 -DCMAKE_INSTALL_LIBDIR=lib \
30 -DCMAKE_BUILD_TYPE=None
35 DESTDIR="$pkgdir" cmake --install build
36 ln -sr "$pkgdir"/usr/lib/pkgconfig/{glut,freeglut}.pc
37 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 freeglut-$pkgver/COPYING