qtiplot-qt4-x11 stable port information

Package: qtiplot-qt4-x11
Version: 0.9.7.6
Revision: 7

Maintainer: Alexandre Vial

Depends: <<
boost1.41.cmake-shlibs,
gsl-shlibs,
libiconv,
libpng14-shlibs,
muparser-shlibs,
qt4-base-x11-qt3support-shlibs (>= 4.7.3-1),
qt4-base-x11-qtcore-shlibs (>= 4.7.3-1),
qt4-base-x11-qtgui-shlibs (>= 4.7.3-1),
qt4-base-x11-qtnetwork-shlibs (>= 4.7.3-1),
qt4-base-x11-qtopengl-shlibs (>= 4.7.3-1),
qt4-base-x11-qtsql-shlibs (>= 4.7.3-1),
qt4-base-x11-qtsvg-shlibs (>= 4.7.3-1),
qt4-base-x11-qtxml-shlibs (>= 4.7.3-1),
qtassistant-compat-x11-shlibs (>= 4.6.3-1),
qwt-qt4-x11-shlibs (>=5.2.0),
x11
<<
BuildDepends: <<
boost1.41.cmake,
fink (>= 0.28),
fink-package-precedence,
flag-sort,
gsl,
libiconv-dev,
libpng14,
muparser,
phonon-x11 (>= 4.5.0-1),
qt4-base-x11 (>= 4.7.3-1),
qtassistant-compat-x11 (>= 4.6.3-1),
qwt-qt4-x11 (>=5.2.0),
system-openssl-dev (>= 1:0-0),
x11-dev
<<
BuildConflicts: labplot, liborigin
#Conflicts: qtiplot # would block "qtiplot:Depends:qtiplot-qt4-x11" upgrader pkg
Replaces: qtiplot

Description: Data analysis and scientific plotting
Homepage: http://soft.proindependent.com/qtiplot.html
License: GPL

Source: http://download.berlios.de/qtiplot/qtiplot-%v.tar.bz2
Source-MD5: a9b9b2fbd3044022a7afa3a89ec5c47d

GCC: 4.0

PatchFile: %n.patch
PatchFile-MD5: 775573038fb41d19c0db24c191750dac
PatchScript: <<
#!/bin/sh -ev
sed 's,@PREFIX@,%p,g' < %{PatchFile} | patch -p1
sed -i'' -e 's,lboost_thread-mt,& -lz,' qtiplot/qtiplot.pro
<<
## Flag-ordering to be fixed in a more thorough manner; lots of band-aid here.
## It breaks down e.g. if fink's prefix is a symlink to the actual dir.
## (and leads to build-failure if such user has also 4ti2-dev installed).

CompileScript: <<
#!/bin/sh -ev
unset QMAKESPEC
export QTDIR=%p/lib/qt4-x11
export PATH="$QTDIR/bin:$PATH"
%p/lib/qt4-x11/bin/qmake qtiplot.pro \
QMAKE_CXXFLAGS=-MD QMAKE_CFLAGS=-MD \
QMAKE_CXX='flag-sort -v g++' QMAKE_CC='flag-sort -v gcc' \
QMAKE_LINK='flag-sort -v g++' \
LIBS+='-lQtAssistantClient'
make
fink-package-precedence --depfile-ext='\.d' --prohibit-bdep=%n .
<<

InstallScript: <<
INSTALL_ROOT=%d make install
mkdir %i/bin
cp qtiplot/qtiplot %i/bin/qtiplot
<<

#Shlibs: <<
#!%p/lib/qtiplot/plugins/libexp_saturation.1.dylib 1.0.0
#!%p/lib/qtiplot/plugins/libexplin.1.dylib 1.0.0
#!%p/lib/qtiplot/plugins/libfitRational0.1.dylib 1.0.0
#!%p/lib/qtiplot/plugins/libfitRational1.1.dylib 1.0.0
#<<


DocFiles: gpl_licence.txt README.html manual qtiplot/translations qtiplot.css qtiplot_logo.png

