compat-32/freeglut-32/Pkgfile

25 lines
664 B
Plaintext

# Description: a free alternative to the OpenGL Utility Toolkit (GLUT) library
# URL: https://freeglut.sourceforge.net/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: freeglut glu-32 xorg-libxi-32
name=freeglut-32
version=3.4.0
release=1
source=(https://downloads.sourceforge.net/project/freeglut/freeglut/$version/freeglut-$version.tar.gz)
build() {
cmake -Sfreeglut-$version -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
DESTDIR=$PKG cmake --install build
ln -s glut.pc $PKG/usr/lib32/pkgconfig/freeglut.pc
rm -r $PKG/usr/include
}