Ticket #30269: patch-Portfile.diff
File patch-Portfile.diff, 6.7 KB (added by nicos_pavlov@…, 13 years ago) |
---|
-
Portfile
old new 2 2 PortGroup qt4 1.0 3 3 4 4 name qtiplot 5 version 0.9.8.3 6 revision 2 5 version 0.9.8.7 7 6 categories aqua science 8 7 maintainers jonas openmaintainer 9 8 … … 19 18 homepage http://soft.proindependent.com/qtiplot.html 20 19 master_sites http://download.berlios.de/qtiplot/ 21 20 22 distfiles ${distname}.zip \ 23 QTeXEngine-0.2-opensource.zip \ 24 liborigin2-13092010.zip 21 distfiles ${distname}.zip 25 22 26 23 depends_lib-append path:bin/qmake-mac:qt4-mac \ 27 24 port:muparser \ … … 31 28 port:zlib 32 29 33 30 checksums qtiplot-${version}.zip \ 34 md5 c90e9dc08e03dc1cd0db19dfe8941f0c \ 35 sha1 35dec539fb20b8c7ca121cca11f7b800b4ff0c6b \ 36 rmd160 2b0fd5b710d2752a1a413f83cbee9daf1e88edbf \ 37 QTeXEngine-0.2-opensource.zip \ 38 md5 fc2fe7f3fdb9e06c00d1f5c3c3e68920 \ 39 sha1 b484a4da7a0f3103e188539bfa6c1910dc9b55ca \ 40 rmd160 76ff1f2f96cd6df0ea5e6965013e0db452c55f09 \ 41 liborigin2-13092010.zip \ 42 md5 e2b41c4d8a1e2d357dd2b5b331d31375 \ 43 sha1 3f17d5a8c484ddb864a29a91a94d677b0b3b18d7 \ 44 rmd160 df7f4bafc1b9815c5921c09b435f431d8a1947e6 45 46 patchfiles patch-ApplicationWindow.diff 31 md5 cd571f88cde988734b7acf5db9917afc \ 32 sha1 8c4b39a2e5997b2e9a8a2ec2a41ac8395661bbe6 \ 33 rmd160 2a69ae9c2ab836cc8170fc71eb581b605ba6e7b6 34 35 patchfiles patch-ApplicationWindow.diff \ 36 patch-qti.sip.diff \ 37 patch-scripting.pri.diff 47 38 48 39 use_zip yes 49 40 … … 67 58 puts $confFD "QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src" 68 59 puts $confFD "QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a" 69 60 puts $confFD "QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include" 70 puts $confFD " unix:QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a"61 puts $confFD "QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a" 71 62 puts $confFD "LIBPNG_LIBS = -lpng" 72 puts $confFD "TEX_ENGINE_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/QTeXEngine/src"73 puts $confFD "T EX_ENGINE_LIBS = \$\$QTI_ROOT/3rdparty/QTeXEngine/libQTeXEngine.a"74 if {[variant_isset origin]} {75 puts $confFD " LIBORIGIN_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/liborigin2"76 puts $confFD " LIBORIGIN_LIBS = \$\$QTI_ROOT/3rdparty/liborigin2/liborigin2.a"63 # Forcing TamuAnova to nothing 64 puts $confFD "TAMUANOVA_LIBS = " 65 if {[variant_isset qtexengine]} { 66 puts $confFD "TEX_ENGINE_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/QTeXEngine/src" 67 puts $confFD "TEX_ENGINE_LIBS = \$\$QTI_ROOT/3rdparty/QTeXEngine/libQTeXEngine.a" 77 68 } 78 69 79 # linking to deprecated library80 reinplace "s|<QAssistantClient>|\"qassistantclient.h\"|g" ${worksrcpath}/qtiplot/src/core/ApplicationWindow.cpp81 82 70 # target specific configuration 83 71 puts $confFD "contains( TARGET, qtiplot ) \{" 84 72 puts $confFD "SCRIPTING_LANGS += muParser"; # currently you can't build without 85 if {[variant_isset python25] || [variant_isset python26] } {73 if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { 86 74 puts $confFD "SCRIPTING_LANGS += Python" 87 75 } 88 76 puts $confFD "DEFINES += SCRIPTING_CONSOLE" … … 98 86 sys.path.append(os.path.dirname(__file__)) 99 87 " ${worksrcpath}/qtiplot/qtiplotrc.py 100 88 101 if {[variant_isset origin]} { 102 # prepare liborigin2 103 copy ${workpath}/liborigin2 ${worksrcpath}/3rdparty/liborigin2 104 reinplace "s|INCLUDEPATH += ../boost|INCLUDEPATH += ${prefix}/include|g" ${worksrcpath}/3rdparty/liborigin2/liborigin2.pro 105 reinplace "s|lboost_thread|lboost_thread-mt|g" ${worksrcpath}/3rdparty/liborigin2/liborigin2.pro 106 reinplace "s|liborigin|liborigin2|g" ${worksrcpath}/qtiplot/src/origin/origin.pri 107 } 108 109 # prepare qtexengine 110 copy ${workpath}/QTeXEngine ${worksrcpath}/3rdparty/QTeXEngine 89 if {[variant_isset qtexengine]} { 90 # prepare qtexengine 91 copy ${workpath}/QTeXEngine ${worksrcpath}/3rdparty/QTeXEngine 111 92 112 # add 3rdparty to compilation 113 reinplace "s|3rdparty/qwtplot3d \|3rdparty/qwtplot3d 3rdparty/QTeXEngine \|g" \ 114 ${worksrcpath}/qtiplot.pro 115 if {[variant_isset origin]} { 116 reinplace "s|3rdparty/QTeXEngine \|3rdparty/QTeXEngine 3rdparty/liborigin2 \|g" \ 93 # add 3rdparty to compilation 94 reinplace "s|3rdparty/qwtplot3d \|3rdparty/qwtplot3d 3rdparty/QTeXEngine \|g" \ 117 95 ${worksrcpath}/qtiplot.pro 96 97 # suppress examples which do not compile 98 reinplace "/example/d" ${worksrcpath}/3rdparty/QTeXEngine/QTeXEngine.pro 118 99 } 119 100 120 101 # use system-wide libraries … … 123 104 124 105 configure.pre_args "PREFIX=${prefix}" 125 106 configure.cmd "LOCALSOFT=${prefix} ${qt_qmake_cmd}" 126 configure.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++127 build.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++128 107 destroot.destdir INSTALL_ROOT=${destroot} 129 108 130 109 destroot { … … 152 131 ${plugin_dir} 153 132 } 154 133 155 variant origin description "add support for originlab files" { 156 depends_lib-append port:treehh 157 patchfiles-append patch-importOPJ.cpp.diff 134 variant qtexengine description "add support for tex exportation" { 135 distfiles-append QTeXEngine-0.3-opensource.zip 136 checksums-append QTeXEngine-0.3-opensource.zip \ 137 md5 d1b234623770ec6209b14d1b5137f2f1 \ 138 sha1 971410ebc6b73f31a11cf473f4d9171c278271f0 \ 139 rmd160 6f75f8e6355515cf5eb8a7b90b9acca8aa889129 158 140 } 159 141 160 variant python25 conflicts python26 description "add support for python26 scripting" {142 variant python25 conflicts python26 python27 description "add support for python26 scripting" { 161 143 depends_lib-append port:python25 \ 162 144 port:py25-sip \ 163 145 port:py25-pyqt4 164 146 } 165 147 166 variant python26 conflicts python25 description "add support for python26 scripting" {148 variant python26 conflicts python25 python27 description "add support for python26 scripting" { 167 149 depends_lib-append port:python26 \ 168 150 port:py26-sip \ 169 151 port:py26-pyqt4 170 152 } 153 154 variant python27 conflicts python25 python26 description "add support for python26 scripting" { 155 depends_lib-append port:python27 \ 156 port:py27-sip \ 157 port:py27-pyqt4 158 } 159 No newline at end of file