Ticket #55905: Portfile-qgis.diff
File Portfile-qgis.diff, 5.0 KB (added by ryandesign (Ryan Carsten Schmidt), 7 years ago) |
---|
-
Portfile
1 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 2 3 3 PortSystem 1.0 4 PortGroup cmake 1.0 5 #PortGroup github 1.0 4 PortGroup cmake 1.1 5 PortGroup compiler_blacklist_versions 1.0 6 PortGroup cxx11 1.1 7 PortGroup github 1.0 6 8 PortGroup qt4 1.0 7 9 10 github.setup qgis QGIS 2_18_17 final- 8 11 name qgis 9 version 2.18.14 10 #revision 2 11 homepage http://www.qgis.org/ 12 version [string map {_ .} ${github.version}] 12 13 categories gis 13 maintainers vince14 maintainers {vince @Veence} 14 15 description QGIS is a user-friendly GIS based on Qt 4 15 16 long_description QGIS is an alternative to commercial GIS such as ESRI products.\ 16 17 It can read, write and process almost every sort of geodata. It can\ … … 20 21 platforms darwin 21 22 license GPL-2+ 22 23 23 set version_u [string map {. _} ${version}] 24 #github.setup qgis QGIS ${version_u} final- 25 distname final-${version_u} 26 master_sites https://github.com/qgis/QGIS/archive/ 27 worksrcdir QGIS-${distname} 24 homepage http://www.qgis.org/ 28 25 29 use_parallel_build no 26 checksums rmd160 1b17a258c053e4114e2569e9465312c55dd0a566 \ 27 sha256 608f82ea128dabaeeba494da465edf4f69aad873d45b6fdbab8f6761de318cb2 \ 28 size 99355862 30 29 31 checksums rmd160 fc85c0821532505c531aacb39f5abdfc9fac15f0 \32 sha256 f8912cddca6673b54fcbea8b418d877b51d7229ebd4caec07bdb5fbfda6851e433 34 patchfiles patch-app_info_plist_in.diff \35 patch-PyQtMacros.diff \36 patch-python_core_conversions_sip.diff37 38 30 depends_lib-append port:libiconv \ 39 31 port:expat \ 40 32 path:lib/libssl.dylib:openssl \ … … 52 44 port:bison \ 53 45 port:ld64 54 46 55 p ost-extract {56 system -W ${worksrcpath} "mkdir build"57 } 47 patchfiles patch-app_info_plist_in.diff \ 48 patch-PyQtMacros.diff \ 49 patch-python_core_conversions_sip.diff 58 50 59 51 post-patch { 60 reinplace -E "s|@ @@|${prefix}|g" \52 reinplace -E "s|@PREFIX@|${prefix}|g" \ 61 53 ${worksrcpath}/mac/app.info.plist.in 62 54 # reinplace -E "s|Clang|AppleClang|" ${worksrcpath}/CMakeLists.txt 63 # Handle legacy OS/XCode64 if {[vercmp $xcodeversion 4.6.3] <= 0} {65 configure.compiler llvm-gcc-4.266 }67 55 } 68 56 57 compiler.blacklist {clang < 500} 58 69 59 set Py_FRM ${frameworks_dir}/Python.framework/Versions/2.7 70 60 61 cmake.install_prefix ${applications_dir} 71 62 #configure.args-append "--trace" 72 63 configure.args-append "-DWITH_GRASS=OFF" 73 64 configure.args-append "-DWITH_GRASS7=OFF" … … 89 80 configure.args-append "-DQSCINTILLA_INCLUDE_DIR=${prefix}/libexec/qt4/include" 90 81 configure.args-append "-DQSCINTILLA_LIBRARY=${prefix}/libexec/qt4/lib/libqscintilla2_qt4.dylib" 91 82 configure.args-append "-DQJSON_DIR=${prefix}/lib/cmake/qjson" 92 configure.args-append "-DCMAKE_CXX_COMPILER=${configure.cxx}"93 configure.args-append "-DCMAKE_C_COMPILER=${configure.cc}"94 83 configure.args-append "-DEXPAT_INCLUDE_DIR=${prefix}/include" 95 84 configure.args-append "-DEXPAT_LIBRARY=${prefix}/lib/libexpat.dylib" 96 configure.args-append "-DCMAKE_INSTALL_PREFIX=${applications_dir}"97 85 configure.args-append "-DQGIS_MACAPP_BUNDLE=0" 98 86 configure.args-append "-DGDAL_CONFIG=${prefix}/bin/gdal-config" 99 87 configure.args-append "-DGDAL_INCLUDE_DIR=${prefix}/include" … … 106 94 configure.args-append "-DPROJ_LIBRARY=${prefix}/lib/libproj.dylib" 107 95 configure.args-append \ 108 96 "-DSPATIALINDEX_LIBRARY=${prefix}/lib/libspatialindex.dylib" 109 #configure.args-append "-DCMAKE_BUILD_TYPE=DEBUG"110 configure.args-append "-DCMAKE_BUILD_TYPE=RELEASE"111 97 112 98 depends_lib-append port:python27 \ 113 99 port:py27-pyqt4 \ … … 171 157 variant grass description "Build Grass 7 plugin" { 172 158 173 159 depends_lib-append port:grass7 160 global grass_version 161 set grass_version 7.4.0 162 post-patch { 163 reinplace "s|@GRASS_VERSION@|${grass_version}|g" \ 164 ${worksrcpath}/mac/app.info.plist.in 165 } 174 166 configure.args-delete "-DWITH_GRASS7=OFF" 175 167 configure.args-append "-DWITH_GRASS7=ON" 176 configure.args-append \ 177 "-DGRASS_PREFIX7=${prefix}/share/grass-7.2.2" 168 configure.args-append -DGRASS_PREFIX7=${prefix}/share/grass-${grass_version} 178 169 } 179 180 configure.dir ${worksrcpath}/build181 configure.cmd cmake ..182 183 use_parallel_build yes184 build.dir ${worksrcpath}/build185 destroot.target install