New formula: dcmtk

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
James Miller 2010-11-07 12:32:53 -08:00 committed by Adam Vandenberg
parent 8a65dffd90
commit 1a89a950f5

27
Formula/dcmtk.rb Normal file
View file

@ -0,0 +1,27 @@
require 'formula'
class Dcmtk <Formula
url 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk354/dcmtk-3.5.4.tar.gz'
homepage 'http://dicom.offis.de/dcmtk.php.en'
md5 '0afd971cdf976a5b336722ef2f68e6d7'
depends_on 'jpeg'
depends_on 'libpng'
depends_on 'libtiff'
depends_on 'libxml2'
def install
ENV.deparallelize
ENV.m64 if snow_leopard_64?
system "./configure", "--disable-dependency-tracking", "--disable-debug",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-threads",
"--with-libtiffinc",
"--with-libpnginc",
"--with-libxmlinc"
system "make all"
system "make install"
end
end