summaryrefslogtreecommitdiff
path: root/user/freeglut
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-28 00:56:19 -0700
committerDan Theisen <djt@hxx.in>2018-09-28 00:56:27 -0700
commitecccc0198edd54987ca118729976c595b8e87c02 (patch)
tree4418c2938cbecab0a8459d32c41a6ea5cbbced21 /user/freeglut
parenta5867742cf8df0a275e12adb604ce74c8ee9869f (diff)
downloadpackages-ecccc0198edd54987ca118729976c595b8e87c02.tar.gz
packages-ecccc0198edd54987ca118729976c595b8e87c02.tar.bz2
packages-ecccc0198edd54987ca118729976c595b8e87c02.tar.xz
packages-ecccc0198edd54987ca118729976c595b8e87c02.zip
user/freeglut: new package
Diffstat (limited to 'user/freeglut')
-rw-r--r--user/freeglut/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/freeglut/APKBUILD b/user/freeglut/APKBUILD
new file mode 100644
index 000000000..f89c0cac6
--- /dev/null
+++ b/user/freeglut/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=freeglut
+pkgver=3.0.0
+pkgrel=0
+pkgdesc="free reimplementation of OpenGL Utility Toolkit (GLUT) library"
+url="http://freeglut.sourceforge.net/"
+arch="all"
+options="!check" # No test suite.
+license="X11"
+depends_dev="mesa-dev libx11-dev libice-dev libxxf86vm-dev libxi-dev glu-dev"
+makedepends="$depends_dev cmake"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ cmake . \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DFREEGLUT_BUILD_STATIC_LIBS=0
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+
+ install -m644 -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+sha512sums="9c45d5b203b26a7ff92331b3e080a48e806c92fbbe7c65d9262dd18c39cd6efdad8a795a80f499a2d23df84b4909dbd7c1bab20d7dd3555d3d88782ce9dd15b0 freeglut-3.0.0.tar.gz"