summaryrefslogtreecommitdiff
path: root/community/soil/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/soil/PKGBUILD')
-rw-r--r--community/soil/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/soil/PKGBUILD b/community/soil/PKGBUILD
new file mode 100644
index 000000000..ce0fae6b5
--- /dev/null
+++ b/community/soil/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id: PKGBUILD 21193 2010-07-15 00:17:24Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=soil
+pkgver=0708
+pkgrel=1
+pkgdesc="tiny C lib primarily for loading textures into OpenGL"
+arch=('i686' 'x86_64')
+url="http://www.lonesock.net/soil.html"
+license=('public')
+makedepends=('unzip')
+depends=('freeglut')
+#options=('!libtool')
+source=("http://www.lonesock.net/files/soil.zip")
+md5sums=('4736ac4f34fd9a41fa0197eac23bbc24')
+
+build() {
+ cd "${srcdir}/Simple OpenGL Image Library/projects/makefile"
+ [[ -d obj ]] && rm -r obj/
+ mkdir obj/
+
+ sed "s|LOCAL = /usr/local|LOCAL = ${pkgdir}/usr|g" -i makefile || return 1
+ sed "s|CXXFLAGS = |CXXFLAGS = -fPIC |g" -i makefile || return 1
+ mkdir -p ${pkgdir}/usr/{lib,include}
+ make || return 1
+ make install || return 1
+ chmod 644 ${pkgdir}/usr/lib/libSOIL.a
+}