summaryrefslogtreecommitdiffstats
path: root/main/glew
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2010-09-15 23:56:11 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2010-09-21 08:20:52 +0000
commitbfe5eb04bb901a65ee316659f3139a4e5bba2bcf (patch)
tree817539c2d665766a2780ad4413c425f2f24840b7 /main/glew
parent5eff9fc615e50fa82bd4428006231b95042cb83a (diff)
downloadaports-bfe5eb04bb901a65ee316659f3139a4e5bba2bcf.tar.bz2
aports-bfe5eb04bb901a65ee316659f3139a4e5bba2bcf.tar.xz
main/glew: new apkbuild
(cherry picked from commit 629f680075617ff64e8454b3f72bb15bb8de2fbc)
Diffstat (limited to 'main/glew')
-rw-r--r--main/glew/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/glew/APKBUILD b/main/glew/APKBUILD
new file mode 100644
index 000000000..a6d1b1a8e
--- /dev/null
+++ b/main/glew/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Carlo Landmeter
+# Maintainer:
+pkgname=glew
+pkgver=1.5.5
+pkgrel=0
+pkgdesc="A cross-platform C/C++ extension loading library"
+url="http://glew.sourceforge.net"
+license="GPL"
+depends=
+makedepends="libxmu-dev libxi-dev mesa-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ sed -i 's|lib64|lib|' config/Makefile.linux || return 1
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make GLEW_DEST="${pkgdir}/usr" install
+ install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+md5sums="3621f27cfd3e33d5dbcc1111ecb5b762 glew-1.5.5.tgz"