Ignore:
Timestamp:
Mar 29, 2011, 6:51:50 AM (8 years ago)
Author:
ryandesign@…
Message:

libsockets: fix universal variant using muniversal portgroup; see #28604

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/libsockets/Portfile

    r77377 r77378  
    22
    33PortSystem 1.0
     4PortGroup               muniversal 1.0
    45
    56name                    libsockets
     
    3435build.target-append     libSockets.dylib
    3536
    36 post-destroot {
    37         xinstall -m 755 -W ${worksrcpath} \
    38                 libSockets.1.0.0.dylib libSockets.dylib ${destroot}${prefix}/lib
     37pre-destroot {
     38        set paths {}
     39        if {[variant_isset universal]} {
     40                foreach arch ${universal_archs_to_use} {
     41                        lappend paths ${worksrcpath}-${arch} ${destroot}-${arch}
     42                }
     43        } else {
     44                lappend paths ${worksrcpath} ${destroot}
     45        }
     46        foreach {wpath dpath} ${paths} {
     47                xinstall -d ${dpath}${prefix}/lib
     48                xinstall -m 755 -W ${wpath} \
     49                        libSockets.1.0.0.dylib libSockets.dylib ${dpath}${prefix}/lib
     50        }
    3951}
    4052
Note: See TracChangeset for help on using the changeset viewer.