[124551] trunk/dports/gis

vince at macports.org vince at macports.org
Mon Aug 25 11:43:15 PDT 2014


Revision: 124551
          https://trac.macports.org/changeset/124551
Author:   vince at macports.org
Date:     2014-08-25 11:43:15 -0700 (Mon, 25 Aug 2014)
Log Message:
-----------
Initial commit

Added Paths:
-----------
    trunk/dports/gis/kealib/
    trunk/dports/gis/kealib/Portfile
    trunk/dports/gis/rsgislib/
    trunk/dports/gis/rsgislib/Portfile
    trunk/dports/gis/rsgislib/files/
    trunk/dports/gis/rsgislib/files/patch-cmakelists_txt.diff

Added: trunk/dports/gis/kealib/Portfile
===================================================================
--- trunk/dports/gis/kealib/Portfile	                        (rev 0)
+++ trunk/dports/gis/kealib/Portfile	2014-08-25 18:43:15 UTC (rev 124551)
@@ -0,0 +1,47 @@
+# $Id: Portfile 114431 2013-12-08 09:48:42Z and.damore at macports.org $
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+PortGroup           bitbucket 1.0
+
+name                kealib
+categories          gis
+version             1.4.2.20140825
+license             MIT
+maintainers         vince
+description         KEAlib - Implements KEA file format into HDF5 format
+long_description    The KEA file format developed by the OSGEO is a GIS \
+                    oriented format that supports the GDAL model and allows \
+                    raster attribute tables for raster GIS operations. It is \
+                    built atop HDF5.
+platforms           darwin
+homepage            https://bitbucket.org/chchrsc/kealib
+master_sites        https://bitbucket.org/chchrsc/kealib
+distname            kealib
+
+bitbucket.setup     chchrsc kealib c6d36f3
+
+depends_lib-append  port:gdal \
+                    port:hdf5
+
+fetch.type          hg
+
+pre-configure {
+    reinplace -E "s/(gdalplugins)/lib\\/\\1/" ${worksrcpath}/trunk/gdal/CMakeLists.txt
+}
+
+configure.dir           ${worksrcpath}/trunk
+configure.args-append   -DGDAL_INCLUDE_DIR=${prefix} \
+                        -DGDAL_LIB_PATH=${prefix} \
+                        -DHDF5_INCLUDE_DIR=${prefix} \
+                        -DHDF5_LIB_PATH=${prefix} \
+                        -DCMAKE_VERBOSE_MAKEFILE=ON 
+
+build.dir               ${worksrcpath}/trunk
+use_parallel_build      no
+
+pre-install {
+    ui_msg "To be able to use KEA format in GDAL, set and export\
+            (or setenv) the variable GDAL_DRIVER_PATH to \
+            ${prefix}/lib/gdalplugins."
+}


