Ticket #65988: Portfile_libdispatch-legacy

File Portfile_libdispatch-legacy, 1.7 KB (added by barracuda156, 19 months ago)
Line 
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
3PortSystem          1.0
4PortGroup           xcode 1.0
5
6name                libdispatch-legacy
7version             84.5.5
8categories          devel
9platforms           macosx
10license             Apache-2
11maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
12description         Grand Central Dispatch
13long_description    Grand Central Dispatch (GCD or libdispatch) provides comprehensive support for concurrent code execution on multicore hardware.
14homepage            https://opensource.apple.com/release/mac-os-x-1068.html
15master_sites        https://opensource.apple.com/tarballs/libdispatch/
16
17distfiles           libdispatch-${version}.tar.gz
18checksums           rmd160  3e6e1462b0da3082d6fcc3db3a2ac35746c492a1 \
19                    sha256  e40a2887b78c5286067a92bae6e229ec82fe369919cf74f3842abb73af665780 \
20                    size    171527
21
22xcode.target        libdispatch
23
24post-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
35if {${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}