diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/qwtplot3d |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/qwtplot3d')
-rw-r--r-- | extra/qwtplot3d/PKGBUILD | 42 | ||||
-rw-r--r-- | extra/qwtplot3d/qwtplot3d-gcc44.patch | 12 |
2 files changed, 54 insertions, 0 deletions
diff --git a/extra/qwtplot3d/PKGBUILD b/extra/qwtplot3d/PKGBUILD new file mode 100644 index 000000000..ec339174d --- /dev/null +++ b/extra/qwtplot3d/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 64675 2010-01-21 21:29:39Z eric $ +# Maintainer: damir <damir@archlinux.org> + +pkgname=qwtplot3d +pkgver=0.2.7 +origver=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>=4.3' 'qwt>=5.0.2') +source=("http://downloads.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-$origver.tgz" + qwtplot3d-gcc44.patch) +md5sums=('2f14660152e2e26bfeaaeec479ed9f2b' '92ad261ed5344bc773cba05b324cfe74') +sha1sums=('4463fafb8420a91825e165da7a296aaabd70abea' '52fa169b651a98550f8a8391ddf52e0eaeb2c215') + +build() { + cd $startdir/src/$pkgname + patch -p1 < ../qwtplot3d-gcc44.patch || return 1 + # . /etc/profile.d/qt3.sh + # build qwt: + qmake qwtplot3d.pro + make || return 1 + + # install qwtplot3d: (by hand, because the Makefile do not provide a "install:") + mkdir -p $startdir/pkg/usr/{include/qwtplot3d,lib} + # mkdir -p $startdir/pkg/usr/man/man3 .. no manpages yet + + for n in include/* ; do + cp -d $n $startdir/pkg/usr/include/qwtplot3d || return 1 + done + + for n in lib/libqwtplot3d.so* ; do + cp -d $n $startdir/pkg/usr/lib || return 1 + done + + # for n in doc/man/man3/*.3 ; do + # install -m 644 $n $startdir/pkg/usr/man/man3 + # done +} + diff --git a/extra/qwtplot3d/qwtplot3d-gcc44.patch b/extra/qwtplot3d/qwtplot3d-gcc44.patch new file mode 100644 index 000000000..a76fe831a --- /dev/null +++ b/extra/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 |