diff options
Diffstat (limited to 'homebrew/liblas')
-rw-r--r-- | homebrew/liblas/.beer | 51 | ||||
-rw-r--r-- | homebrew/liblas/.make.sh-auto | 9 | ||||
-rw-r--r-- | homebrew/liblas/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/liblas/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/liblas/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/liblas/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/liblas/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/liblas/patches.sh | 2 |
8 files changed, 67 insertions, 0 deletions
diff --git a/homebrew/liblas/.beer b/homebrew/liblas/.beer new file mode 100644 index 000000000..fb1afa798 --- /dev/null +++ b/homebrew/liblas/.beer @@ -0,0 +1,51 @@ +{ + "name": "Liblas", + "description": "C/C++ library for reading and writing the LAS LiDAR format", + "url": "https://download.osgeo.org/liblas/libLAS-1.8.1.tar.bz2", + "mirror": null, + "homepage": "https://liblas.org/", + "depends": [ + { + "depend": "cmake", + "build-depend": true + }, + { + "depend": "boost", + "build-depend": false + }, + { + "depend": "gdal", + "build-depend": false + }, + { + "depend": "libgeotiff", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": "https://github.com/libLAS/libLAS/commit/49606470.patch?full_index=1", + "strip": "1" + }, + { + "url": "https://github.com/libLAS/libLAS/commit/ec10e274.diff?full_index=1", + "strip": "1" + } + ], + "install": [ + "ENV.cxx11", + "mkdir \"macbuild\" do", + "ENV[\"Boost_INCLUDE_DIR\"] = \"#{HOMEBREW_PREFIX}/include\"", + "ENV[\"Boost_LIBRARY_DIRS\"] = \"#{HOMEBREW_PREFIX}/lib\"", + "system \"cmake\", \"..\", *std_cmake_args,", + "\"-DWITH_GDAL=ON\",", + "\"-DWITH_GEOTIFF=ON\"", + "system \"make\"", + "system \"make\", \"test\"", + "system \"make\", \"install\"" + ], + "version": "1.8.1", + "file": "liblas.rb" +}
\ No newline at end of file diff --git a/homebrew/liblas/.make.sh-auto b/homebrew/liblas/.make.sh-auto new file mode 100644 index 000000000..c98f00d0c --- /dev/null +++ b/homebrew/liblas/.make.sh-auto @@ -0,0 +1,9 @@ +pkg:setup +ENV.cxx11 +mkdir "macbuild" && cd macbuild +ENV["Boost_INCLUDE_DIR"] = "#{HOMEBREW_PREFIX}/include" +ENV["Boost_LIBRARY_DIRS"] = "#{HOMEBREW_PREFIX}/lib" +cmake .. -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DWITH_GDAL=ON -DWITH_GEOTIFF=ON +make +make test +make DESTDIR=${PKG_DEST} install diff --git a/homebrew/liblas/_metadata/description b/homebrew/liblas/_metadata/description new file mode 100644 index 000000000..f4c9e798c --- /dev/null +++ b/homebrew/liblas/_metadata/description @@ -0,0 +1 @@ +C/C++ library for reading and writing the LAS LiDAR format diff --git a/homebrew/liblas/_metadata/homepage b/homebrew/liblas/_metadata/homepage new file mode 100644 index 000000000..2cd9fcf68 --- /dev/null +++ b/homebrew/liblas/_metadata/homepage @@ -0,0 +1 @@ +https://liblas.org/ diff --git a/homebrew/liblas/_metadata/name b/homebrew/liblas/_metadata/name new file mode 100644 index 000000000..9f78b9a2d --- /dev/null +++ b/homebrew/liblas/_metadata/name @@ -0,0 +1 @@ +Liblas diff --git a/homebrew/liblas/_metadata/version b/homebrew/liblas/_metadata/version new file mode 100644 index 000000000..a8fdfda1c --- /dev/null +++ b/homebrew/liblas/_metadata/version @@ -0,0 +1 @@ +1.8.1 diff --git a/homebrew/liblas/download.sh b/homebrew/liblas/download.sh new file mode 100755 index 000000000..8588347ce --- /dev/null +++ b/homebrew/liblas/download.sh @@ -0,0 +1 @@ +wget https://download.osgeo.org/liblas/libLAS-1.8.1.tar.bz2
\ No newline at end of file diff --git a/homebrew/liblas/patches.sh b/homebrew/liblas/patches.sh new file mode 100755 index 000000000..cab328f67 --- /dev/null +++ b/homebrew/liblas/patches.sh @@ -0,0 +1,2 @@ +wget https://github.com/libLAS/libLAS/commit/49606470.patch?full_index=1 +wget https://github.com/libLAS/libLAS/commit/ec10e274.diff?full_index=1 |