X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=TODO;h=d4c5fdbd6c71d3f3838ea3f71d06cfa7791f8cd4;hb=f4afb39c623b1c077a5ffeddbad2b4f451f0d975;hp=5ee5ead1993df8c97eaec2fbdda9d260bb68ecc6;hpb=8fa3d45608aad3bebde37f7bdb182c25cbf63715;p=pkgsrc-ghc.git diff --git a/TODO b/TODO index 5ee5ead..d4c5fdb 100644 --- a/TODO +++ b/TODO @@ -25,7 +25,6 @@ Extract the source archive and duplicate the source tree, one for Build some configuration files:: $ cd ghc-{VERSION}-target - $ ln -s /bin/pwd utils/ghc-pwd/ghc-pwd $ ./configure --enable-hc-boot $ echo "INTEGER_LIBRARY = integer-simple" > mk/build.mk $ gmake bootstrapping-files @@ -34,7 +33,9 @@ Build some configuration files:: Run ``./configure`` on the host tree:: $ cd ghc-{VERSION}-host - $ ./configure + $ ./configure \ + --with-iconv-includes=/usr/pkg/include \ + --with-iconv-libraries=/usr/pkg/lib Then create ``ghc-{VERSION}-host/mk/build.mk`` with the following contents:: @@ -55,10 +56,14 @@ contents:: utils/ghc-pkg_dist-install_v_HC_OPTS += -keep-hc-files INTEGER_LIBRARY = integer-simple + libraries/terminfo_CONFIGURE_OPTS += \ + --configure-option=--with-curses-includes=/usr/pkg/include \ + --configure-option=--with-curses-libraries=/usr/pkg/lib Copy some configuration files from the ``-target`` tree:: - $ cp ../ghc-{VERSION}-target/includes/{ghcautoconf.h,DerivedConstants.h,GHCConstants.h} includes/ + $ cp -r ../ghc-{VERSION}-target/includes/dist-{ghcconstants,derivedconstants} includes/ + $ cp ../ghc-{VERSION}-target/includes/ghcautoconf.h includes/ Build it:: @@ -91,7 +96,9 @@ Then extract it again, in a different directory:: Modify hard-coded paths in inplace ``.conf`` files, and then re-archive the HC tree:: - $ sed -i.bak -e 's#'`dirname \`pwd\``'#[[GHC_SOURCE_PATH]]#g' \ + $ gsed -i.bak \ + -e 's#/usr/pkg#[[PREFIX]]#g' \ + -e 's#'`dirname \`pwd\``'#[[GHC_SOURCE_PATH]]#g' \ inplace/lib/package.conf.d/*.conf \ */*/package-data.mk \ */*/*/package-data.mk