# Maintainer: PktSurf app=freeglut version=3.4.0 build=1sml homepage="https://freeglut.sourceforge.net/" download="https://prdownloads.sourceforge.net/freeglut/freeglut-$version.tar.gz" desc="Provides functionality for small OpenGL programs" requires="glu" prepbuilddir() { mkandenterbuilddir rm -rf $app-$version tar xf $srcdir/$app-$version.tar.?z* cd $app-$version fixbuilddirpermissions } build() { mkdir -p smbuild && cd smbuild cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DFREEGLUT_BUILD_DEMOS=ON \ -DCMAKE_INSTALL_LIBDIR=lib \ -DFREEGLUT_BUILD_SHARED_LIBS=ON \ -DFREEGLUT_BUILD_STATIC_LIBS=OFF make make install DESTDIR=$pkg cp ../COPYING $pkgdocs/ mkfinalpkg } sha512sums=" fddac6a7e16a52aafb5e1ab307014a103d29b239bd532ea04dd535432a10b8d47db3cd865793453edbef291994c02ea14d1e96ee284764bb37d7ea720517a9cc freeglut-3.4.0.tar.lz "