aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeglut
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-21 21:00:02 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-21 21:00:02 -0600
commit77acdd477c175a0ec06efb024e99dfe7306e4261 (patch)
treeea99da404040cb4fb404f9c941c8f8011eec28e6 /main/freeglut
parent487f42f4488698652bc8f6b986571276bff141b5 (diff)
downloadaports-77acdd477c175a0ec06efb024e99dfe7306e4261.tar.bz2
aports-77acdd477c175a0ec06efb024e99dfe7306e4261.tar.xz
main/freeglut: promote from testing
Diffstat (limited to 'main/freeglut')
-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"