[38948] trunk/dports/graphics

raimue at macports.org raimue at macports.org
Sun Aug 3 06:34:34 PDT 2008


Revision: 38948
          http://trac.macosforge.org/projects/macports/changeset/38948
Author:   raimue at macports.org
Date:     2008-08-03 06:34:32 -0700 (Sun, 03 Aug 2008)
Log Message:
-----------
graphics/dcmtk:
New port, closes #16163.

Added Paths:
-----------
    trunk/dports/graphics/dcmtk/
    trunk/dports/graphics/dcmtk/Portfile
    trunk/dports/graphics/dcmtk/files/
    trunk/dports/graphics/dcmtk/files/patch-config-configure.in.diff

Added: trunk/dports/graphics/dcmtk/Portfile
===================================================================
--- trunk/dports/graphics/dcmtk/Portfile	                        (rev 0)
+++ trunk/dports/graphics/dcmtk/Portfile	2008-08-03 13:34:32 UTC (rev 38948)
@@ -0,0 +1,50 @@
+# $Id$
+
+PortSystem 1.0
+
+name                        dcmtk
+version                     3.5.4
+categories                  graphics
+platforms                   darwin
+maintainers                 uni-koblenz.de:guidolorenz
+description                 The DICOM Toolkit.
+long_description            DCMTK is a collection of libraries and applications implementing \
+                            large parts of the DICOM standard. It includes software for examining, \
+                            constructing and converting DICOM image files, handling offline \
+                            media, sending and receiving images over a network connection, as \
+                            well as demonstrative image storage and worklist servers.
+
+homepage                    http://dicom.offis.de/dcmtk
+
+master_sites                ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk354/
+checksums                   md5 0afd971cdf976a5b336722ef2f68e6d7 \
+                            sha1 169056874947083e68eb941fcd53faaebc862ae5 \
+                            rmd160 d1558c9c68e53e0ea3b080fd2fb50b9d8e30eeba
+
+depends_lib                 port:zlib \
+                            port:tiff \
+                            port:libpng \
+                            port:libxml2
+                            
+platform darwin 9 {
+	# See http://forum.dcmtk.org/viewtopic.php?t=1372
+	
+	patchfiles              patch-config-configure.in.diff
+	
+	post-patch {
+		# Usually, we would system "cd ${worksrcpath}/config && ./autoall" here, but due to a
+		# conflict with the MacPorts installation of autoconf, we must make sure that the
+		# original autoconf distrubuted with Leopard (from /usr/bin) is used.
+		system "cd ${worksrcpath}/config && /usr/bin/autoheader"
+		system "cd ${worksrcpath}/config && /usr/bin/autoconf"
+		system "cd ${worksrcpath}/config && /usr/bin/autoconf confmod.in > confmod"
+	}
+}
+
+variant lib description {Install libraries and include files.} {
+	destroot.target-append install-lib
+}
+
+default_variants            +lib
+
+use_parallel_build          no


Property changes on: trunk/dports/graphics/dcmtk/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/graphics/dcmtk/files/patch-config-configure.in.diff
===================================================================
--- trunk/dports/graphics/dcmtk/files/patch-config-configure.in.diff	                        (rev 0)
+++ trunk/dports/graphics/dcmtk/files/patch-config-configure.in.diff	2008-08-03 13:34:32 UTC (rev 38948)
@@ -0,0 +1,24 @@
+--- config/configure.in.orig	2005-12-14 18:33:38.000000000 +0100
++++ config/configure.in	2008-07-28 20:26:15.000000000 +0200
+@@ -496,6 +496,10 @@
+ 	  CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CXXFLAGS"
+ 	  CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CFLAGS"
+ 	  ;; 
++	*-*-darwin9.*)
++	  CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CXXFLAGS"
++	  CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CFLAGS"
++	  ;; 
+ 	*)
+ 	  CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CXXFLAGS"
+ 	  CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CFLAGS"
+@@ -532,6 +536,10 @@
+ 	  CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CXXFLAGS"
+ 	  CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CFLAGS"
+ 	  ;; 
++	*-*-darwin9.*)
++	  CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CXXFLAGS"
++	  CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE $CFLAGS"
++	  ;; 
+ 	*)
+ 	  CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CXXFLAGS"
+ 	  CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CFLAGS"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080803/ad6b50c1/attachment.html 


More information about the macports-changes mailing list