[77982] trunk/dports/graphics/dcmtk/Portfile
eborisch at macports.org
eborisch at macports.org
Mon Apr 18 09:24:30 PDT 2011
Revision: 77982
http://trac.macports.org/changeset/77982
Author: eborisch at macports.org
Date: 2011-04-18 09:24:30 -0700 (Mon, 18 Apr 2011)
Log Message:
-----------
dcmtk: Enable building while prior version is active. Disallow building with +llvm if the correct compiler isn't installed. Add private tags variant.
Modified Paths:
--------------
trunk/dports/graphics/dcmtk/Portfile
Modified: trunk/dports/graphics/dcmtk/Portfile
===================================================================
--- trunk/dports/graphics/dcmtk/Portfile 2011-04-18 14:56:28 UTC (rev 77981)
+++ trunk/dports/graphics/dcmtk/Portfile 2011-04-18 16:24:30 UTC (rev 77982)
@@ -4,6 +4,7 @@
PortGroup muniversal 1.0
name dcmtk
version 3.6.0
+revision 1
set unpatched_version [lindex [split ${version} _] 0]
set stripped_version [string map {. ""} ${unpatched_version}]
categories graphics
@@ -42,14 +43,48 @@
port:libxml2 \
port:openssl
+# To enable building while previous version is in ${prefix}
+
+post-extract {
+ reinplace "s|\$\(LDFLAGS\) \$\(LIBDIRS\)|\$(LIBDIRS) \$(LDFLAGS)|g" \
+ ${worksrcpath}/dcmdata/apps/Makefile.in \
+ ${worksrcpath}/dcmdata/libsrc/Makefile.in \
+ ${worksrcpath}/dcmdata/tests/Makefile.in \
+ ${worksrcpath}/dcmimage/apps/Makefile.in \
+ ${worksrcpath}/dcmimgle/apps/Makefile.in \
+ ${worksrcpath}/dcmjpeg/apps/Makefile.in \
+ ${worksrcpath}/dcmjpls/apps/Makefile.in \
+ ${worksrcpath}/dcmnet/apps/Makefile.in \
+ ${worksrcpath}/dcmpstat/apps/Makefile.in \
+ ${worksrcpath}/dcmpstat/jni/Makefile.in \
+ ${worksrcpath}/dcmpstat/tests/Makefile.in \
+ ${worksrcpath}/dcmqrdb/apps/Makefile.in \
+ ${worksrcpath}/dcmsign/apps/Makefile.in \
+ ${worksrcpath}/dcmsr/apps/Makefile.in \
+ ${worksrcpath}/dcmsr/tests/Makefile.in \
+ ${worksrcpath}/dcmwlm/apps/Makefile.in \
+ ${worksrcpath}/dcmwlm/tests/Makefile.in \
+ ${worksrcpath}/dcmwlm/wwwapps/Makefile.in \
+ ${worksrcpath}/ofstd/tests/Makefile.in
+}
+
destroot.target-append install-lib
use_parallel_build no
variant llvm description "Use llvm compiler" {
- configure.compiler llvm-gcc-4.2
+ if { [file exists /usr/bin/llvm-g++-4.2] == 1 } {
+ configure.compiler llvm-gcc-4.2
+ } else {
+ ui_error "Unable to locate /usr/bin/llvm-g++-4.2 -- please build without +llvm"
+ return -code error
+ }
}
+variant private description "Install private tags dictionary" {
+ configure.args-append --with-private-tags
+}
+
destroot.args docdir=${destroot}${prefix}/share/doc/${name}
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110418/c47875b4/attachment.html>
More information about the macports-changes
mailing list