summaryrefslogtreecommitdiff
path: root/community/soil
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/soil
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/soil')
-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
+}