[Frugalware-git] frugalware-current: qwt-5.0.2-1-i686

crazy crazy at frugalware.org
Mon Nov 26 22:11:57 CET 2007


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=9666426a170d3920af288174d96816295f82f5dc

commit 9666426a170d3920af288174d96816295f82f5dc
Author: crazy <crazy at frugalware.org>
Date:   Mon Nov 26 22:10:39 2007 +0100

qwt-5.0.2-1-i686
* New package

diff --git a/source/xlib-extra/qwt/FrugalBuild b/source/xlib-extra/qwt/FrugalBuild
new file mode 100644
index 0000000..0fe389d
--- /dev/null
+++ b/source/xlib-extra/qwt/FrugalBuild
@@ -0,0 +1,46 @@
+# Compiling Time: 0.86 SBU
+# Maintainer: crazy <crazy at frugalware.org>
+
+pkgname=qwt
+pkgver=5.0.2
+pkgrel=1
+pkgdesc="2D plotting library (Qt4)"
+depends=('libqtsvg')
+makedepends=('qt4-designer')
+groups=('xlib-extra')
+archs=('i686')
+_F_sourceforge_ext=".tar.bz2"
+Finclude sourceforge
+source=($source config.pri.patch)
+sha1sums=('f1a415847691e271e9f6b3b243ab2e7cb270a034' \
+          'bfb42f6f6fa48977839588fff7cb1b09f9d475f2')
+
+subpkgs=("$pkgname-docs" "$pkgname-designer-plugin")
+subdescs=('Documentation for Qwt' 'Qwt Qt4 Designer Plugin.')
+subdepends=('' "$pkgname=$pkgver qt4-designer")
+subgroups=('docs-extra' 'xlib-extra')
+subarchs=('i686' 'i686')
+
+build()
+{
+	## WOW what a nice build system ;)
+	unset MAKEFLAGS
+
+	Fcd
+	Fpatchall
+	/usr/bin/qmake qwt.pro || Fdie
+	make || Fdie
+	cd designer || Fdie
+	/usr/bin/qmake designer.pro || Fdie
+	make || Fdie
+	make INSTALL_ROOT=$Fdestdir install || Fdie
+	cd .. || Fdie
+	make INSTALL_ROOT=$Fdestdir install || Fdie
+	Fmkdir usr/share/doc/$pkgname-$pkgver
+	Fmv usr/share/html usr/share/doc/$pkgname-$pkgver/
+	Frm usr/share/man/man3/todo*
+	Fsplit $pkgname-docs usr/share/doc/$pkgname-$pkgver/html
+	Fsplit $pkgname-designer-plugin usr/lib/qt4
+}
+
+# optimization OK
diff --git a/source/xlib-extra/qwt/config.pri.patch b/source/xlib-extra/qwt/config.pri.patch
new file mode 100644
index 0000000..c011fa5
--- /dev/null
+++ b/source/xlib-extra/qwt/config.pri.patch
@@ -0,0 +1,39 @@
+diff -Naur qwt-5.0.2/qwtconfig.pri qwt-5.0.2-p/qwtconfig.pri
+--- qwt-5.0.2/qwtconfig.pri	2007-06-11 07:41:29.000000000 +0200
++++ qwt-5.0.2-p/qwtconfig.pri	2007-11-26 20:25:03.000000000 +0100
+@@ -3,7 +3,7 @@
+ ######################################################################
+
+ unix {
+-    INSTALLBASE    = /usr/local/qwt-5.0.2
++    INSTALLBASE    = /usr
+ }
+
+ win32 {
+@@ -12,7 +12,7 @@
+
+ target.path    = $$INSTALLBASE/lib
+ headers.path   = $$INSTALLBASE/include
+-doc.path       = $$INSTALLBASE/doc
++doc.path       = $$INSTALLBASE/share
+
+ ######################################################################
+ # qmake internal options
+@@ -58,7 +58,7 @@
+ # QwtSVGItem.
+ ######################################################################
+
+-#CONFIG     += QwtSVGItem
++CONFIG     += QwtSVGItem
+
+ ######################################################################
+ # If you have a commercial license you can use the MathML renderer
+@@ -75,7 +75,7 @@
+ # Otherwise you have to build it from the designer directory.
+ ######################################################################
+
+-CONFIG     += QwtDesigner
++CONFIG     += QwtDesigner
+
+ ######################################################################
+ # If you want to auto build the examples, enable the line below


More information about the Frugalware-git mailing list