opt/freeglut/Pkgfile

22 lines
567 B
Plaintext
Raw Normal View History

2019-11-02 09:28:52 +01:00
# Description: A free alternative to the OpenGL Utility Toolkit (GLUT) library.
2012-06-23 12:21:35 +02:00
# URL: http://freeglut.sourceforge.net/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: glu xorg-libxi
2006-02-23 16:26:10 +01:00
name=freeglut
2022-10-09 13:16:30 +02:00
version=3.4.0
2022-02-17 15:19:02 +01:00
release=1
source=(https://downloads.sourceforge.net/$name/$name-$version.tar.gz)
2006-02-23 16:26:10 +01:00
build() {
2020-08-05 14:31:01 +02:00
cmake -S$name-$version -Bbuild -GNinja \
2017-01-26 09:29:17 +01:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release
2012-06-23 12:21:35 +02:00
2020-08-05 14:31:01 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-11-02 09:28:52 +01:00
ln -s glut.pc $PKG/usr/lib/pkgconfig/freeglut.pc
2006-02-23 16:26:10 +01:00
}