# $Id$ PortSystem 1.0 PortGroup wxWidgets 1.0 PortGroup active_variants 1.1 name grass7 version 7.0.5 distname grass-${version} maintainers nomaintainer categories gis license GPL-2+ platforms darwin description GRASS long_description GRASS is a Geographic Information System (GIS) used for \ geospatial data management and analysis. homepage http://grass.osgeo.org/ master_sites ${homepage}grass[join [lrange [split ${version} .] 0 1] {}]/source/ checksums rmd160 1299a553e081f3cae06f0b4bad958a0901ee63f1 \ sha256 60de3ba67eaf4f05dcff4f48ef710113f9efa9367ece784c13423bc620246f3c wxWidgets.use wxPython-3.0 depends_build port:pkgconfig depends_lib port:freetype \ port:fftw-3 \ port:gdal \ port:geos \ port:tiff \ port:libpng \ port:proj\ path:lib/pkgconfig/cairo.pc:cairo \ port:readline \ port:python27 \ port:py27-pillow \ port:${wxWidgets.port} \ port:py27-${wxWidgets.port} patchfiles patch-configure.diff \ patch-Install_make.diff post-patch { set python_bin ${prefix}/bin/python2.7 set python_scripts [exec find ${worksrcpath} -name *.py] puts $python_scripts foreach f $python_scripts { reinplace "s|/usr/bin/env python|${python_bin}|" ${f} } reinplace "s|PYVER.*|PYVER = 2.7|" ${worksrcpath}/macosx/Makefile reinplace "s|^PYTHON.*|PYTHON = ${python_bin}|" ${worksrcpath}/include/Make/Platform.make.in ui_warn "WARNING! Experimental build. Report any problems." } configure.ldflags-append -framework OpenCL configure.args \ --prefix=${prefix}/share \ --exec-prefix=${prefix} \ --with-fftw-includes=${prefix}/include \ --with-fftw-libs=${prefix}/lib \ --with-freetype \ --with-freetype-includes=${prefix}/include/freetype2 \ --with-freetype-libs=${prefix}/lib \ --with-gdal=${prefix}/bin/gdal-config \ --with-tiff-includes=${prefix}/include \ --with-tiff-libs=${prefix}/lib \ --with-png-includes=${prefix}/include \ --with-png-libs=${prefix}/lib \ --with-proj-includes=${prefix}/include \ --with-proj-libs=${prefix}/lib \ --with-proj-share=${prefix}/share/proj \ --with-geos \ --with-geos-includes=${prefix}/include \ --with-geos-libs=${prefix}/lib \ --without-postgres \ --with-pthread \ --with-cairo \ --with-cairo-includes=${prefix}/include/cairo \ --with-cairo-libs=${prefix}/lib \ --with-opengl=osx \ --with-opencl=yes \ --with-blas \ --with-lapack=no \ --with-readline \ --with-readline-includes=${prefix}/include/readline \ --with-readline-libs=${prefix}/lib \ --with-wxwidgets=${wxWidgets.wxconfig} \ build.target default variant mysql5 description {Add MySQL 5 support} { depends_lib-append path:bin/mysql_config5:mysql5 configure.args-append --with-mysql configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql configure.args-append --with-mysql-libs=${prefix}/lib/mysql5/mysql configure.env-append MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config } variant postgresql96 description {Add PostgreSQL 9.6 support} \ conflicts postgresql95 { depends_lib-append port:postgresql96 configure.args-delete --without-postgres configure.args-append --with-postgres configure.args-append --with-postgres-includes=${prefix}/include/postgresql96 configure.args-append --with-postgres-libs=${prefix}/lib/postgresql96 } variant postgresql95 description {Add PostgreSQL 9.5 support} \ conflicts postgresql96 { depends_lib-append port:postgresql95 configure.args-delete --without-postgres configure.args-append --with-postgres configure.args-append --with-postgres-includes=${prefix}/include/postgresql95 configure.args-append --with-postgres-libs=${prefix}/lib/postgresql95 } variant sqlite description {Add SQLite 3 support} { depends_lib-append port:sqlite3 configure.args-append --with-sqlite configure.args-append --with-sqlite-includes=${prefix}/include configure.args-append --with-sqlite-libs=${prefix}/lib } variant ffmpeg description {Add ffmpeg support} { depends_lib-append path:lib/libavcodec.dylib:ffmpeg configure.args-append --with-ffmpeg \ --with-ffmpeg-includes=\"${prefix}/include/libavcodec \ ${prefix}/include/libavformat \ ${prefix}/include/libswscale\" \ --with-ffmpeglibs=${prefix}/lib } variant atlas description {Use Atlas for BLAS/LAPACK} { depends_lib-append port:atlas # configure.args-append --with-libblas=${prefix}/lib/libtatlas.dylib # configure.args-append --with-liblapack=${prefix}/lib/libtatlas.dylib } livecheck.type regex livecheck.url http://grass.osgeo.org/download/software/sources/ livecheck.regex grass-7.(\[0-9.\]+)${extract.suffix}