| Name |
freeglut |
| Description |
free reimplementation of OpenGL Utility Toolkit (GLUT) library |
| Version |
3.6.0-r4 |
| Package Base |
freeglut |
| Homepage |
https://freeglut.sourceforge.net/ |
| Maintainers |
['Aaron Fischer <mail@aaron-fischer.net>'] |
| Contributors |
['Aaron Fischer <mail@aaron-fischer.net>'] |
| Distro-repo |
https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/community/freeglut |
| Sources |
['https://downloads.sourceforge.net/freeglut/freeglut-3.6.0-r4.tar.gz'] |
| Dependencies |
['libGL.so.1', 'libX11.so.6', 'libXi.so.6', 'libXxf86vm.so.1', 'libc.musl-x86_64.so.1'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['$depends_dev', 'cmake', 'samurai'] |
| Provides |
['so:libglut.so.3=3.12.1'] |
| Builddate |
26-01-2025 02:59:21 |
| Architecture |
x86_64 |
| Distro-Version |
v3.22 |
| Licenses |
['MIT'] |
| Hash |
Q1LU5CxMd3cI+3sDlfQxnLvxflgRY= |
# Contributor: Aaron Fischer <mail@aaron-fischer.net>
# Maintainer: Aaron Fischer <mail@aaron-fischer.net>
pkgname=freeglut
pkgver=3.6.0
pkgrel=4
pkgdesc="free reimplementation of OpenGL Utility Toolkit (GLUT) library"
url="https://freeglut.sourceforge.net/"
arch="all"
options="!check" # No test suite.
license="MIT"
depends_dev="mesa-dev libx11-dev libice-dev libxxf86vm-dev libxi-dev glu-dev"
makedepends="$depends_dev cmake samurai"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/freeglut/freeglut-$pkgver.tar.gz"
build() {
CFLAGS="$CFLAGS -flto=auto" \
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DFREEGLUT_BUILD_STATIC_LIBS=0
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
# Symlink glut.pc to freeglut.pc for backwards compatibility
ln -s glut.pc "$pkgdir"/usr/lib/pkgconfig/freeglut.pc
}
sha512sums="
ceb5dd9ea86e915acb177e405e79b92f77cf3213ba21fe200491d0b1150dd9c81835b71cb8a928bd514eb719626ff802250429df2f6dfa33f8e181c3f74b2dd0 freeglut-3.6.0.tar.gz
"