Ticket #20656: Portfile-qtiplot.diff
File Portfile-qtiplot.diff, 6.3 KB (added by nicos_pavlov@…, 15 years ago) |
---|
-
Portfile
old new 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 # $Id: Portfile 50094 2009-04-25 07:11:56Z jonas@macports.org $ 1 # $Id:$ 3 2 4 3 PortSystem 1.0 5 4 6 5 name qtiplot 7 version 0.9.7. 66 version 0.9.7.8 8 7 categories aqua science 9 8 maintainers fs.ei.tum.de:jonas openmaintainer 10 9 … … 25 24 port:muparser \ 26 25 port:boost \ 27 26 port:gsl \ 28 port:libpng \ 29 port:qwt52 \ 30 port:python25 \ 31 port:py25-sip \ 32 port:py25-pyqt4 33 # TODO variants to build without python or other python version 34 35 checksums md5 a9b9b2fbd3044022a7afa3a89ec5c47d \ 36 sha1 eb29800b614e8552add1ca8c435d56acec712ee5 \ 37 rmd160 1b5fd62872250169f80b6f135c7586b610c3be9a 27 port:libpng 28 29 checksums md5 15a62821f6f69086e685c271fb510bd4 \ 30 sha1 842a901a84753cfc7980bd684cb258f68021df2d 38 31 39 32 pre-configure { 40 33 # don't step into the manual dir, there is no "make all" 41 34 reinplace "/manual/d" ${worksrcpath}/qtiplot.pro 35 # suppress Python 36 reinplace "s|SCRIPTING_LANGS.*+=.*Python|#SCRIPTING_LANGS += Python|g" ${worksrcpath}/qtiplot/qtiplot.pro 37 if {[variant_isset python]} { 38 reinplace "s|#SCRIPTING_LANGS.*+=.*Python|SCRIPTING_LANGS += Python|g" ${worksrcpath}/qtiplot/qtiplot.pro 39 } 42 40 # fix include paths 43 41 reinplace "/INCLUDEPATH.*muparser/d" ${worksrcpath}/qtiplot/qtiplot.pro 44 42 reinplace "/INCLUDEPATH.*boost/d" ${worksrcpath}/qtiplot/qtiplot.pro 45 43 reinplace "/INCLUDEPATH.*png/d" ${worksrcpath}/qtiplot/qtiplot.pro 46 reinplace " /INCLUDEPATH.*gsl/d" ${worksrcpath}/qtiplot/qtiplot.pro \44 reinplace "s|INCLUDEPATH.*gsl|INCLUDEPATH += /opt/local|g" ${worksrcpath}/qtiplot/qtiplot.pro \ 47 45 ${worksrcpath}/fitPlugins/explin/explin.pro \ 48 46 ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \ 49 47 ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro \ 50 ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro 48 ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro \ 49 ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro 51 50 # fix lib paths 52 reinplace "/LIBS.*3rdparty.*gsl/d" ${worksrcpath}/qtiplot/qtiplot.pro \ 53 ${worksrcpath}/fitPlugins/explin/explin.pro \ 51 reinplace "/LIBS.*3rdparty.*gsl*/d" ${worksrcpath}/qtiplot/qtiplot.pro \ 52 ${worksrcpath}/fitPlugins/explin/explin.pro \ 53 ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \ 54 ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro \ 55 ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro \ 56 ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro 57 reinplace "/LIBS.*lqwt*/d" ${worksrcpath}/qtiplot/qtiplot.pro 58 reinplace "s|#unix|unix|g" ${worksrcpath}/fitPlugins/explin/explin.pro \ 54 59 ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \ 55 60 ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro \ 56 ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro 61 ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro \ 62 ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro 63 reinplace "s|-L.*suff.*cblas*|-lgsl -lgslcblas|g" ${worksrcpath}/fitPlugins/explin/explin.pro \ 64 ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \ 65 ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro \ 66 ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro 67 reinplace "s|-L.*suff.*cblas*|-L/opt/local/lib -lgsl -lgslcblas|g" \ 68 ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro 69 57 70 reinplace "/LIBS.*3rdparty.*muparser/d" ${worksrcpath}/qtiplot/qtiplot.pro 58 71 reinplace "/LIBS.*3rdparty.*boost/d" ${worksrcpath}/qtiplot/qtiplot.pro 59 72 reinplace "/LIBS.*3rdparty.*png/d" ${worksrcpath}/qtiplot/qtiplot.pro 60 reinplace "/LIBS.*3rdparty.*libqwt.a/d" ${worksrcpath}/qtiplot/qtiplot.pro \ 61 ${worksrcpath}/qtiplot/src/lib/qti.pro 73 reinplace "s|#unix:LIBS|unix:LIBS|g" ${worksrcpath}/qtiplot/qtiplot.pro 74 reinplace "s|-lgslcblas|-lgslcblas -lboost_date_time-mt -lboost_thread-mt|g" ${worksrcpath}/qtiplot/qtiplot.pro 75 76 # fix install path 77 reinplace "s|/usr/lib|/opt/local/lib|g" ${worksrcpath}/fitPlugins/explin/explin.pro \ 78 ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \ 79 ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro \ 80 ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro \ 81 ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro 82 reinplace "s|usr/local/qwt-5.2.0|opt/local|g" ${worksrcpath}/3rdparty/qwt/qwtconfig.pri \ 62 83 63 84 # fix a bug in the python init script 64 85 # append the current path *before* import __main__, else __file__ points to math.so after the import if this module … … 69 90 } 70 91 71 92 configure.pre_args "PREFIX=${prefix}" 72 configure.args "'INCLUDEPATH += ${prefix}/include' 'LIBS += -L${prefix}/lib -lqwt -lpng -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt'"73 93 configure.cmd "LOCALSOFT=${prefix} ${prefix}/libexec/qt4-mac/bin/qmake" 74 94 destroot.destdir INSTALL_ROOT=${destroot} 75 95 … … 86 106 qtiUtil.py \ 87 107 qtiplotrc.py \ 88 108 ${destroot}${applications_dir}/qtiplot.app/Contents/MacOS/ 89 } 90 109 } 110 No newline at end of file