From 04bf85f65bf6f9e81c7d265c7ca3edf22e9cb04a Mon Sep 17 00:00:00 2001 From: lioux Date: Thu, 20 Jan 2005 03:21:32 +0000 Subject: New port qtstalker version 0.28: Commodity and stock market charting and technical analysis --- finance/qtstalker/Makefile | 113 +++++++++++++++++++++ finance/qtstalker/distinfo | 2 + .../files/patch-plugins::indicator::ATR::ATR.cpp | 10 ++ .../files/patch-plugins::indicator::BB::BB.cpp | 10 ++ .../files/patch-plugins::indicator::UO::UO.cpp | 10 ++ .../files/patch-plugins::indicator::VFI::VFI.cpp | 10 ++ .../files/patch-plugins::indicator::VOLR::VOLR.cpp | 10 ++ finance/qtstalker/pkg-descr | 10 ++ finance/qtstalker/pkg-plist | 71 +++++++++++++ 9 files changed, 246 insertions(+) create mode 100644 finance/qtstalker/Makefile create mode 100644 finance/qtstalker/distinfo create mode 100644 finance/qtstalker/files/patch-plugins::indicator::ATR::ATR.cpp create mode 100644 finance/qtstalker/files/patch-plugins::indicator::BB::BB.cpp create mode 100644 finance/qtstalker/files/patch-plugins::indicator::UO::UO.cpp create mode 100644 finance/qtstalker/files/patch-plugins::indicator::VFI::VFI.cpp create mode 100644 finance/qtstalker/files/patch-plugins::indicator::VOLR::VOLR.cpp create mode 100644 finance/qtstalker/pkg-descr create mode 100644 finance/qtstalker/pkg-plist (limited to 'finance/qtstalker') diff --git a/finance/qtstalker/Makefile b/finance/qtstalker/Makefile new file mode 100644 index 000000000000..7b367d58a21c --- /dev/null +++ b/finance/qtstalker/Makefile @@ -0,0 +1,113 @@ +# New ports collection makefile for: qtstalker +# Date created: Thu Jan 19 03:18:59 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira +# +# $FreeBSD$ +# + +PORTNAME= qtstalker +PORTVERSION= 0.28 +CATEGORIES= finance kde +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= Commodity and stock market charting and technical analysis + +BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake +LIB_DEPENDS= db2:${PORTSDIR}/databases/db2 + +USE_QT_VER=3 +USE_REINPLACE= yes +NO_FILTER_SHLIBS= yes +INSTALLS_SHLIB= yes + +MAKE_ENV= QTDIR="${QT_PREFIX}" +CONFIGURE_ENV= QTDIR="${QT_PREFIX}" + +WRKSRC= ${WRKDIR}/${PORTNAME} + +QMAKE?= ${LOCALBASE}/bin/qmake +# XXX - this test is too simple but it is a good start +.if defined(CXX) && ${CXX:M*icc} +QMAKESPEC?= freebsd-icc +.else +QMAKESPEC?= freebsd-g++ +.endif + +VERSION_PLUGIN= 0.27 + +# docs +DOC_FILES= \ + BUGS \ + CHANGELOG \ + TODO + +.ifndef(NOPORTDOCS) +PORTDOCS+= \ + * +.endif + +PLIST_SUB+= \ + VERSION_PLUGIN="${VERSION_PLUGIN}" + +post-patch: +# tell qtstalker where to install plugins + @${FIND} ${WRKSRC} -type f -name "*pro" | \ + ${XARGS} -x -n 5 \ + ${REINPLACE_CMD} -E \ + -e 's|/usr/lib/qtstalker/|${PREFIX}/lib/${PORTNAME}/|' +# where to find plugins + @${REINPLACE_CMD} -E \ + -e 's|/usr/lib/qtstalker/|${PREFIX}/lib/${PORTNAME}/|' \ + ${WRKSRC}/lib/Config.cpp \ +# where to both find and install docs + @${REINPLACE_CMD} -E \ + -e 's|/usr/share/doc/qtstalker/html|${DOCSDIR}|' \ + ${WRKSRC}/lib/Config.cpp \ + ${WRKSRC}/docs/docs.pro +# where to install program + @${REINPLACE_CMD} -E \ + -e 's|/usr/bin|${PREFIX}/bin|' \ + ${WRKSRC}/src/src.pro +# where to install libs + @${REINPLACE_CMD} -E \ + -e 's|/usr/lib|${PREFIX}/lib|' \ + ${WRKSRC}/lib/lib.pro +# correctly use database/db2 + @${REINPLACE_CMD} -E \ + -e 's|||' \ + ${WRKSRC}/lib/DbPlugin.h + @${REINPLACE_CMD} -E \ + -e 's|-ldb$$|-ldb2|' \ + ${WRKSRC}/lib/lib.pro + +do-configure: + @cd ${WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} \ + ${QMAKE} -spec ${QMAKESPEC} \ + "INCLUDEPATH += ${QT_PREFIX}/include ${LOCALBASE}/include ${X11BASE}/include" \ + "LIBS += -L${LOCALBASE}/lib -L${X11BASE}/lib" \ + "QMAKE_CFLAGS_SHLIB += -fPIC" \ + "QMAKE_CXXFLAGS_SHLIB += -fPIC" \ + "DEFINES += QT_NO_COMPAT PIC" -o ${MAKEFILE} qtstalker.pro + +pre-install: +# install with proper permissions + @${FIND} ${WRKSRC}/docs ${WRKSRC}/lib ${WRKSRC}/plugins -type f -name "${MAKEFILE}" | \ + ${XARGS} -x -n 5 \ + ${REINPLACE_CMD} -E \ + -e 's|\(INSTALL_FILE\)|(BSD_INSTALL_DATA)|' + @${REINPLACE_CMD} -E \ + -e 's|\(INSTALL_FILE\)|(BSD_INSTALL_PROGRAM)|' \ + ${WRKSRC}/src/${MAKEFILE} + +post-install: +.ifndef(NOPORTDOCS) +# additional docs +.for doc in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/docs/${doc} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/finance/qtstalker/distinfo b/finance/qtstalker/distinfo new file mode 100644 index 000000000000..956d388e0f11 --- /dev/null +++ b/finance/qtstalker/distinfo @@ -0,0 +1,2 @@ +MD5 (qtstalker-0.28.tar.gz) = bce9d9201a1e4bccbb852439fd8241b4 +SIZE (qtstalker-0.28.tar.gz) = 1502923 diff --git a/finance/qtstalker/files/patch-plugins::indicator::ATR::ATR.cpp b/finance/qtstalker/files/patch-plugins::indicator::ATR::ATR.cpp new file mode 100644 index 000000000000..e8f79007ec40 --- /dev/null +++ b/finance/qtstalker/files/patch-plugins::indicator::ATR::ATR.cpp @@ -0,0 +1,10 @@ +--- plugins/indicator/ATR/ATR.cpp.orig Wed Jan 19 03:26:19 2005 ++++ plugins/indicator/ATR/ATR.cpp Wed Jan 19 03:27:15 2005 +@@ -21,6 +21,7 @@ + + #include "ATR.h" + #include "PrefDialog.h" ++#include + #include + #include + diff --git a/finance/qtstalker/files/patch-plugins::indicator::BB::BB.cpp b/finance/qtstalker/files/patch-plugins::indicator::BB::BB.cpp new file mode 100644 index 000000000000..cf73c7b3f282 --- /dev/null +++ b/finance/qtstalker/files/patch-plugins::indicator::BB::BB.cpp @@ -0,0 +1,10 @@ +--- plugins/indicator/BB/BB.cpp.orig Wed Jan 19 03:28:14 2005 ++++ plugins/indicator/BB/BB.cpp Wed Jan 19 03:28:24 2005 +@@ -21,6 +21,7 @@ + + #include "BB.h" + #include "PrefDialog.h" ++#include + #include + #include + diff --git a/finance/qtstalker/files/patch-plugins::indicator::UO::UO.cpp b/finance/qtstalker/files/patch-plugins::indicator::UO::UO.cpp new file mode 100644 index 000000000000..5905ab381b2b --- /dev/null +++ b/finance/qtstalker/files/patch-plugins::indicator::UO::UO.cpp @@ -0,0 +1,10 @@ +--- plugins/indicator/UO/UO.cpp.orig Wed Jan 19 03:40:55 2005 ++++ plugins/indicator/UO/UO.cpp Wed Jan 19 03:41:05 2005 +@@ -21,6 +21,7 @@ + + #include "UO.h" + #include "PrefDialog.h" ++#include + #include + #include + diff --git a/finance/qtstalker/files/patch-plugins::indicator::VFI::VFI.cpp b/finance/qtstalker/files/patch-plugins::indicator::VFI::VFI.cpp new file mode 100644 index 000000000000..4caa5602f5c9 --- /dev/null +++ b/finance/qtstalker/files/patch-plugins::indicator::VFI::VFI.cpp @@ -0,0 +1,10 @@ +--- plugins/indicator/VFI/VFI.cpp.orig Wed Jan 19 03:42:07 2005 ++++ plugins/indicator/VFI/VFI.cpp Wed Jan 19 03:42:15 2005 +@@ -21,6 +21,7 @@ + + #include "VFI.h" + #include "PrefDialog.h" ++#include + #include + #include + diff --git a/finance/qtstalker/files/patch-plugins::indicator::VOLR::VOLR.cpp b/finance/qtstalker/files/patch-plugins::indicator::VOLR::VOLR.cpp new file mode 100644 index 000000000000..1898ff831503 --- /dev/null +++ b/finance/qtstalker/files/patch-plugins::indicator::VOLR::VOLR.cpp @@ -0,0 +1,10 @@ +--- plugins/indicator/VOLR/VOLR.cpp.orig Wed Jan 19 03:43:08 2005 ++++ plugins/indicator/VOLR/VOLR.cpp Wed Jan 19 03:43:24 2005 +@@ -21,6 +21,7 @@ + + #include "VOLR.h" + #include "PrefDialog.h" ++#include + #include + #include + diff --git a/finance/qtstalker/pkg-descr b/finance/qtstalker/pkg-descr new file mode 100644 index 000000000000..bbbde9b14130 --- /dev/null +++ b/finance/qtstalker/pkg-descr @@ -0,0 +1,10 @@ +[ excerpt from developer's web site ] + +Stock market, commodity and technical analysis charting app based +on the Qt toolkit. Extendible plugin system for quotes and indicators. +Portfolio, back testing, chart objects and many more features +included. + +WWW: http://qtstalker.sourceforge.net/ + +-- lioux@FreeBSD.org diff --git a/finance/qtstalker/pkg-plist b/finance/qtstalker/pkg-plist new file mode 100644 index 000000000000..3754bd5a6d10 --- /dev/null +++ b/finance/qtstalker/pkg-plist @@ -0,0 +1,71 @@ +bin/qtstalker +lib/libqtstalker.so +lib/libqtstalker.so.0 +lib/libqtstalker.so.%%VERSION_PLUGIN%% +lib/libqtstalker.so.%%VERSION_PLUGIN%%.0 +lib/qtstalker/chart/libBar.%%VERSION_PLUGIN%%.so +lib/qtstalker/chart/libCandle.%%VERSION_PLUGIN%%.so +lib/qtstalker/chart/libEP.%%VERSION_PLUGIN%%.so +lib/qtstalker/chart/libLine.%%VERSION_PLUGIN%%.so +lib/qtstalker/chart/libPF.%%VERSION_PLUGIN%%.so +lib/qtstalker/chart/libSwing.%%VERSION_PLUGIN%%.so +lib/qtstalker/co/libBuyArrow.%%VERSION_PLUGIN%%.so +lib/qtstalker/co/libFiboLine.%%VERSION_PLUGIN%%.so +lib/qtstalker/co/libHorizontalLine.%%VERSION_PLUGIN%%.so +lib/qtstalker/co/libSellArrow.%%VERSION_PLUGIN%%.so +lib/qtstalker/co/libText.%%VERSION_PLUGIN%%.so +lib/qtstalker/co/libTrendLine.%%VERSION_PLUGIN%%.so +lib/qtstalker/co/libVerticalLine.%%VERSION_PLUGIN%%.so +lib/qtstalker/db/libCC.%%VERSION_PLUGIN%%.so +lib/qtstalker/db/libFutures.%%VERSION_PLUGIN%%.so +lib/qtstalker/db/libIndex.%%VERSION_PLUGIN%%.so +lib/qtstalker/db/libSpread.%%VERSION_PLUGIN%%.so +lib/qtstalker/db/libStocks.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libAD.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libATR.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libBB.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libCCI.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libCOMP.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libCOUNTER.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libCUS.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libDMI.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libDPO.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libENV.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libFI.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libMA.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libMACD.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libMAOSC.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libMATH.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libMF.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libMOM.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libOVRLY.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libPC.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libPER.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libPP.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libREF.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libROC.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libRSI.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libSAR.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libSD.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libSTOCH.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libSZ.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libTHERM.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libTRIX.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libUO.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libVFI.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libVOL.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libVOLR.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libVT.%%VERSION_PLUGIN%%.so +lib/qtstalker/indicator/libWILLR.%%VERSION_PLUGIN%%.so +lib/qtstalker/quote/libCME.%%VERSION_PLUGIN%%.so +lib/qtstalker/quote/libCOT.%%VERSION_PLUGIN%%.so +lib/qtstalker/quote/libCSV.%%VERSION_PLUGIN%%.so +lib/qtstalker/quote/libNYBOT.%%VERSION_PLUGIN%%.so +lib/qtstalker/quote/libQtstalkerFormat.%%VERSION_PLUGIN%%.so +lib/qtstalker/quote/libYahoo.%%VERSION_PLUGIN%%.so +@dirrm lib/qtstalker/quote +@dirrm lib/qtstalker/indicator +@dirrm lib/qtstalker/db +@dirrm lib/qtstalker/co +@dirrm lib/qtstalker/chart +@dirrm lib/qtstalker -- cgit