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:$
    32
    43PortSystem  1.0
    54
    65name                qtiplot
    7 version             0.9.7.6
     6version             0.9.7.8
    87categories          aqua science
    98maintainers         fs.ei.tum.de:jonas openmaintainer
    109
     
    2524                    port:muparser \
    2625                    port:boost \
    2726                    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
     29checksums           md5     15a62821f6f69086e685c271fb510bd4 \
     30                    sha1    842a901a84753cfc7980bd684cb258f68021df2d
    3831
    3932pre-configure {
    4033    # don't step into the manual dir, there is no "make all"
    4134    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    }
    4240    # fix include paths
    4341    reinplace "/INCLUDEPATH.*muparser/d" ${worksrcpath}/qtiplot/qtiplot.pro
    4442    reinplace "/INCLUDEPATH.*boost/d" ${worksrcpath}/qtiplot/qtiplot.pro
    4543    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 \
    4745                                    ${worksrcpath}/fitPlugins/explin/explin.pro \
    4846                                    ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \
    4947                                    ${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
    5150    # 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 \
    5459                                       ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \
    5560                                       ${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
    5770    reinplace "/LIBS.*3rdparty.*muparser/d" ${worksrcpath}/qtiplot/qtiplot.pro
    5871    reinplace "/LIBS.*3rdparty.*boost/d" ${worksrcpath}/qtiplot/qtiplot.pro
    5972    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 \
    6283
    6384    # fix a bug in the python init script
    6485    # append the current path *before* import __main__, else __file__ points to math.so after the import if this module
     
    6990}
    7091
    7192configure.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'"
    7393configure.cmd   "LOCALSOFT=${prefix} ${prefix}/libexec/qt4-mac/bin/qmake"
    7494destroot.destdir INSTALL_ROOT=${destroot}
    7595
     
    86106        qtiUtil.py \
    87107        qtiplotrc.py \
    88108        ${destroot}${applications_dir}/qtiplot.app/Contents/MacOS/
    89 }
    90 
     109}
     110 No newline at end of file