Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated formula for PDAL #11321

Closed
wants to merge 12 commits into from

2 participants

chambbj Adam Vandenberg
chambbj

PDAL development continues to evolve. This is updates the formula
from v0.1 to v0.6. Adds many options and their associated dependencies,
e.g., GDAL.

chambbj added some commits
chambbj chambbj Update to pdal v0.6
PDAL development continues to evolve. This is updates the formula
from v0.1 to v0.6. Adds many options and their associated dependencies,
e.g., GDAL.
bc188b7
chambbj chambbj Update to libLAS v1.7.0
This is an update to libLAS, from v1.6.1 to 1.7.0. The libLAS v1.7.0 release
notes can be found at
(http://lists.osgeo.org/pipermail/liblas-devel/2011-June/001409.html).
5ae5dd6
Adam Vandenberg

Use an or clause on this and other deps that are triggered with more than one flag

Adam Vandenberg

Use the new block form of mkdir:

mkdir do ... stuff end

chambbj chambbj Updated based on feedback from pull request.
Use or clause for dependencies triggered with multiple flags. Transitioned to
'mkdir' block. Temporarily removed support for GDAL and libgeotiff, which must
be built from trunk of their repos, and added a caveat to explain the situation
for users who require them.
fa6128f
chambbj

Should be fixed. Also added a caveat for some funny dependency behavior.

Didn't know the libLAS commit would sneak into the pull request. Can you cherrypick around it?

chambbj added some commits
chambbj chambbj Update to pdal v0.6
PDAL development continues to evolve. This is updates the formula
from v0.1 to v0.6. Adds many options and their associated dependencies,
e.g., GDAL.

Updated based on feedback from pull request.

Use or clause for dependencies triggered with multiple flags. Transitioned to
'mkdir' block. Temporarily removed support for GDAL and libgeotiff, which must
be built from trunk of their repos, and added a caveat to explain the situation
for users who require them.
94a60cd
chambbj chambbj Update to libLAS v1.7.0
This is an update to libLAS, from v1.6.1 to 1.7.0. The libLAS v1.7.0 release
notes can be found at
(http://lists.osgeo.org/pipermail/liblas-devel/2011-June/001409.html).
9dca607
chambbj chambbj Not sure why we need to check for Fortran a5ecc80
chambbj chambbj Adding formula for libusb-devel
This devel version of libusb is required by PCL for building on OS X
317d370
chambbj chambbj Adding formula for Loki 00ab97b
chambbj chambbj Formula for OpenNI
Patched for OS X, dependency of PCL
ff5da0d
chambbj chambbj Unofficial formula for PCL
The PCL maintainers developed this and published it, but are not yet ready to
commit. This is just a fork for local testing.
a01c8a1
chambbj chambbj Adding formula for tvmet 9373b70
chambbj chambbj Merge branch 'master' of github.com:chambbj/homebrew e1a045c
chambbj chambbj closed this
chambbj

Going to clean things up a bit -- move this pull request to a separate branch -- and reopen the request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 30, 2012
  1. chambbj

    Update to pdal v0.6

    chambbj authored
    PDAL development continues to evolve. This is updates the formula
    from v0.1 to v0.6. Adds many options and their associated dependencies,
    e.g., GDAL.
  2. chambbj

    Update to libLAS v1.7.0

    chambbj authored
    This is an update to libLAS, from v1.6.1 to 1.7.0. The libLAS v1.7.0 release
    notes can be found at
    (http://lists.osgeo.org/pipermail/liblas-devel/2011-June/001409.html).
  3. chambbj

    Updated based on feedback from pull request.

    chambbj authored
    Use or clause for dependencies triggered with multiple flags. Transitioned to
    'mkdir' block. Temporarily removed support for GDAL and libgeotiff, which must
    be built from trunk of their repos, and added a caveat to explain the situation
    for users who require them.
Commits on Mar 31, 2012
  1. chambbj

    Update to pdal v0.6

    chambbj authored
    PDAL development continues to evolve. This is updates the formula
    from v0.1 to v0.6. Adds many options and their associated dependencies,
    e.g., GDAL.
    
    Updated based on feedback from pull request.
    
    Use or clause for dependencies triggered with multiple flags. Transitioned to
    'mkdir' block. Temporarily removed support for GDAL and libgeotiff, which must
    be built from trunk of their repos, and added a caveat to explain the situation
    for users who require them.
  2. chambbj

    Update to libLAS v1.7.0

    chambbj authored
    This is an update to libLAS, from v1.6.1 to 1.7.0. The libLAS v1.7.0 release
    notes can be found at
    (http://lists.osgeo.org/pipermail/liblas-devel/2011-June/001409.html).
  3. chambbj
  4. chambbj

    Adding formula for libusb-devel

    chambbj authored
    This devel version of libusb is required by PCL for building on OS X
  5. chambbj

    Adding formula for Loki

    chambbj authored
  6. chambbj

    Formula for OpenNI

    chambbj authored
    Patched for OS X, dependency of PCL
  7. chambbj

    Unofficial formula for PCL

    chambbj authored
    The PCL maintainers developed this and published it, but are not yet ready to
    commit. This is just a fork for local testing.
  8. chambbj

    Adding formula for tvmet

    chambbj authored
  9. chambbj
This page is out of date. Refresh to see the latest.
2  Library/Formula/eigen.rb
View
@@ -8,7 +8,7 @@ class Eigen < Formula
depends_on 'cmake' => :build
def install
- ENV.fortran
+# ENV.fortran
mkdir 'eigen-build' do
system "cmake #{std_cmake_parameters} -DCMAKE_BUILD_TYPE=Release -Dpkg_config_libdir=#{lib} .."
system "make install"
4 Library/Formula/liblas.rb
View
@@ -2,8 +2,8 @@
class Liblas < Formula
homepage 'http://liblas.org'
- url 'http://download.osgeo.org/liblas/libLAS-1.6.1.tar.gz'
- sha1 '0eada80c6de49e9e866f746645cb227034c3af4a'
+ url 'http://download.osgeo.org/liblas/libLAS-1.7.0.tar.gz'
+ md5 '03de7a61132902846c12f3b28c38eb37'
depends_on 'cmake' => :build
depends_on 'libgeotiff'
17 Library/Formula/libusb-devel.rb
View
@@ -0,0 +1,17 @@
+require 'formula'
+
+class LibusbDevel < Formula
+ url 'https://github.com/OpenNI/OpenNI/blob/4dbf64bc45b880bfda6aa6bb2a30d1ddd03a8c65/Platform/Linux/Build/Prerequisites/libusb-1.0.8-osx.tar.bz2?raw=true'
+ homepage 'http://www.libusb.org/'
+ md5 '8ad20ec24b7612caf75a059a03f21dd8'
+
+ depends_on "automake" => :build
+ depends_on "libtool" => :build
+
+ def install
+ system "./autogen.sh"
+ system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "LDFLAGS=-framework IOKit -framework CoreFoundation -arch x86_64", "CFLAGS=-arch x86_64"
+ system "make"
+ system "make install"
+ end
+end
13 Library/Formula/loki.rb
View
@@ -0,0 +1,13 @@
+require 'formula'
+
+class Loki < Formula
+ url 'http://downloads.sourceforge.net/project/loki-lib/Loki/Loki%200.1.7/loki-0.1.7.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Floki-lib%2Ffiles%2FLoki%2FLoki%25200.1.7%2F&ts=1333050366&use_mirror=softlayer'
+ homepage 'http://loki-lib.sourceforge.net/index.php?n=Main.HomePage'
+ md5 '8261e83cf2c904fd915823336e7116bd'
+ version '0.1.7'
+
+ def install
+ system "make" # Separate steps or install fails
+ system "make install"
+ end
+end
21 Library/Formula/openni-osx.rb
View
@@ -0,0 +1,21 @@
+require 'formula'
+
+class OpenniOsx < Formula
+ url 'https://github.com/OpenNI/OpenNI/zipball/Stable-1.5.2.23'
+ homepage 'https://github.com/OpenNI/OpenNI'
+ md5 '74f1a05b41ee099df3c461baaeecb7da'
+
+ depends_on "libusb-devel"
+
+ def install
+# Dir.chdir 'Platform/Linux/CreateRedist' do
+# system "./RedistMaker"
+# Dir.chdir '../Redist' do
+# system "./install.sh"
+# end
+# end
+ Dir.chdir 'Platform/Linux/Build' do
+ system "make install"
+ end
+ end
+end
125 Library/Formula/pcl.rb
View
@@ -0,0 +1,125 @@
+require 'formula'
+
+class Pcl < Formula
+ url 'http://www.pointclouds.org/assets/files/1.4.0/PCL-1.4.0-Source.tar.bz2'
+ homepage 'http://www.pointclouds.org'
+ md5 '63fd633a6306ae9b334131b250a2f893'
+ version '1.4'
+ head 'svn+ssh://svn@svn.pointclouds.org/pcl/trunk'
+
+ depends_on 'cmake'
+ depends_on 'boost'
+ depends_on 'eigen'
+ depends_on 'flann'
+ depends_on 'cminpack'
+ depends_on 'vtk'
+ depends_on 'qhull'
+ depends_on 'libusb'
+
+ depends_on 'doxygen' if ARGV.include? '--doc'
+ depends_on 'sphinx' if ARGV.include? '--doc'
+
+ def options
+ [
+ ['--apps', "Build apps"],
+ ['--doc', "Build documentation"],
+ ['--nofeatures', "Disable features module"],
+ ['--nofilters', "Disable filters module"],
+ ['--noio', "Disable io module"],
+ ['--nokdtree', "Disable kdtree module"],
+ ['--nokeypoints', "Disable keypoints module"],
+ ['--nooctree', "Disable octree module"],
+ ['--noproctor', "Disable proctor module"],
+ ['--nopython', "Disable Python bindings"],
+ ['--norangeimage', "Disable range image module"],
+ ['--noregistration', "Disable registration module"],
+ ['--nosac', "Disable sample consensus module"],
+ ['--nosearch', "Disable search module"],
+ ['--nosegmentation', "Disable segmentation module"],
+ ['--nosurface', "Disable surface module"],
+ ['--notools', "Disable tools module"],
+ ['--notracking', "Disable tracking module"],
+ ['--novis', "Disable visualisation module"],
+ ]
+ end
+
+ def install
+ args = std_cmake_parameters.split
+
+ if ARGV.include? '--noapps'
+ args << "-DBUILD_apps:BOOL=OFF"
+ end
+ if ARGV.include? '--doc'
+ args << "-DBUILD_documentation:BOOL=ON"
+ else
+ args << "-DBUILD_documentation:BOOL=OFF"
+ end
+ if ARGV.include? '--nofeatures'
+ args << "-DBUILD_features:BOOL=OFF"
+ end
+ if ARGV.include? '--nofilters'
+ args << "-DBUILD_filters:BOOL=OFF"
+ end
+ if ARGV.include? '--noio'
+ args << "-DBUILD_io:BOOL=OFF"
+ end
+ if ARGV.include? '--nokdtree'
+ args << "-DBUILD_kdtree:BOOL=OFF"
+ end
+ if ARGV.include? '--nokeypoints'
+ args << "-DBUILD_keypoints:BOOL=OFF"
+ end
+ if ARGV.include? '--nooctree'
+ args << "-DBUILD_octree:BOOL=OFF"
+ end
+ if ARGV.include? '--noproctor'
+ args << "-DBUILD_proctor:BOOL=OFF"
+ end
+ if ARGV.include? '--nopython'
+ args << "-DBUILD_python:BOOL=OFF"
+ end
+ if ARGV.include? '--norangeimage'
+ args << "-DBUILD_rangeimage:BOOL=OFF"
+ end
+ if ARGV.include? '--noregistration'
+ args << "-DBUILD_registration:BOOL=OFF"
+ end
+ if ARGV.include? '--nosac'
+ args << "-DBUILD_sac:BOOL=OFF"
+ end
+ if ARGV.include? '--nosearch'
+ args << "-DBUILD_search:BOOL=OFF"
+ end
+ if ARGV.include? '--nosegmentation'
+ args << "-DBUILD_segmentation:BOOL=OFF"
+ end
+ if ARGV.include? '--nosurface'
+ args << "-DBUILD_surface:BOOL=OFF"
+ end
+ if ARGV.include? '--notools'
+ args << "-DBUILD_tools:BOOL=OFF"
+ end
+ if ARGV.include? '--notracking'
+ args << "-DBUILD_tracking:BOOL=OFF"
+ end
+ if ARGV.include? '--novis'
+ args << "-DBUILD_visualization:BOOL=OFF"
+ end
+
+ system "mkdir build"
+ args << ".."
+ Dir.chdir 'build' do
+ system "cmake", *args
+ system "make install"
+ end
+ end
+
+ def test
+ # This test will fail and we won't accept that! It's enough to just
+ # replace "false" with the main program this formula installs, but
+ # it'd be nice if you were more thorough. Test the test with
+ # `brew test pcl`. Remove this comment before submitting
+ # your pull request!
+ system "false"
+ end
+end
111 Library/Formula/pdal.rb
View
@@ -2,14 +2,115 @@
class Pdal < Formula
homepage 'http://pointcloud.org'
- url 'https://github.com/PDAL/PDAL/zipball/0.1.0'
- md5 'fd5766b2da2337971cbf0e465dc5bd50'
+ url 'https://github.com/PDAL/PDAL/zipball/0.6.0'
+ md5 'e21c2227a9302f033f8ecf513baedf51'
+
+ def options
+ [
+ ['--embed-boost', 'Use embedded Boost?'],
+# ['--with-gdal', 'Use GDAL?'],
+# ['--with-geotiff', 'Use GeoTIFF?'],
+ ['--with-iconv', 'Use ICONV?'],
+ ['--with-laszip', 'Use LASZIP?'],
+ ['--with-libxml2', 'Use libXML2?'],
+ ['--with-mrsid', 'Use MRSID?'],
+ ['--with-oracle', 'Use Oracle?'],
+ ['--with-p2g', 'Use P2G?'],
+ ['--with-pkgconfig', 'Use PkgConfig?'],
+ ['--with-python', 'Use Python?'],
+ ['--with-swig-csharp', 'Use SWIG C#?'],
+ ['--with-swig-python', 'Use SWIG Python?'],
+ ['--with-tests', 'Use tests?']
+ ]
+ end
depends_on 'cmake' => :build
- depends_on 'boost'
+ depends_on 'boost' unless ARGV.include? '--embed-boost'
+
+# depends_on 'libgeotiff' if ARGV.include? '--with-geotiff' || '--with-gdal'
+# depends_on 'gdal' if ARGV.include? '--with-gdal'
+ depends_on 'iconv' if ARGV.include? '--with-iconv'
+ depends_on 'laszip' if ARGV.include? '--with-laszip'
+ depends_on 'libxml2' if ARGV.include? '--with-libxml2'
+ depends_on 'mrsid' if ARGV.include? '--with-mrsid'
+ depends_on 'oracle' if ARGV.include? '--with-oracle'
+ depends_on 'p2k' if ARGV.include? '--with-p2g'
+ depends_on 'pkgconfig' if ARGV.include? '--with-pkgconfig'
+ depends_on 'python' if ARGV.include? '--with-python'
+ depends_on 'swig' if ARGV.include? '--with-swig-csharp' || '--with-swig-python'
def install
- system "cmake #{std_cmake_parameters} ."
- system "make install"
+ args = std_cmake_parameters.split
+
+ if ARGV.include? '--with-gdal'
+ args << "-DWITH_GDAL:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-geotiff'
+ args << "-DWITH_GEOTIFF:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-iconv'
+ args << "-DWITH_ICONV:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-laszip'
+ args << "-DWITH_LASZIP:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-libxml2'
+ args << "-DWITH_LIBXML2:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-mrsid'
+ args << "-DWITH_MRSID:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-oracle'
+ args << "-DWITH_ORACLE:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-p2g'
+ args << "-DWITH_P2G:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-pkgconfig'
+ args << "-DWITH_PKGCONFIG:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-python'
+ args << "-DWITH_PYTHON:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-swig-csharp'
+ args << "-DWITH_SWIG_CSHARP:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-swig-python'
+ args << "-DWITH_SWIG_PYTHON:BOOL=ON"
+ end
+
+ if ARGV.include? '--with-tests'
+ args << "-DWITH_TESTS:BOOL=ON"
+ end
+
+# system "mkdir build"
+ args << ".."
+
+ mkdir 'build' do
+ ENV['Boost_INCLUDE_DIR'] = "#{HOMEBREW_PREFIX}/include"
+ ENV['Boost_LIBRARYS_DIRS'] = "#{HOMEBREW_PREFIX}/lib"
+ system "cmake", *args
+ system "make install"
+ end
+ end
+
+ def caveats
+ <<-EOS
+There is currently a bug when attempting to build with the latest
+release versions of GDAL and libgeotiff. If this functionality is
+required, it is best to build from trunk of the respective SVN
+repositories.
+ EOS
end
end
14 Library/Formula/tvmet.rb
View
@@ -0,0 +1,14 @@
+require 'formula'
+
+class Tvmet < Formula
+ url 'http://downloads.sourceforge.net/project/tvmet/Tar.Gz_Bz2%20Archive/1.7.2/tvmet-1.7.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftvmet%2Ffiles%2F&ts=1333123044&use_mirror=softlayer'
+ homepage 'http://tvmet.sourceforge.net'
+ md5 '8e1b2ec67ebec65f680a8bd3ea38a656'
+ version '1.7.2'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-cppunit"
+ system "make" # Separate steps or install fails
+ system "make install"
+ end
+end
Something went wrong with that request. Please try again.