The Qwt library contains GUI Components and utility classes which

are primarily useful for programs with a technical background. Beside
a 2D plot widget it provides scales, sliders, dials, compasses,
thermometers, wheels and knobs to control or display values, arrays,
or ranges of type double.

help and okay steven@
This commit is contained in:
merdely 2007-09-14 01:19:24 +00:00
parent 8b19837696
commit b417d0254a
10 changed files with 1274 additions and 0 deletions

73
x11/qwt/Makefile Normal file
View File

@ -0,0 +1,73 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/09/14 01:19:24 merdely Exp $
SHARED_ONLY= Yes
COMMENT= Qt Widgets for Technical Applications
DISTNAME= qwt-5.0.2
SHARED_LIBS= qwt 5.0
CATEGORIES= x11
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://qwt.sourceforge.net/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qwt/}
MAINTAINER= Michael Erdely <merdely@openbsd.org>
# Qwt License, Version 1.0
# http://qwt.sourceforge.net/qwtlicense.html
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= x11/qt4
NO_REGRESS= Yes
USE_GMAKE= Yes
MAKE_FLAGS= LIBqwt_VERSION=${LIBqwt_VERSION}
FAKE_FLAGS= LIBqwt_VERSION=${LIBqwt_VERSION} \
${DESTDIRNAME}=${WRKINST}
WANTLIB+= ICE SM X11 Xcursor Xext Xfixes Xi Xinerama Xrandr
WANTLIB+= Xrender fontconfig freetype glib-2.0 gthread-2.0 iconv
WANTLIB+= intl m png z
LIB_DEPENDS= QtDesigner.>=7,QtGui.>=8,QtScript,QtXml.>=7::x11/qt4
# svgmap example not included to prevent the need of svg dependencies
EXAMPLES= bode realtime_plot cpuplot dials radio event_filter \
data_plot sliders histogram spectrogram sysinfo \
curvdemo1 curvdemo2 simple_plot
pre-configure:
@perl -pi -e 's,!!PREFIX!!,${WRKINST}${PREFIX},' \
${WRKSRC}/qwtconfig.pri
@perl -pi -e 's,!!QTDIR!!,${WRKINST}${PREFIX}/lib/qt4,' \
${WRKSRC}/designer/designer.pro
@perl -pi -e 's,!!PREFIX!!,${PREFIX},' \
${WRKSRC}/examples/examples.pri
do-configure:
cd ${WRKSRC} && qmake4
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/* ${PREFIX}/man/man3/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qwt
@sed -e 's,!!PREFIX!!,${TRUEPREFIX},' ${FILESDIR}/README.OpenBSD > \
${WRKBUILD}/README.OpenBSD
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
${PREFIX}/share/examples/qwt/
@sed -e 's,!!EXAMPLES!!,${EXAMPLES},' ${FILESDIR}/Makefile.examples > \
${WRKSRC}/examples/Makefile
${INSTALL_DATA} ${WRKSRC}/examples/Makefile \
${PREFIX}/share/examples/qwt/
${INSTALL_DATA} ${WRKSRC}/examples/examples.pri \
${PREFIX}/share/examples/qwt/
.for i in ${EXAMPLES}
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qwt/${i}
${INSTALL_DATA} ${WRKSRC}/examples/${i}/* \
${PREFIX}/share/examples/qwt/${i}/
.endfor
.include <bsd.port.mk>

5
x11/qwt/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (qwt-5.0.2.tar.bz2) = U627MTxHjdSq5PHIZKIDfg==
RMD160 (qwt-5.0.2.tar.bz2) = GoC7Meqg0UiFlFB6ywIsomjcws4=
SHA1 (qwt-5.0.2.tar.bz2) = 8aQVhHaR4nHp9rOyQ6sufLJwoDQ=
SHA256 (qwt-5.0.2.tar.bz2) = HgmvdIxC9wdxM023utBMPjnPD4D+TamTNFw2ZXWyQI0=
SIZE (qwt-5.0.2.tar.bz2) = 1666468

View File

@ -0,0 +1,20 @@
# $OpenBSD: Makefile.examples,v 1.1.1.1 2007/09/14 01:19:24 merdely Exp $
EXAMPLES= !!EXAMPLES!!
all:
@for I in ${EXAMPLES}; \
do (cd $$I; echo "==> Building for $$I"; \
qmake4 $$I.pro && gmake; \
echo "";); \
done
clean:
@for I in ${EXAMPLES}; \
do (cd $$I; echo "==> Cleaning for $$I"; \
gmake distclean; \
rm -Rf obj; \
rm -Rf moc; \
echo "";); \
done

View File

@ -0,0 +1,9 @@
Building QWT Examples on OpenBSD
To build the qwt examples:
cd !!PREFIX!!/share/examples/qwt
make
A qwt example binary will be built in each subdirectory of
!!PREFIX!!/share/examples/qwt.

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-designer_designer_pro,v 1.1.1.1 2007/09/14 01:19:24 merdely Exp $
--- designer/designer.pro.orig Wed Sep 5 00:44:17 2007
+++ designer/designer.pro Wed Sep 5 00:44:32 2007
@@ -92,7 +92,7 @@ contains(CONFIG, QwtDesigner) {
RESOURCES += \
qwt_designer_plugin.qrc
- target.path = $$[QT_INSTALL_PLUGINS]/designer
+ target.path = !!QTDIR!!/plugins/designer
INSTALLS += target
}

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-examples_examples_pri,v 1.1.1.1 2007/09/14 01:19:24 merdely Exp $
--- examples/examples.pri.orig Tue Sep 11 21:11:54 2007
+++ examples/examples.pri Tue Sep 11 21:13:42 2007
@@ -7,14 +7,12 @@
# modify it under the terms of the Qwt License, Version 1.0
###################################################################
-include( ../../qwtconfig.pri )
-
TEMPLATE = app
MOC_DIR = moc
OBJECTS_DIR = obj
-INCLUDEPATH += ../../src
-DEPENDPATH += ../../src
+INCLUDEPATH += !!PREFIX!!/include
+DEPENDPATH += !!PREFIX!!/lib
unix:LIBS += -L../../lib -lqwt

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-qwtconfig_pri,v 1.1.1.1 2007/09/14 01:19:24 merdely Exp $
--- qwtconfig.pri.orig Mon Jun 11 01:41:29 2007
+++ qwtconfig.pri Tue Sep 11 10:59:39 2007
@@ -3,7 +3,7 @@
######################################################################
unix {
- INSTALLBASE = /usr/local/qwt-5.0.2
+ INSTALLBASE = !!PREFIX!!
}
win32 {
@@ -12,7 +12,7 @@ win32 {
target.path = $$INSTALLBASE/lib
headers.path = $$INSTALLBASE/include
-doc.path = $$INSTALLBASE/doc
+doc.path = $$INSTALLBASE/share/doc/qwt
######################################################################
# qmake internal options

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_src_pro,v 1.1.1.1 2007/09/14 01:19:24 merdely Exp $
--- src/src.pro.orig Wed Sep 5 02:00:12 2007
+++ src/src.pro Wed Sep 5 02:00:17 2007
@@ -190,7 +190,7 @@ contains(CONFIG, QwtWidgets) {
headers.files = $$HEADERS
doc.files = ../doc/html
unix {
- doc.files += ../doc/man
+# doc.files += ../doc/man
}
INSTALLS = target headers doc

5
x11/qwt/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
The Qwt library contains GUI Components and utility classes which
are primarily useful for programs with a technical background. Beside
a 2D plot widget it provides scales, sliders, dials, compasses,
thermometers, wheels and knobs to control or display values, arrays,
or ranges of type double.

1097
x11/qwt/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff