| 289 | master_sites-append ${homepage}/dist/${ghc_bootversion}/:bootstrap |
| 290 | |
| 291 | if { ${configure.build_arch} == "x86_64" } { |
| 292 | distfiles-append ${canonicalname}-${ghc_bootversion}-darwin-x86_64-snowleopard-macports-bootstrap.tar.bz2:bootstrap |
| 293 | |
| 294 | checksums-append ${canonicalname}-${ghc_bootversion}-darwin-x86_64-snowleopard-macports-bootstrap.tar.bz2 \ |
| 295 | md5 70c8743dc4d606904426146e0e6d7cdf \ |
| 296 | sha1 bd6830318c522527b2c35a84724832d983054416 \ |
| 297 | rmd160 bc67c499417e009428fe6bf90b86fda4f1ec3e9e |
| 298 | |
| 299 | extract.only ${canonicalname}-${version}-src.tar.bz2 \ |
| 300 | ${canonicalname}-${version}-src-extralibs.tar.bz2 \ |
| 301 | ${canonicalname}-${ghc_bootversion}-darwin-x86_64-snowleopard-macports-bootstrap.tar.bz2 |
| 302 | |
| 303 | } elseif { ${configure.build_arch} == "i386" } { |
| 304 | distfiles-append ${canonicalname}-${ghc_bootversion}-darwin-i386-snowleopard-bootstrap.tar.bz2:bootstrap |
| 305 | |
| 306 | checksums-append ${canonicalname}-${ghc_bootversion}-darwin-i386-snowleopard-bootstrap.tar.bz2 \ |
| 307 | md5 fba9493ef1a1cb3f54274ab59f007725 \ |
| 308 | sha1 cd30029d0c32b8e97ef31c81f0a9613586628c0f \ |
| 309 | rmd160 d32bc2006ff9d56da1dfecce0eb8be780e81b8b9 |
| 310 | |
| 311 | patchfiles-delete patch-compiler-Makefile.local.diff \ |
| 312 | patch-libraries-cabal-bin.hs.diff \ |
| 313 | patch-mk-target.mk.diff |
| 314 | |
| 315 | patchfiles-append patch-snowleopard-i386-includes-Makefile.diff \ |
| 316 | patch-snowleopard-i386-compiler-Makefile.local.diff \ |
| 317 | patch-snowleopard-i386-compiler-main-DriverPipeline.hs.diff \ |
| 318 | patch-snowleopard-i386-ghc-ghc.wrapper.diff \ |
| 319 | patch-snowleopard-i386-libraries-cabal-bin.hs.diff \ |
| 320 | patch-snowleopard-i386-libraries-haskeline-haskeline.cabal.diff \ |
| 321 | patch-snowleopard-i386-libffi-Makefile.diff \ |
| 322 | patch-snowleopard-i386-mk-target.mk.diff \ |
| 323 | patch-snowleopard-i386-utils-genapply-Makefile.diff \ |
| 324 | patch-snowleopard-i386-utils-genprimopcode-Makefile.diff \ |
| 325 | patch-snowleopard-i386-utils-hsc2hs-hsc2hs.wrapper.diff |
| 326 | |
| 327 | if { !([variant_isset maintainer_debug] || [variant_isset cabal_configure_debug]) } { |
| 328 | patchfiles-delete patch-compiler-Makefile.diff \ |
| 329 | patch-ghc-Makefile.diff \ |
| 330 | patch-libraries-Makefile.diff \ |
| 331 | patch-mk-cabal.mk.diff |
| 332 | |
| 333 | patchfiles-append patch-snowleopard-i386-compiler-Makefile.diff \ |
| 334 | patch-snowleopard-i386-ghc-Makefile.diff \ |
| 335 | patch-snowleopard-i386-libraries-Makefile.diff \ |
| 336 | patch-snowleopard-i386-mk-cabal.mk.diff |
| 337 | } |
| 338 | |
| 339 | extract.only ${canonicalname}-${version}-src.tar.bz2 \ |
| 340 | ${canonicalname}-${version}-src-extralibs.tar.bz2 \ |
| 341 | ${canonicalname}-${ghc_bootversion}-darwin-i386-snowleopard-bootstrap.tar.bz2 |
| 342 | |
| 343 | } else { |
| 344 | # belt and braces approach: |
| 345 | return -code error "Unrecognized build architecture on Snow Leopard" |
| 346 | } |
| 347 | |
| 348 | configure.compiler gcc-4.2 |
| 349 | |
| 350 | patchfiles-append patch-snowleopard-compiler-cmm-CLabel.hs.diff \ |
| 351 | patch-snowleopard-compiler-main-DynFlags.hs.diff \ |
| 352 | patch-snowleopard-ghc-ghc-bin.cabal.in.diff \ |
| 353 | patch-snowleopard-rts-Linker.c.diff \ |
| 354 | patch-snowleopard-rts-Makefile.diff \ |
| 355 | patch-snowleopard-rts-package.conf.in.diff |
| 356 | |
| 357 | } |
| 358 | |
| 359 | |