DescPackaging: <<
AKH: 20090626
uses the new "flag-order" package and a hack courtesy of jfmertens
to reset its flag ordering, which conviently also makes it not link
to X11's libpng in preference to Fink's.
Links to the system's openssl, so there's a BuildDepend on that--this seems to
be robust regardless of whether a fink openssl*-dev is installed or not.

TODO: convert to using fink's qwt3d and origin libs instead of rolling own.
<<

qtiplot-qt4-x11 stable port .patch

diff -Nurd qtiplot-0.9.7.6/fitPlugins/exp_saturation/exp_saturation.pro qtiplot-0.9.7.6-new/fitPlugins/exp_saturation/exp_saturation.pro
--- qtiplot-0.9.7.6/fitPlugins/exp_saturation/exp_saturation.pro 2009-04-01 10:16:14.000000000 -0400
+++ qtiplot-0.9.7.6-new/fitPlugins/exp_saturation/exp_saturation.pro 2011-07-19 14:28:46.000000000 -0400
@@ -12,14 +12,14 @@
DESTDIR = ../

# statically link against GSL in 3rdparty
-INCLUDEPATH += ../../3rdparty/gsl/include/
-LIBS += ../../3rdparty/gsl/lib/libgsl.a
-LIBS += ../../3rdparty/gsl/lib/libgslcblas.a
+INCLUDEPATH += @PREFIX@/include/
+#LIBS += @PREFIX@/lib/libgsl.a
+#LIBS += @PREFIX@/lib/libgslcblas.a

#dynamically link against GSL installed system-wide
-#unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
+unix:LIBS += -L@PREFIX@/lib -lgsl -lgslcblas

-target.path=/usr/lib$${libsuff}/qtiplot/plugins
-INSTALLS += target
+#target.path=@PREFIX@/lib$${libsuff}/qtiplot/plugins
+#INSTALLS += target

SOURCES += exp_saturation.c
diff -Nurd qtiplot-0.9.7.6/fitPlugins/explin/explin.pro qtiplot-0.9.7.6-new/fitPlugins/explin/explin.pro
--- qtiplot-0.9.7.6/fitPlugins/explin/explin.pro 2009-04-01 10:16:14.000000000 -0400
+++ qtiplot-0.9.7.6-new/fitPlugins/explin/explin.pro 2011-07-19 14:28:46.000000000 -0400
@@ -12,14 +12,14 @@
DESTDIR = ../

# statically link against GSL in 3rdparty
-INCLUDEPATH += ../../3rdparty/gsl/include/
-LIBS += ../../3rdparty/gsl/lib/libgsl.a
-LIBS += ../../3rdparty/gsl/lib/libgslcblas.a
+INCLUDEPATH += @PREFIX@/include/
+#LIBS += @PREFIX@/lib/libgsl.a
+#LIBS += @PREFIX@/lib/libgslcblas.a

#dynamically link against GSL installed system-wide
-#unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
+unix:LIBS += -L@PREFIX@/lib -lgsl -lgslcblas

-target.path=/usr/lib$${libsuff}/qtiplot/plugins
-INSTALLS += target
+#target.path=@PREFIX@/lib$${libsuff}/qtiplot/plugins
+#INSTALLS += target

