1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup xcode 1.0 |
---|
5 | |
---|
6 | name libdispatch-legacy |
---|
7 | version 84.5.5 |
---|
8 | categories devel |
---|
9 | platforms macosx |
---|
10 | license Apache-2 |
---|
11 | maintainers {@barracuda156 gmail.com:vital.had} openmaintainer |
---|
12 | description Grand Central Dispatch |
---|
13 | long_description Grand Central Dispatch (GCD or libdispatch) provides comprehensive support for concurrent code execution on multicore hardware. |
---|
14 | homepage https://opensource.apple.com/release/mac-os-x-1068.html |
---|
15 | master_sites https://opensource.apple.com/tarballs/libdispatch/ |
---|
16 | |
---|
17 | distfiles libdispatch-${version}.tar.gz |
---|
18 | checksums rmd160 3e6e1462b0da3082d6fcc3db3a2ac35746c492a1 \ |
---|
19 | sha256 e40a2887b78c5286067a92bae6e229ec82fe369919cf74f3842abb73af665780 \ |
---|
20 | size 171527 |
---|
21 | |
---|
22 | xcode.target libdispatch |
---|
23 | |
---|
24 | post-patch { |
---|
25 | if {${build_arch} in [list ppc ppc64]} { |
---|
26 | reinplace "s|-Xarch_i386|-Xarch_ppc|g" ${worksrcpath}/libdispatch.xcodeproj/project.pbxproj |
---|
27 | reinplace "s|-Xarch_x86_64|-Xarch_ppc64|g" ${worksrcpath}/libdispatch.xcodeproj/project.pbxproj |
---|
28 | } |
---|
29 | if {[string match *gcc* ${configure.compiler}]} { |
---|
30 | # cc1: error: unrecognized command line option "-momit-leaf-frame-pointer" |
---|
31 | reinplace "s|-momit-leaf-frame-pointer| |g" ${worksrcpath}/libdispatch.xcodeproj/project.pbxproj |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | if {${os.major} < 10 || (${os.major} == 10 && ${build_arch} eq "ppc")} { |
---|
36 | depends_lib-append port:libblocksruntime |
---|
37 | configure.cxxflags-append -fblocks |
---|
38 | configure.ldflags-append -lBlocksRuntime |
---|
39 | } |
---|