[77378] trunk/dports/devel/libsockets/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Mar 28 23:51:51 PDT 2011
Revision: 77378
http://trac.macports.org/changeset/77378
Author: ryandesign at macports.org
Date: 2011-03-28 23:51:50 -0700 (Mon, 28 Mar 2011)
Log Message:
-----------
libsockets: fix universal variant using muniversal portgroup; see #28604
Modified Paths:
--------------
trunk/dports/devel/libsockets/Portfile
Modified: trunk/dports/devel/libsockets/Portfile
===================================================================
--- trunk/dports/devel/libsockets/Portfile 2011-03-29 06:41:39 UTC (rev 77377)
+++ trunk/dports/devel/libsockets/Portfile 2011-03-29 06:51:50 UTC (rev 77378)
@@ -1,6 +1,7 @@
# $Id$
PortSystem 1.0
+PortGroup muniversal 1.0
name libsockets
version 2.3.9.5
@@ -33,9 +34,20 @@
configure.env-append PLATFORM="macosx" PREFIX="${prefix}"
build.target-append libSockets.dylib
-post-destroot {
- xinstall -m 755 -W ${worksrcpath} \
- libSockets.1.0.0.dylib libSockets.dylib ${destroot}${prefix}/lib
+pre-destroot {
+ set paths {}
+ if {[variant_isset universal]} {
+ foreach arch ${universal_archs_to_use} {
+ lappend paths ${worksrcpath}-${arch} ${destroot}-${arch}
+ }
+ } else {
+ lappend paths ${worksrcpath} ${destroot}
+ }
+ foreach {wpath dpath} ${paths} {
+ xinstall -d ${dpath}${prefix}/lib
+ xinstall -m 755 -W ${wpath} \
+ libSockets.1.0.0.dylib libSockets.dylib ${dpath}${prefix}/lib
+ }
}
livecheck.type freshmeat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110328/60d7ed13/attachment.html>
More information about the macports-changes
mailing list