aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dcmtk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/dcmtk.rb')
-rw-r--r--Library/Formula/dcmtk.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/dcmtk.rb b/Library/Formula/dcmtk.rb
new file mode 100644
index 000000000..d64f7ddd2
--- /dev/null
+++ b/Library/Formula/dcmtk.rb
@@ -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