|
|
@@ -1,7 +1,7 @@ |
|
|
# -*- 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 |
|
|
|
|
|
PortSystem 1.0 |
|
|
PortGroup cmake 1.0 |
|
|
PortGroup cmake 1.1 |
|
|
PortGroup github 1.0 |
|
|
PortGroup qt5 1.0 |
|
|
|
|
|
@@ -61,10 +61,6 @@ depends_build-append \ |
|
|
port:bison \ |
|
|
port:ld64 |
|
|
|
|
|
post-extract { |
|
|
system -W ${worksrcpath} "mkdir build" |
|
|
} |
|
|
|
|
|
post-patch { |
|
|
reinplace -E "s|@PREFIX@|${prefix}|g" \ |
|
|
${worksrcpath}/mac/app.info.plist.in |
|
|
@@ -82,6 +78,7 @@ post-patch { |
|
|
} |
|
|
} |
|
|
|
|
|
cmake.install_prefix ${applications_dir} |
|
|
# Plug-ins |
|
|
configure.args-append "-DWITH_GRASS=OFF" |
|
|
configure.args-append "-DWITH_GRASS7=OFF" |
|
|
@@ -206,14 +203,8 @@ variant grass description "Build Grass 7 plugin" { |
|
|
|
|
|
# Configure steps |
|
|
|
|
|
configure.dir ${worksrcpath}/build |
|
|
configure.cmd cmake .. |
|
|
|
|
|
configure.args-append "-DCMAKE_CXX_COMPILER=${configure.cxx}" |
|
|
configure.args-append "-DCMAKE_C_COMPILER=${configure.cc}" |
|
|
configure.args-append "-DEXPAT_INCLUDE_DIR=${prefix}/include" |
|
|
configure.args-append "-DEXPAT_LIBRARY=${prefix}/lib/libexpat.dylib" |
|
|
configure.args-append "-DCMAKE_INSTALL_PREFIX=${applications_dir}" |
|
|
configure.args-append "-DQGIS_MACAPP_BUNDLE=0" |
|
|
configure.args-append "-DGDAL_CONFIG=${prefix}/bin/gdal-config" |
|
|
configure.args-append "-DGDAL_INCLUDE_DIR=${prefix}/include" |
|
|
@@ -227,15 +218,10 @@ configure.args-append "-DPROJ_LIBRARY=${prefix}/lib/libproj.dylib" |
|
|
configure.args-append "-DSPATIALITE_LIBRARY=${prefix}/lib/libspatialite.dylib" |
|
|
configure.args-append "-DSPATIALITE_INCLUDE_DIR=${prefix}/include" |
|
|
configure.args-append "-DSPATIALINDEX_LIBRARY=${prefix}/lib/libspatialindex.dylib" |
|
|
#configure.args-append "-DCMAKE_BUILD_TYPE=DEBUG" |
|
|
configure.args-append "-DCMAKE_BUILD_TYPE=RELEASE" |
|
|
|
|
|
post-destroot { |
|
|
# qgis_bench app doesn’t link properly. Who uses this anyway???? |
|
|
delete ${destroot}${applications_dir}/Qgis3.app/Contents/MacOS/bin/qgis_bench.app |
|
|
} |
|
|
|
|
|
use_parallel_build yes |
|
|
#build.dir ${worksrcpath}/build |
|
|
cmake.out_of_source yes |
|
|
destroot.target install |