1
0
forked from ports/opt
opt/freeglut/Pkgfile

25 lines
630 B
Plaintext
Raw Normal View History

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
# 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
2020-08-05 22:31:01 +10:00
release=2
source=(https://downloads.sourceforge.net/$name/$name-$version.tar.gz
gcc10.patch)
2006-02-23 15:26:10 +00:00
build() {
2020-08-05 22:31:01 +10:00
patch -d $name-$version -p1 -i $SRC/gcc10.patch
2012-06-23 20:21:35 +10:00
2020-08-05 22:31:01 +10:00
cmake -S$name-$version -Bbuild -GNinja \
2017-01-26 19:29:17 +11:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release
2012-06-23 20:21:35 +10:00
2020-08-05 22:31:01 +10:00
cmake --build build
DESTDIR=$PKG cmake --install build
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
}