summaryrefslogtreecommitdiff
path: root/staging/qwtplot3d
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-16 05:34:06 +0000
committerroot <root@rshg047.dnsready.net>2011-07-16 05:34:06 +0000
commit7500119d8dd5fc921f91aac8222e472477973740 (patch)
treea2cd26c3dd70d079a9f97fc3d5549ea649baf863 /staging/qwtplot3d
parent76c26b027d797f3671bf0b6c6618eda2496cf88d (diff)
Sat Jul 16 05:34:06 UTC 2011
Diffstat (limited to 'staging/qwtplot3d')
-rw-r--r--staging/qwtplot3d/PKGBUILD42
-rw-r--r--staging/qwtplot3d/qwtplot3d-gcc44.patch12
2 files changed, 54 insertions, 0 deletions
diff --git a/staging/qwtplot3d/PKGBUILD b/staging/qwtplot3d/PKGBUILD
new file mode 100644
index 000000000..5b4b28295
--- /dev/null
+++ b/staging/qwtplot3d/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 131787 2011-07-15 09:10:59Z ronald $
+# Maintainer: damir <damir@archlinux.org>
+
+pkgname=qwtplot3d
+pkgver=0.2.7
+pkgrel=2
+pkgdesc="Qt/OpenGL-based C++ programming library containing 3d-widgets"
+arch=("i686" "x86_64")
+license=('custom:zlib')
+url="http://qwtplot3d.sourceforge.net/"
+depends=('qt' 'qwt' 'mesa')
+source=("http://downloads.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-$pkgver.tgz"
+ qwtplot3d-gcc44.patch)
+sha1sums=('4463fafb8420a91825e165da7a296aaabd70abea' '52fa169b651a98550f8a8391ddf52e0eaeb2c215')
+
+build() {
+ cd ${srcdir}/${pkgname}
+ patch -p1 < ../qwtplot3d-gcc44.patch
+
+ # build qwt:
+ qmake qwtplot3d.pro
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}
+
+ # install qwtplot3d: (by hand, because the Makefile do not provide a "install:")
+ install -d ${pkgdir}/usr/{include/qwtplot3d,lib}
+
+ for n in include/* ; do
+ cp -d $n ${pkgdir}/usr/include/qwtplot3d
+ done
+
+ for n in lib/libqwtplot3d.so* ; do
+ cp -d $n ${pkgdir}/usr/lib
+ done
+
+ # install custom license
+ install -Dm644 ${srcdir}/${pkgname}/COPYING ${pkgdir}/usr/share/licenses/qwtplot3d/LICENSE
+}
+
diff --git a/staging/qwtplot3d/qwtplot3d-gcc44.patch b/staging/qwtplot3d/qwtplot3d-gcc44.patch
new file mode 100644
index 000000000..a76fe831a
--- /dev/null
+++ b/staging/qwtplot3d/qwtplot3d-gcc44.patch
@@ -0,0 +1,12 @@
+diff -ur qwtplot3d-orig/include/qwt3d_function.h qwtplot3d/include/qwt3d_function.h
+--- qwtplot3d-orig/include/qwt3d_function.h 2009-07-25 18:18:58.000000000 -0400
++++ qwtplot3d/include/qwt3d_function.h 2009-07-25 18:19:19.000000000 -0400
+@@ -2,6 +2,7 @@
+ #define qwt3d_function_h__2004_03_05_13_51_begin_guarded_code
+
+ #include "qwt3d_gridmapping.h"
++#include <cstdio>
+
+ namespace Qwt3D
+ {
+Only in qwtplot3d/tmp: qwt3d_function.o