compat-32/freeglut-32/Pkgfile

27 lines
728 B
Plaintext

# Description: a free alternative to the OpenGL Utility Toolkit (GLUT) library
# URL: http://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.2.1
release=2
source=(https://downloads.sourceforge.net/project/freeglut/freeglut/$version/freeglut-$version.tar.gz
gcc10.patch)
build() {
patch -d freeglut-$version -p1 -i $SRC/gcc10.patch
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
}