Revision
80128
Author
jmr@macports.org
Date
2011-07-04 18:40:02 -0700 (Mon, 04 Jul 2011)

Log Message

zlib, libtool: don't check for .dylib on non-darwin

Modified Paths

Diff

Modified: trunk/dports/archivers/zlib/Portfile (80127 => 80128)


--- trunk/dports/archivers/zlib/Portfile	2011-07-05 00:39:43 UTC (rev 80127)
+++ trunk/dports/archivers/zlib/Portfile	2011-07-05 01:40:02 UTC (rev 80128)
@@ -39,10 +39,12 @@
 destroot.destdir        prefix=${destroot}${prefix}
 
 post-destroot {
-    foreach {neededfile} "${prefix}/lib/libz.dylib" {
-        if {![file exists ${destroot}${neededfile}]} {
-            ui_error "${neededfile} is not in the destroot. Please clean ${name} and try again."
-            return -code error "missing ${neededfile} in destroot"
+    platform darwin {
+        foreach {neededfile} "${prefix}/lib/libz.dylib" {
+            if {![file exists ${destroot}${neededfile}]} {
+                ui_error "${neededfile} is not in the destroot. Please clean ${name} and try again."
+                return -code error "missing ${neededfile} in destroot"
+            }
         }
     }
     

Modified: trunk/dports/devel/libtool/Portfile (80127 => 80128)


--- trunk/dports/devel/libtool/Portfile	2011-07-05 00:39:43 UTC (rev 80127)
+++ trunk/dports/devel/libtool/Portfile	2011-07-05 01:40:02 UTC (rev 80128)
@@ -36,13 +36,6 @@
 use_parallel_build  yes
 
 post-destroot {
-    foreach {neededfile} "${prefix}/lib/libltdl.dylib" {
-        if {![file exists ${destroot}${neededfile}]} {
-            ui_error "${neededfile} is not in the destroot. Please clean ${name} and try again."
-            return -code error "missing ${neededfile} in destroot"
-        }
-    }
-    
     set docdir ${prefix}/share/doc/${name}
     xinstall -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \
@@ -55,6 +48,14 @@
 platform darwin {
     configure.env-append GREP=/usr/bin/grep \
                          SED=/usr/bin/sed
+    post-destroot {
+        foreach {neededfile} "${prefix}/lib/libltdl.dylib" {
+            if {![file exists ${destroot}${neededfile}]} {
+                ui_error "${neededfile} is not in the destroot. Please clean ${name} and try again."
+                return -code error "missing ${neededfile} in destroot"
+            }
+        }
+    }
 }
 
 livecheck.type  regex