SOURCES += explin.c
diff -Nurd qtiplot-0.9.7.6/fitPlugins/fitRational0/fitRational0.pro qtiplot-0.9.7.6-new/fitPlugins/fitRational0/fitRational0.pro
--- qtiplot-0.9.7.6/fitPlugins/fitRational0/fitRational0.pro 2009-04-01 10:16:14.000000000 -0400
+++ qtiplot-0.9.7.6-new/fitPlugins/fitRational0/fitRational0.pro 2011-07-19 14:28:46.000000000 -0400
@@ -1,25 +1,25 @@
-QMAKE_PROJECT_DEPTH = 0
-linux-g++-64: libsuff=64
-
-TARGET = fitRational0
-TEMPLATE = lib
-
-CONFIG += thread
-CONFIG += warn_on
-CONFIG += release
-CONFIG += dll
-
-DESTDIR = ../
-
-# statically link against GSL in 3rdparty
-INCLUDEPATH += ../../3rdparty/gsl/include/
-LIBS += ../../3rdparty/gsl/lib/libgsl.a
-LIBS += ../../3rdparty/gsl/lib/libgslcblas.a
-
-#dynamically link against GSL installed system-wide
-#unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
-
-target.path=/usr/lib$${libsuff}/qtiplot/plugins
-INSTALLS += target
-
+QMAKE_PROJECT_DEPTH = 0
+linux-g++-64: libsuff=64
+
+TARGET = fitRational0
+TEMPLATE = lib
+
+CONFIG += thread
+CONFIG += warn_on
+CONFIG += release
+CONFIG += dll
+
+DESTDIR = ../
+
+# statically link against GSL in 3rdparty
+INCLUDEPATH += @PREFIX@/include/
+#LIBS += @PREFIX@/lib/libgsl.a
+#LIBS += @PREFIX@/lib/libgslcblas.a
+
+#dynamically link against GSL installed system-wide
+unix:LIBS += -L@PREFIX@/lib -lgsl -lgslcblas
+
+#target.path=@PREFIX@/lib$${libsuff}/qtiplot/plugins
+#INSTALLS += target
+
SOURCES += fitRational0.cpp
diff -Nurd qtiplot-0.9.7.6/fitPlugins/fitRational1/fitRational1.pro qtiplot-0.9.7.6-new/fitPlugins/fitRational1/fitRational1.pro
--- qtiplot-0.9.7.6/fitPlugins/fitRational1/fitRational1.pro 2009-04-01 10:16:14.000000000 -0400
+++ qtiplot-0.9.7.6-new/fitPlugins/fitRational1/fitRational1.pro 2011-07-19 14:28:46.000000000 -0400
@@ -12,14 +12,14 @@
DESTDIR = ../

# statically link against GSL in 3rdparty
-INCLUDEPATH += ../../3rdparty/gsl/include/
-LIBS += ../../3rdparty/gsl/lib/libgsl.a
-LIBS += ../../3rdparty/gsl/lib/libgslcblas.a
+INCLUDEPATH += @PREFIX@/include/
+#LIBS += @PREFIX@/lib/libgsl.a
+#LIBS += @PREFIX@/lib/libgslcblas.a

#dynamically link against GSL installed system-wide
-#unix:LIBS += -L /usr/lib$${libsuff} -lgsl -lgslcblas
+unix:LIBS += -L@PREFIX@/lib -lgsl -lgslcblas

-target.path=/usr/lib$${libsuff}/qtiplot/plugins
-INSTALLS += target
+#target.path=@PREFIX@/lib$${libsuff}/qtiplot/plugins
+#INSTALLS += target

SOURCES += fitRational1.cpp
diff -Nurd qtiplot-0.9.7.6/manual/Makefile qtiplot-0.9.7.6-new/manual/Makefile
--- qtiplot-0.9.7.6/manual/Makefile 2009-04-01 10:16:49.000000000 -0400
+++ qtiplot-0.9.7.6-new/manual/Makefile 2011-07-19 14:28:46.000000000 -0400
@@ -1,3 +1,9 @@
html-pdf:
- docbook2html -d qtiplot.dsl docbook-en/index.docbook -e no-valid
- dblatex -o qtiplot-manual-en.pdf -c dblatex.conf -p dblatex-param.xsl docbook-en/index.docbook
+# docbook2html -d qtiplot.dsl docbook-en/index.docbook -e no-valid
+# dblatex -o qtiplot-manual-en.pdf -c dblatex.conf -p dblatex-param.xsl docbook-en/index.docbook
+
+install:
+
+clean:
+
+distclean:
diff -Nurd qtiplot-0.9.7.6/qtiplot/qtiplot.pro qtiplot-0.9.7.6-new/qtiplot/qtiplot.pro
--- qtiplot-0.9.7.6/qtiplot/qtiplot.pro 2009-04-01 20:53:44.000000000 -0400
+++ qtiplot-0.9.7.6-new/qtiplot/qtiplot.pro 2011-07-19 14:29:00.000000000 -0400
@@ -1,6 +1,6 @@
# building without muParser doesn't work yet
SCRIPTING_LANGS += muParser
-SCRIPTING_LANGS += Python
+#SCRIPTING_LANGS += Python