Property changes on: trunk/dports/gis/kealib/Portfile
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/dports/gis/rsgislib/Portfile
===================================================================
--- trunk/dports/gis/rsgislib/Portfile	                        (rev 0)
+++ trunk/dports/gis/rsgislib/Portfile	2014-08-25 18:43:15 UTC (rev 124551)
@@ -0,0 +1,105 @@
+# $Id: Portfile 114431 2013-12-08 09:48:42Z and.damore at macports.org $
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+PortGroup           bitbucket 1.0
+
+name                rsgislib
+categories          gis
+version             2.1.20140825
+license             GPL-3
+maintainers         vince
+description         RSGISlib - Remote Sensing and GIS Library
+long_description    This library provides a lot of advanced tools to \
+                    perform image analysis and feature detection in \
+                    remote sensing and GIS applications.
+platforms           darwin
+homepage            http://www.rsgislib.org
+master_sites        http://bitbucket.org/petebunting/rsgislib/downloads
+distname            rsgislib
+
+bitbucket.setup     petebunting rsgislib 9135d61
+
+depends_lib-append      port:gdal \
+                        port:geos \
+                        port:cgal \
+                        port:proj \
+                        port:boost \
+                        port:xercesc3 \
+                        port:gsl \
+                        port:fftw-3 \
+                        port:kealib \
+                        port:muparser
+
+pre-fetch {
+    if {![variant_isset python27] && ![variant_isset python33] && \
+        ![variant_isset python34]} {
+
+        return -code error "You must choose at least one Python variant."
+    }
+}
+
+fetch.type              hg
+
+patchfiles              patch-cmakelists_txt.diff
+
+pre-configure {
+    if {[file exists ${prefix}/lib/libboost_filesystem-mt.dylib]} {
+        reinplace -E "s|(boost_\[^ )\]*)|\\1-mt|g" ${worksrcpath}/CMakeLists.txt
+        reinplace -E "s|(DESTINATION) doc|\\1 share\/doc\/rsgislib|" \
+            ${worksrcpath}/CMakeLists.txt
+    }
+}
+
+#configure.dir           ${worksrcpath}/trunk
+configure.args-append   -DBOOST_INCLUDE_DIR=${prefix} \
+                        -DBOOST_LIB_PATH=${prefix}\
+                        -DGDAL_INCLUDE_DIR=${prefix} \
+                        -DGDAL_LIB_PATH=${prefix}\
+                        -DHDF5_INCLUDE_DIR=${prefix} \
+                        -DHDF5_LIB_PATH=${prefix} \
+                        -DXERCESC_INCLUDE_DIR=${prefix} \
+                        -DXERCESC_LIB_PATH=${prefix} \
+                        -DGSL_INCLUDE_DIR=${prefix} \
+                        -DGSL_LIB_PATH=${prefix} \
+                        -DFFTW_INCLUDE_DIR=${prefix} \
+                        -DFFTW_LIB_PATH=${prefix} \
+                        -DGEOS_INCLUDE_DIR=${prefix} \
+                        -DGEOS_LIB_PATH=${prefix} \
+                        -DMUPARSER_INCLUDE_DIR=${prefix} \
+                        -DMUPARSER_LIB_PATH=${prefix} \
+                        -DCGAL_INCLUDE_DIR=${prefix} \
+                        -DCGAL_LIB_PATH=${prefix} \
+                        -DGMP_INCLUDE_DIR=${prefix} \
+                        -DGMP_LIB_PATH=${prefix} \
+                        -DMPFR_INCLUDE_DIR=${prefix} \
+                        -DMPFR_LIB_PATH=${prefix} \
+                        -DKEA_INCLUDE_DIR=${prefix} \
+                        -DKEA_LIB_PATH=${prefix} \
+                        -DCMAKE_VERBOSE_MAKEFILE=ON 
+
+variant python27 description {builds with Python 27 bindings} \
+                 conflicts python33 python34 {
+
+    depends_build-append    port:py27-numpy
+    configure.args-append   -DPYTHON_EXE=${prefix}/bin/python2.7
+    configure.args-append   -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/2.7/
+}
+
+variant python33 description {builds with Python 33 bindings} \
+                 conflicts python27 python34 {
+
+    depends_build-append    port:py33-numpy
+    configure.args-append   -DPYTHON_EXE=${prefix}/bin/python3.3
+    configure.args-append   -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.3/
+}
+
+variant python34 description {builds with Python 34 bindings} \
+                 conflicts python27 python33 {
+
+    depends_build-append    port:py34-numpy
+    configure.args-append   -DPYTHON_EXE=${prefix}/bin/python3.4
+    configure.args-append   -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.4/
+}
+
+#build.dir               ${worksrcpath}/trunk


Property changes on: trunk/dports/gis/rsgislib/Portfile
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/dports/gis/rsgislib/files/patch-cmakelists_txt.diff
===================================================================
--- trunk/dports/gis/rsgislib/files/patch-cmakelists_txt.diff	                        (rev 0)
+++ trunk/dports/gis/rsgislib/files/patch-cmakelists_txt.diff	2014-08-25 18:43:15 UTC (rev 124551)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.old	2014-08-22 17:03:01.000000000 +0200
++++ CMakeLists.txt	2014-08-22 17:04:08.000000000 +0200
+@@ -404,7 +404,7 @@
+ 
+ # Python 
+ if (BUILD_PYTHON_BINDINGS)
+-  install(CODE "execute_process(COMMAND ${PYTHON_EXE} \"setup.py\" \"install\" \"--prefix=${CMAKE_INSTALL_PREFIX}\"  WORKING_DIRECTORY \"python\")")
++  install(CODE "execute_process(COMMAND ${PYTHON_EXE} \"setup.py\" \"install\" \"--prefix=${PYTHON_INSTALL_PREFIX}\"  WORKING_DIRECTORY \"python\")")
+ endif(BUILD_PYTHON_BINDINGS)
+ 
+ ###############################################################################


Property changes on: trunk/dports/gis/rsgislib/files/patch-cmakelists_txt.diff
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140825/5a70baa8/attachment-0001.html>


More information about the macports-changes mailing list