Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

New formula for DGtal-0.5.1 #14332

Closed
wants to merge 1 commit into from

2 participants

@dcoeurjo

Adding new formula for DGtal (Digital Geometry tools and algorithms) http://liris.cnrs.fr/dgtal, https://github.com/DGtal-team/DGtal

@adamv adamv closed this pull request from a commit
@dcoeurjo dcoeurjo DGtal 0.5.1
Closes #14332.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
38954da
@adamv adamv closed this in 38954da
@theirix theirix referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@sessyargc sessyargc referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
@dcoeurjo dcoeurjo DGtal 0.5.1
Closes #14332.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
94f82bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 21, 2012
  1. @dcoeurjo

    New formula for DGtal-0.5.1

    dcoeurjo authored
This page is out of date. Refresh to see the latest.
Showing with 45 additions and 0 deletions.
  1. +45 −0 Library/Formula/dgtal.rb
View
45 Library/Formula/dgtal.rb
@@ -0,0 +1,45 @@
+require 'formula'
+
+class Dgtal < Formula
+ homepage 'http://liris.cnrs.fr/dgtal'
+ url 'http://liris.cnrs.fr/dgtal/releases/DGtal-0.5.1-Source.tar.gz'
+ sha1 'ab3e70186b3d1da1a698d3407e3603c69951e0f0'
+ head 'https://github.com/DGtal-team/DGtal.git'
+
+ depends_on 'cmake' => :build
+ depends_on 'boost'
+ depends_on 'gmp' if ARGV.include? '--with-gmp'
+ depends_on 'cairo' if ARGV.include? '--with-cairo'
+ depends_on 'libqglviewer' if ARGV.include? '--with-qglviewer'
+ depends_on 'graphicsmagick' if ARGV.include? '--with-magick'
+
+ def options
+ [
+ ['--with-cairo', "Enable cairographics in DGtal"],
+ ['--with-gmp', "Enable GNU Multiple Precision Arithmetic Library in DGtal"],
+ ['--with-qglview', "Enable QGLViewer vizualisation"],
+ ['--with-magick', "Enable GraphicsMagick for 2d image readers"]
+ ]
+ end
+
+ def install
+ args = ['']
+ args << std_cmake_args
+ args << "-DCMAKE_BUILD_TYPE=Release"
+ args << "-DBUILD_EXAMPLES=OFF"
+ args << "-DWITH_C11:bool=false"
+ if ARGV.include? '--with-gmp'
+ args << "-DWITH_GMP=ON"
+ end
+ if ARGV.include? '--with-cairo'
+ args << "-DWITH_CAIRO=ON"
+ end
+ if ARGV.include? '--with-qglviewer'
+ args << "-DWITH_QGLVIEWER=ON"
+ end
+ args << '.'
+ system "cmake", *args
+ system "make"
+ system "make install"
+ end
+end
Something went wrong with that request. Please try again.