compat-32/freeglut-32/Pkgfile

25 lines
663 B
Plaintext
Raw Normal View History

# 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
2019-08-27 13:48:19 +02:00
# Depends on: freeglut glu-32 xorg-libxi-32
name=freeglut-32
2022-02-16 22:52:51 +01:00
version=3.2.2
release=1
source=(https://downloads.sourceforge.net/project/freeglut/freeglut/$version/freeglut-$version.tar.gz)
build() {
2017-01-28 09:33:11 +01:00
2020-08-05 14:31:37 +02:00
cmake -Sfreeglut-$version -Bbuild -GNinja \
2017-01-28 09:33:11 +01:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_BUILD_TYPE=Release
2020-08-05 14:31:37 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2017-01-28 09:33:11 +01:00
2019-11-02 11:21:31 +01:00
ln -s glut.pc $PKG/usr/lib32/pkgconfig/freeglut.pc
2017-01-28 09:33:11 +01:00
rm -r $PKG/usr/include
}