2019-11-02 19:28:52 +11:00
|
|
|
# Description: A free alternative to the OpenGL Utility Toolkit (GLUT) library.
|
2012-06-23 20:21:35 +10:00
|
|
|
# URL: http://freeglut.sourceforge.net/
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2012-10-12 10:54:05 +11:00
|
|
|
# Depends on: glu xorg-libxi
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=freeglut
|
2019-11-02 19:28:52 +11:00
|
|
|
version=3.2.1
|
2013-04-10 18:46:35 +10:00
|
|
|
release=1
|
2019-11-02 19:28:52 +11:00
|
|
|
source=(https://downloads.sourceforge.net/$name/$name-$version.tar.gz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2012-06-23 20:21:35 +10:00
|
|
|
cd $name-$version
|
|
|
|
|
2017-01-26 19:29:17 +11:00
|
|
|
install -d build
|
|
|
|
cd build
|
2012-10-12 10:54:05 +11:00
|
|
|
|
2017-01-26 19:29:17 +11:00
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
2012-06-23 20:21:35 +10:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2019-11-02 19:28:52 +11:00
|
|
|
|
|
|
|
ln -s glut.pc $PKG/usr/lib/pkgconfig/freeglut.pc
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|