Skip to content
Permalink
Browse files

libgeotiff: add +proj4 variant

  • Loading branch information
Veence committed Apr 10, 2018
1 parent 0cf734e commit bf9ea97ed80f26e2133591843bc7340d6c9e3332
Showing with 11 additions and 3 deletions.
  1. +11 −3 graphics/libgeotiff/Portfile
@@ -4,7 +4,7 @@ PortSystem 1.0

name libgeotiff
version 1.4.2
revision 3
revision 4
categories graphics
platforms darwin
license X11
@@ -22,7 +22,7 @@ master_sites http://download.osgeo.org/geotiff/libgeotiff/
checksums rmd160 f5871407f64ed0e754fcbdc80ed57ac735bd8886 \
sha256 ad87048adb91167b07f34974a8e53e4ec356494c29f1748de95252e8f81a5e6e

depends_lib port:tiff port:proj4 port:zlib port:jpeg
depends_lib port:tiff port:zlib port:jpeg

# Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
patchfiles yosemite-libtool.patch
@@ -31,10 +31,18 @@ post-patch {
reinplace "s|epsg_csv|${name}/epsg_csv|" ${worksrcpath}/Makefile.in
}

variant proj4 description {builds with proj 4.9} {
depends_lib-append port:proj4
configure.args-append --with-proj=${prefix}/lib/proj49
}
if {![variant_isset proj4]} {
depends_lib-append port:proj
configure.args-append --with-proj=${prefix}/lib/proj5
}

configure.args-append \
--with-zip=${prefix} \
--with-jpeg=${prefix} \
--with-proj=${prefix}/lib/proj49 \
--enable-incode-epsg

use_parallel_build no

0 comments on commit bf9ea97

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