[41470] trunk/dports/graphics/libgeotiff/Portfile

blb at macports.org blb at macports.org
Mon Nov 3 18:48:27 PST 2008


Revision: 41470
          http://trac.macports.org/changeset/41470
Author:   blb at macports.org
Date:     2008-11-03 18:48:27 -0800 (Mon, 03 Nov 2008)
Log Message:
-----------
graphics/libgeotiff - remove cd usage and prefer internal install commands; ticket #16103, maintainer timeout

Modified Paths:
--------------
    trunk/dports/graphics/libgeotiff/Portfile

Modified: trunk/dports/graphics/libgeotiff/Portfile
===================================================================
--- trunk/dports/graphics/libgeotiff/Portfile	2008-11-04 02:42:44 UTC (rev 41469)
+++ trunk/dports/graphics/libgeotiff/Portfile	2008-11-04 02:48:27 UTC (rev 41470)
@@ -28,8 +28,7 @@
 build.env	DESTDIR=${destroot}
 destroot.env	DESTDIR=${destroot}
 
-post-build	{ cd ${worksrcpath}
-		  system "cc -dynamiclib -all_load \
+post-build	{ system "cd ${worksrcpath} && cc -dynamiclib -all_load \
 		  -install_name ${prefix}/lib/libgeotiff.${version}.dylib \
 		  -compatibility_version ${version} \
 		  -o libgeotiff.${version}.dylib libgeotiff.a -L${prefix}/lib \
@@ -37,12 +36,12 @@
 
 pre-destroot	"file mkdir ${destroot}/${prefix}"
 
-post-destroot	{ system "rm ${destroot}/${prefix}/lib/libgeotiff.a"
-		  cd ${worksrcpath}
-		  system "install -m 755 -d ${destroot}/${prefix}/lib"
-		  system "install -m 644 -c \
-		    libgeotiff.${version}.dylib ${destroot}${prefix}/lib"
-		  system "ln -sf libgeotiff.${version}.dylib \
-		    ${destroot}/${prefix}/lib/libgeotiff.${libver}.dylib"
-		  system "ln -sf libgeotiff.${version}.dylib \
-		    ${destroot}/${prefix}/lib/libgeotiff.dylib" }
+post-destroot	{ delete ${destroot}${prefix}/lib/libgeotiff.a
+		  xinstall -m 755 -d ${destroot}${prefix}/lib
+		  xinstall -m 644 -W ${worksrcpath} \
+		    libgeotiff.${version}.dylib \
+		    ${destroot}${prefix}/lib
+		  ln -sf libgeotiff.${version}.dylib \
+		    ${destroot}${prefix}/lib/libgeotiff.${libver}.dylib
+		  ln -sf libgeotiff.${version}.dylib \
+		    ${destroot}${prefix}/lib/libgeotiff.dylib }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081103/16d03cdc/attachment-0001.html>


More information about the macports-changes mailing list