aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeglut/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/freeglut/APKBUILD')
-rw-r--r--main/freeglut/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/freeglut/APKBUILD b/main/freeglut/APKBUILD
new file mode 100644
index 0000000000..a6ea184fbc
--- /dev/null
+++ b/main/freeglut/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=freeglut
+pkgver=2.6.0
+pkgrel=0
+pkgdesc="free reimplementation of OpenGL Utility Toolkit (GLUT) library"
+url="http://freeglut.sourceforge.net/"
+arch="all"
+license="Custom"
+depends=
+depends_dev="mesa-dev libx11-dev libice-dev libxxf86vm-dev libxi-dev"
+makedepends="$depends_dev"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+
+ make DESTDIR="$pkgdir" install || return 1
+
+ install -m644 -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+md5sums="39f0f2de89f399529d2b981188082218 freeglut-2.6.0.tar.gz"