|
|
@@ -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 compiler_blacklist_versions 1.0 |
|
|
#PortGroup github 1.0 |
|
|
PortGroup qt4 1.0 |
|
|
@@ -51,10 +51,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 |
|
|
@@ -65,6 +61,7 @@ compiler.blacklist {clang < 500} |
|
|
|
|
|
set Py_FRM ${frameworks_dir}/Python.framework/Versions/2.7 |
|
|
|
|
|
cmake.install_prefix ${applications_dir} |
|
|
#configure.args-append "--trace" |
|
|
configure.args-append "-DWITH_GRASS=OFF" |
|
|
configure.args-append "-DWITH_GRASS7=OFF" |
|
|
@@ -86,11 +83,8 @@ configure.args-append "-DQT_LRELEASE_EXECUTABLE=${prefix}/libexec/qt4/bin/lrel |
|
|
configure.args-append "-DQSCINTILLA_INCLUDE_DIR=${prefix}/libexec/qt4/include" |
|
|
configure.args-append "-DQSCINTILLA_LIBRARY=${prefix}/libexec/qt4/lib/libqscintilla2_qt4.dylib" |
|
|
configure.args-append "-DQJSON_DIR=${prefix}/lib/cmake/qjson" |
|
|
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" |
|
|
@@ -103,8 +97,6 @@ configure.args-append "-DPROJ_INCLUDE_DIR=${prefix}/include" |
|
|
configure.args-append "-DPROJ_LIBRARY=${prefix}/lib/libproj.dylib" |
|
|
configure.args-append \ |
|
|
"-DSPATIALINDEX_LIBRARY=${prefix}/lib/libspatialindex.dylib" |
|
|
#configure.args-append "-DCMAKE_BUILD_TYPE=DEBUG" |
|
|
configure.args-append "-DCMAKE_BUILD_TYPE=RELEASE" |
|
|
|
|
|
depends_lib-append port:python27 \ |
|
|
port:py27-pyqt4 \ |
|
|
@@ -178,9 +170,3 @@ variant grass description "Build Grass 7 plugin" { |
|
|
configure.args-append "-DWITH_GRASS7=ON" |
|
|
configure.args-append -DGRASS_PREFIX7=${prefix}/share/grass-${grass_version} |
|
|
} |
|
|
|
|
|
configure.dir ${worksrcpath}/build |
|
|
configure.cmd cmake .. |
|
|
|
|
|
build.dir ${worksrcpath}/build |
|
|
destroot.target install |