diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/freeglut/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/freeglut/APKBUILD b/testing/freeglut/APKBUILD new file mode 100644 index 0000000000..2340ed4731 --- /dev/null +++ b/testing/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" +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" |