2023-08-27 17:48:50 +02: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/
|
2023-08-27 17:48:50 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2012-10-12 10:54:05 +11:00
|
|
|
# Depends on: glu xorg-libxi
|
2006-02-23 15:26:10 +00: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 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2023-08-27 17:48:50 +02:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-Wno-dev
|
2012-06-23 20:21:35 +10:00
|
|
|
|
2023-08-27 17:48:50 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-11-02 19:28:52 +11:00
|
|
|
|
2023-08-27 17:48:50 +02:00
|
|
|
ln -s glut.pc $PKG/usr/lib/pkgconfig/freeglut.pc
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|