source: trunk/dports/devel/bootstrap_cmds/Portfile

Last change on this file was 126230, checked in by mfeiri@…, 3 years ago

bootstrap_cmds: update to version 86 and restore cc_fallback patch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 126230 2014-10-05 20:35:42Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               xcode 1.0
5
6name                    bootstrap_cmds
7version                 86
8epoch                   1
9categories              devel
10maintainers             mfeiri openmaintainer
11homepage                http://opensource.apple.com/source/${name}/
12master_sites            http://opensource.apple.com/tarballs/${name}/
13license                 APSL-2
14installs_libs           no
15description             Darwin Core OS Bootstrap Commands
16long_description        Bootstrapping tools like the Mach Interface \
17                        Generator (MIG) required to build the XNU kernel.
18
19checksums               rmd160  fca2a2bd26a1ca825e25281322914b70d3485278 \
20                        sha256  8b8be9a719c60e532454a4fc614e74140ff10a822855b5e6c123872a4d122077
21
22xcode.target            migcom
23xcode.destroot.path     ${prefix}/bin
24
25patchfiles              cc_fallback.patch
26
27# for replath and decomment
28if {${os.major} < 12} {
29    version         80
30    revision        5
31    checksums       rmd160  072e399562eb021e4fa0cd66132153afcc02f417 \
32                    sha256  2ae65cd2ca6f0f684b25aad46a649aeb95a774d06a8287c59962fba42900a2fc
33
34    supported_archs i386 ppc
35    xcode.project   migcom.tproj/migcom.xcodeproj
36
37    pre-build {
38        file delete ${worksrcpath}/Makefile
39        system "CC=${configure.cc} make -C ${worksrcpath} decomment.tproj/decomment relpath.tproj/relpath"
40    }
41
42    post-destroot {
43        catch {file rename ${worksrcpath}/migcom.tproj/build/UninstalledProducts/migcom ${destroot}${prefix}/bin/}
44        file rename ${destroot}${prefix}/bin/migcom ${destroot}${prefix}/libexec/migcom
45        file rename ${worksrcpath}/decomment.tproj/decomment ${destroot}${prefix}/bin/
46        file rename ${worksrcpath}/relpath.tproj/relpath ${destroot}${prefix}/bin/
47        file rename ${worksrcpath}/migcom.tproj/mig.sh ${destroot}${prefix}/bin/mig
48        file rename ${worksrcpath}/migcom.tproj/mig.1 ${worksrcpath}/migcom.tproj/migcom.1 \
49            ${destroot}${prefix}/share/man/man1/
50    }
51
52} else {
53    xcode.project   mig.xcodeproj
54
55    post-extract {
56        reinplace "s|\$(DT_TOOLCHAIN_DIR)/usr|${prefix}|g" \
57            ${worksrcpath}/mig.xcodeproj/project.pbxproj
58        foreach f [glob ${worksrcpath}/xcodescripts/*.sh] {
59            reinplace "s|\$DSTROOT/\$DT_TOOLCHAIN_DIR/usr|${destroot}${prefix}|g" $f
60        }
61    }
62
63    post-destroot {
64        file rename ${destroot}${prefix}/bin/migcom ${destroot}${prefix}/libexec/migcom
65    }
66
67}
68
69livecheck.type          regex
70livecheck.regex         "${name}-(\[\\d.\]+)"
Note: See TracBrowser for help on using the repository browser.