[added 10.6 requirement to installer, added README for builders Mark Lentczner **20111204190019 Ignore-this: a670f285e9fcaf082e6a0e7b4b596f0f ] { hunk ./src/macos/Platform.pmdoc/index.xml 1 -Haskell Platform/Users/markl/Projects/A/platform/hp-mac/src/macos/dist/Haskell Platform 2011.4.0.0 64bit rc1.pkgorg.haskellThe Haskell Platform is a comprehensive, robust development environment for programming in Haskell. For new users the platform makes it trivial to get up and running with a full Haskell development environment. For experienced developers, the platform provides a comprehensive, standard base for commercial and open source Haskell development that maximises interoperability and stability of your code.logo-color.pngHaskell Platform/Users/markl/Projects/A/platform/products/Haskell Platform 2011.4.0.0 32bit rc1.pkgorg.haskellThe Haskell Platform is a comprehensive, robust development environment for programming in Haskell. For new users the platform makes it trivial to get up and running with a full Haskell development environment. For experienced developers, the platform provides a comprehensive, standard base for commercial and open source Haskell development that maximises interoperability and stability of your code.logo-color.png/usr/bin/gccDeveloper Tools MissingPlease install Xcode developer tools first./Library/Haskell/doc/start.htmlabsolute-path01ghc.xml02haskell.xmlproperties.systemDomainproperties.titledescriptionproperties.anywhereDomainpostinstallActions.actions +Xcode can be installed off your Mac OS X installation DVD or be downloaded from {\field{\*\fldinst{HYPERLINK "http://developer.apple.com"}}{\fldrslt http://developer.apple.com}}.}]]>/usr/bin/gccDeveloper Tools MissingPlease install Xcode developer tools first.This version of Haskell Platform requires Mac OS X 10.6 or later./Library/Haskell/doc/start.htmlabsolute-path01ghc.xml02haskell.xmlpostinstallActions.actionsproperties.titledescriptionproperties.anywhereDomainproperties.systemDomain addfile ./src/macos/README hunk ./src/macos/README 1 +To build the Haskell Platform for Mac OS X: + +1) If you have the proper GHC installer package: + create a subdirectory "dist" here + move or sym-link the package into dist +You should have a file there named seomthing like + GHC-7.0.4-i386.pkg + GHC-7.0.4-x86_64.pkg + +2) Edit the makefile so that GHC_ARCH is set to the architecture you're building + +3) Be sure you have hscolour installed on your system, and on your path. + +4) Edit ../generic/tarball/scripts/build.sh and un-comment out the flag + HADDOCK_FLAG="--hyperlink-source" + +5) Run + make ghc + +6) If you are building the 32-bit version, Edit the ghc script in: + dist/root/Library/Frameworks/GHC.framework/Versions/7.0.4-i386/usr/bin/ghc-7.0.4 +Modify the last line to include this option, just before "${1+"$@"}" ending: + -optl"-Wl,-read_only_relocs,suppress" + +7) Update your cabal package list: + cabal update + +8) Run + make rewrap + make source + +Note: If this fails, you may have to fiddle with things in ../src/generic to +get Build.hs to build. This can be done with your already installed Haskell +system. If things fail during this step, you'll probably have to remove +../src/generic/haskell-platform-* to get them to run again. + +9) + make config + make build + make package + make scripts + make doc + make polish + +10) Build the finall installer: + make installer + +This will ask you for your password so it can sudo the tree to root. When PackageMaker starts up, if this is a 64-bit build, add the a requirement to the +distribution itself of 64-bit instructions available with suitable message like: + + This is the 64-bit distribution of Haskell Platform. This machine does + not support 64-bit instructions. + +Now click Build... and choose a suitable name and location for the result. + +11) Go have some tea. }