# a console displaying output of scripts; particularly useful on Windows
# where running QtiPlot from a terminal is inconvenient
@@ -28,13 +28,15 @@
#!!! Warning: You must modify these paths according to your computer settings
#############################################################################

-INCLUDEPATH += ../3rdparty/muparser/include
+INCLUDEPATH += @PREFIX@/include
+INCLUDEPATH += @PREFIX@/include/gsl
+INCLUDEPATH += @PREFIX@/include/boost
+INCLUDEPATH += @PREFIX@/lib/qt4-x11/include/qwt
+INCLUDEPATH += @PREFIX@/lib/qt4-x11/include/QtAssistant
INCLUDEPATH += ../3rdparty/qwtplot3d/include
-INCLUDEPATH += ../3rdparty/qwt/src
INCLUDEPATH += ../3rdparty/liborigin
-INCLUDEPATH += ../3rdparty/gsl/include
INCLUDEPATH += ../3rdparty/zlib
-INCLUDEPATH += ../3rdparty/boost_1_36_0
+

##################### 3rd PARTY LIBRARIES SECTION ###########################
#!!! Warning: You must modify these paths according to your computer settings
@@ -43,17 +45,14 @@
##################### Linux (Mac OS X) ######################################

# statically link against libraries in 3rdparty
-unix:LIBS += ../3rdparty/muparser/lib/libmuparser.a
-unix:LIBS += ../3rdparty/qwt/lib/libqwt.a
-unix:LIBS += ../3rdparty/gsl/lib/libgsl.a
-unix:LIBS += ../3rdparty/gsl/lib/libgslcblas.a
-unix:LIBS += ../3rdparty/boost_1_36_0/lib/libboost_date_time-gcc43-mt-1_36.a
-unix:LIBS += ../3rdparty/boost_1_36_0/lib/libboost_thread-gcc43-mt-1_36.a
+#unix:LIBS += @PREFIX@/lib/libboost_date_time-mt.a
+#unix:LIBS += @PREFIX@/lib/libboost_thread-mt.a

# dynamically link against dependencies if they are installed system-wide
-#unix:LIBS += -lmuparser
-#unix:LIBS += -lqwt
-#unix:LIBS += -lgsl -lgslcblas
+unix:LIBS += -lmuparser
+unix:LIBS += -lqwt
+unix:LIBS += -lgsl -lgslcblas
+unix:LIBS += -lboost_date_time-mt -lboost_thread-mt

##################### Windows ###############################################

@@ -84,7 +83,7 @@
INSTALLS += documentation
unix:INSTALLS += man

- unix: INSTALLBASE = /usr
+ unix: INSTALLBASE = @PREFIX@
win32: INSTALLBASE = C:/QtiPlot

unix: target.path = $$INSTALLBASE/bin
@@ -186,7 +185,7 @@
qtiUtil.py \
qti_wordlist.txt \

- unix: pythonconfig.path = /usr/local/qtiplot
+ unix: pythonconfig.path = @PREFIX@/share/qtiplot
win32: pythonconfig.path = $$INSTALLBASE
DEFINES += PYTHON_CONFIG_PATH="\\\"$$replace(pythonconfig.path," ","\ ")\\\"
}
@@ -210,8 +209,8 @@

contains(CONFIG, HAVE_LIBPNG){
DEFINES += GL2PS_HAVE_LIBPNG
- INCLUDEPATH += ../3rdparty/libpng/
- LIBS += ../3rdparty/libpng/libpng.a
+ INCLUDEPATH += @PREFIX@/include
+ LIBS += -lpng
}

###############################################################

qtiplot-qt4-x11 _unstable_ port .patch