29 lines
657 B
Plaintext
29 lines
657 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.2.1
|
|
release=1
|
|
source=(https://downloads.sourceforge.net/project/freeglut/freeglut/$version/freeglut-$version.tar.gz)
|
|
|
|
build() {
|
|
cd freeglut-$version
|
|
|
|
install -d build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib32 \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
ln -s glut.pc $PKG/usr/lib32/pkgconfig/freeglut.pc
|
|
|
|
rm -r $PKG/usr/include
|
|
}
|