27 lines
728 B
Plaintext
Raw Normal View History

# Description: a free alternative to the OpenGL Utility Toolkit (GLUT) library
2017-01-28 19:33:11 +11:00
# URL: https://freeglut.sourceforge.net
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2019-08-27 21:48:19 +10:00
# Depends on: freeglut glu-32 xorg-libxi-32
name=freeglut-32
2019-11-02 21:21:31 +11:00
version=3.2.1
2020-08-05 22:31:37 +10:00
release=2
source=(https://downloads.sourceforge.net/project/freeglut/freeglut/$version/freeglut-$version.tar.gz
gcc10.patch)
build() {
2020-08-05 22:31:37 +10:00
patch -d freeglut-$version -p1 -i $SRC/gcc10.patch
2017-01-28 19:33:11 +11:00
2020-08-05 22:31:37 +10:00
cmake -Sfreeglut-$version -Bbuild -GNinja \
2017-01-28 19:33:11 +11:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_BUILD_TYPE=Release
2020-08-05 22:31:37 +10:00
cmake --build build
DESTDIR=$PKG cmake --install build
2017-01-28 19:33:11 +11:00
2019-11-02 21:21:31 +11:00
ln -s glut.pc $PKG/usr/lib32/pkgconfig/freeglut.pc
2017-01-28 19:33:11 +11:00
rm -r $PKG/usr/include
}