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 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name ghc-bootstrap |
---|
7 | set canonicalname ghc |
---|
8 | version 7.4.2 |
---|
9 | categories lang haskell |
---|
10 | maintainers auastro |
---|
11 | license BSD |
---|
12 | platforms darwin |
---|
13 | supported_archs x86_64 |
---|
14 | |
---|
15 | description The Glorious Glasgow Haskell Compilation System |
---|
16 | long_description \ |
---|
17 | This is a package that installs a binary \ |
---|
18 | bootstrap ghc compiler. |
---|
19 | |
---|
20 | homepage http://haskell.org/${canonicalname} |
---|
21 | master_sites ${homepage}/dist/${version}/ |
---|
22 | distname ${canonicalname}-${version}-x86_64-apple-darwin |
---|
23 | worksrcdir ${canonicalname}-${version} |
---|
24 | |
---|
25 | checksums rmd160 c44b8871855743c6b2fdcccb8faec58c0fdaef74 \ |
---|
26 | sha256 8eff4a0ad77332d61df4afa16f5005952d86424daa5840aec9e05daa01c3bfc6 |
---|
27 | |
---|
28 | |
---|
29 | use_bzip2 yes |
---|
30 | |
---|
31 | depends_lib port:gmp \ |
---|
32 | port:ncurses \ |
---|
33 | port:libiconv |
---|
34 | |
---|
35 | build {} |
---|
36 | |
---|
37 | post-destroot { |
---|
38 | variable libs [ list \ |
---|
39 | libHSrts-ghc7.4.2.dylib \ |
---|
40 | libHSrts_debug-ghc7.4.2.dylib \ |
---|
41 | libHSrts_thr-ghc7.4.2.dylib \ |
---|
42 | libHSrts_thr_debug-ghc7.4.2.dylib ] |
---|
43 | variable prefixlib ${prefix}/lib/${worksrcdir} |
---|
44 | variable destlib ${destroot}/${prefixlib} |
---|
45 | |
---|
46 | system "install_name_tool -id \ |
---|
47 | ${prefixlib}/libffi.dylib \ |
---|
48 | ${destlib}/libffi.dylib" |
---|
49 | |
---|
50 | foreach lib $libs { |
---|
51 | system "install_name_tool -change \ |
---|
52 | /Users/ian/zz64/ghc-7.4.2/libffi/build/inst/lib/libffi.5.dylib \ |
---|
53 | ${prefixlib}/libffi.dylib \ |
---|
54 | ${destlib}/$lib" |
---|
55 | } |
---|
56 | } |
---|