Skip to content
Permalink
Browse files

grass7: adds a +proj4 variant

  • Loading branch information
Veence committed Apr 10, 2018
1 parent f0da6c0 commit 69a33fc69ca3da5969d68fc77df2edb584e62134
Showing with 19 additions and 8 deletions.
  1. +19 −8 gis/grass7/Portfile
@@ -5,7 +5,7 @@ PortGroup wxWidgets 1.0

name grass7
version 7.4.0
revision 2
revision 3
set realVersion ${version}
#distname grass-${version}
distname grass-${realVersion}
@@ -32,7 +32,6 @@ depends_lib port:bzip2 \
port:geos \
port:tiff \
port:libpng \
port:proj4\
port:liblas\
path:lib/pkgconfig/cairo.pc:cairo \
port:readline \
@@ -58,10 +57,26 @@ post-patch {
ui_warn "WARNING! Experimental build. Report any problems."
}

configure.env PATH=$::env(PATH):${prefix}/lib/proj49/bin
# PROJ version

variant proj4 description {Builds with PROJ4 4.x} {}

if {[variant_isset proj4]} {
set PROJ "proj49"
} else {
set PROJ "proj5"
}

depends_lib-append port:[string range ${PROJ} 0 end-1]
configure.env PATH=$::env(PATH):${prefix}/lib/${PROJ}/bin
build.env PATH=$::env(PATH):${prefix}/lib/${PROJ}/bin
configure.args-append --with-proj-includes=${prefix}/lib/${PROJ}/include \
--with-proj-libs=${prefix}/lib/${PROJ}/lib \
--with-proj-share=${prefix}/lib/${PROJ}/share/proj \

configure.ldflags-append -framework OpenCL

configure.args \
configure.args-append \
--prefix=${prefix}/share \
--exec-prefix=${prefix} \
--with-bzlib \
@@ -77,9 +92,6 @@ configure.args \
--with-tiff-libs=${prefix}/lib \
--with-png-includes=${prefix}/include \
--with-png-libs=${prefix}/lib \
--with-proj-includes=${prefix}/lib/proj49/include \
--with-proj-libs=${prefix}/lib/proj49/lib \
--with-proj-share=${prefix}/lib/proj49/share/proj \
--with-geos \
--with-geos-includes=${prefix}/include \
--with-geos-libs=${prefix}/lib \
@@ -97,7 +109,6 @@ configure.args \
--with-readline-includes=${prefix}/include/readline \
--with-readline-libs=${prefix}/lib

build.env PATH=$::env(PATH):${prefix}/lib/proj49/bin
build.target default

variant gui description {Builds with WxPython GUI} {

0 comments on commit 69a33fc

Please sign in to comment.
You can’t perform that action at this time.