diff options
author | pgj <pgj@FreeBSD.org> | 2013-09-13 06:02:32 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2013-09-13 06:02:32 +0800 |
commit | 4a4787ab8768c32370c8f69652c1760414ca7b64 (patch) | |
tree | 6a24e9db84d167d55d15eb1851331d511b58be30 /lang/ghc | |
parent | 00362c7e19f60f8be0afa72eb7069f81011176d4 (diff) | |
download | freebsd-ports-gnome-4a4787ab8768c32370c8f69652c1760414ca7b64.tar.gz freebsd-ports-gnome-4a4787ab8768c32370c8f69652c1760414ca7b64.tar.zst freebsd-ports-gnome-4a4787ab8768c32370c8f69652c1760414ca7b64.zip |
- Fix build on recent head where iconv(1) is in base by rolling new
7.6.3-based bootstrap compilers without any external dependencies [1]
- Update bootstrap hscolour to 1.20.3, so both 7.4 and 7.6 bootstraps can
work with it
- Remove the line for the 7.x bootstrap as no such one exists any more
Thanks to: cognet [1]
Obtained from: FreeBSD Haskell
Diffstat (limited to 'lang/ghc')
-rw-r--r-- | lang/ghc/Makefile | 28 | ||||
-rw-r--r-- | lang/ghc/distinfo | 8 | ||||
-rw-r--r-- | lang/ghc/files/nopatch-.._ghc-7.6.3-boot_rts_package.conf.in | 11 |
3 files changed, 35 insertions, 12 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile index 99f77ff833c9..8fb19fd27c24 100644 --- a/lang/ghc/Makefile +++ b/lang/ghc/Makefile @@ -15,8 +15,7 @@ COMMENT= Compiler for the functional language Haskell ONLY_FOR_ARCHS= i386 amd64 GHC_VERSION= ${PORTVERSION} -BOOT_GHC_VERSION= 7.4.1 -HSCOLOUR_VERSION= 1.20.2 +HSCOLOUR_VERSION= 1.20.3 DATADIR= ${PREFIX}/share/ghc-${GHC_VERSION} EXAMPLESDIR= ${PREFIX}/share/examples/ghc-${GHC_VERSION} @@ -72,28 +71,34 @@ LIB_DEPENDS+= ffi.6:${PORTSDIR}/devel/libffi .if empty(PORT_OPTIONS:MBOOT) +.if ${OSVERSION} >= 1000043 +BOOT_GHC_VERSION= 7.6.3 +.else +BOOT_GHC_VERSION= 7.4.1 +.endif + EXTRA_PATCHES= ${PATCHDIR}/nopatch-.._ghc-${BOOT_GHC_VERSION}-boot_rts_package.conf.in .if ${ARCH} == "i386" -.if ${OSVERSION} >= 900000 +.if ${OSVERSION} >= 1000043 +DISTFILES+= ghc-${BOOT_GHC_VERSION}-i386-freebsd10-boot${EXTRACT_SUFX}:boot +.elif ${OSVERSION} >= 900000 DISTFILES+= ghc-${BOOT_GHC_VERSION}-i386-freebsd9-boot${EXTRACT_SUFX}:boot .elif ${OSVERSION} >= 800000 DISTFILES+= ghc-${BOOT_GHC_VERSION}-i386-freebsd8-boot${EXTRACT_SUFX}:boot -.elif ${OSVERSION} >= 700000 -DISTFILES+= ghc-${BOOT_GHC_VERSION}-i386-freebsd7-boot${EXTRACT_SUFX}:boot .else IGNORE= unsupported .endif .elif ${ARCH} == "amd64" -.if ${OSVERSION} >= 900000 +.if ${OSVERSION} >= 1000043 +DISTFILES+= ghc-${BOOT_GHC_VERSION}-amd64-freebsd10-boot${EXTRACT_SUFX}:boot +.elif ${OSVERSION} >= 900000 DISTFILES+= ghc-${BOOT_GHC_VERSION}-amd64-freebsd9-boot${EXTRACT_SUFX}:boot .elif ${OSVERSION} >= 800000 DISTFILES+= ghc-${BOOT_GHC_VERSION}-amd64-freebsd8-boot${EXTRACT_SUFX}:boot -.elif ${OSVERSION} >= 700000 -DISTFILES+= ghc-${BOOT_GHC_VERSION}-amd64-freebsd7-boot${EXTRACT_SUFX}:boot .else IGNORE= unsupported .endif @@ -114,9 +119,12 @@ HACKAGE_ARCH?= packages/archive/ CONFIGURE_ARGS= --with-gcc=${CC} \ --with-ld=${LD} \ --with-gmp-includes=${LOCALBASE}/include \ - --with-gmp-libraries=${LOCALBASE}/lib \ - --with-iconv-includes=${LOCALBASE}/include \ + --with-gmp-libraries=${LOCALBASE}/lib + +.if ${OSVERSION} < 1000043 +CONFIGURE_ARGS+= --with-iconv-includes=${LOCALBASE}/include \ --with-iconv-libraries=${LOCALBASE}/lib +.endif .if ${PORT_OPTIONS:MDYNAMIC} CONFIGURE_ARGS+= --with-system-libffi \ diff --git a/lang/ghc/distinfo b/lang/ghc/distinfo index 79280774a9af..adba6a5dcb1a 100644 --- a/lang/ghc/distinfo +++ b/lang/ghc/distinfo @@ -1,7 +1,7 @@ SHA256 (ghc-7.6.3-src.tar.bz2) = bd43823d31f6b5d0b2ca7b74151a8f98336ab0800be85f45bb591c9c26aac998 SIZE (ghc-7.6.3-src.tar.bz2) = 110763823 -SHA256 (hscolour-1.20.2.tar.gz) = a52910f4c4c5576bed80e23aa914c71c3975d4cd9cd79a9c85e2617d97a8824a -SIZE (hscolour-1.20.2.tar.gz) = 25722 +SHA256 (hscolour-1.20.3.tar.gz) = 3adb816fba3ecdf9f1ee5fb23feb0611b0762f7e8c2a282c2def5cc2f5483d96 +SIZE (hscolour-1.20.3.tar.gz) = 25810 SHA256 (ghc-7.4.1-i386-freebsd8-boot.tar.bz2) = b58f5b346c2b261f6357f5f72a0bf2c3c766e914cffbe6f2aefb1abf67b9a797 SIZE (ghc-7.4.1-i386-freebsd8-boot.tar.bz2) = 45447162 SHA256 (ghc-7.4.1-amd64-freebsd8-boot.tar.bz2) = 536da87dc9e32e98f9258e29b3a44846db6ac786f26b426da4808c33fcc92914 @@ -10,3 +10,7 @@ SHA256 (ghc-7.4.1-i386-freebsd9-boot.tar.bz2) = 2af7912a14e6e31c81d2ef4505c0354e SIZE (ghc-7.4.1-i386-freebsd9-boot.tar.bz2) = 46254818 SHA256 (ghc-7.4.1-amd64-freebsd9-boot.tar.bz2) = 8dc43c1ed2f026837947d938736ee6084f151fa5617998fca55420418f4ea28f SIZE (ghc-7.4.1-amd64-freebsd9-boot.tar.bz2) = 46427727 +SHA256 (ghc-7.6.3-i386-freebsd10-boot.tar.bz2) = 4ab59ac9642641d612fdb636e544248ee2e74834bafe1d29ef556215ea097409 +SIZE (ghc-7.6.3-i386-freebsd10-boot.tar.bz2) = 55512004 +SHA256 (ghc-7.6.3-amd64-freebsd10-boot.tar.bz2) = 8ce856cbd5b9fa230d17bc3d28b96206d84dce4aa3c1c9c7016262ff132271ad +SIZE (ghc-7.6.3-amd64-freebsd10-boot.tar.bz2) = 55418435 diff --git a/lang/ghc/files/nopatch-.._ghc-7.6.3-boot_rts_package.conf.in b/lang/ghc/files/nopatch-.._ghc-7.6.3-boot_rts_package.conf.in new file mode 100644 index 000000000000..95e2d022a16c --- /dev/null +++ b/lang/ghc/files/nopatch-.._ghc-7.6.3-boot_rts_package.conf.in @@ -0,0 +1,11 @@ +--- ../ghc-7.6.3-boot/rts/package.conf.in.orig 2013-04-18 22:22:47.000000000 +0100 ++++ ../ghc-7.6.3-boot/rts/package.conf.in 2013-09-06 23:01:22.000000000 +0100 +@@ -141,6 +141,8 @@ + , "-u", "base_GHCziConcziSignal_runHandlers_closure" + #endif + ++ , "-L%%LOCALBASE%%/lib" ++ + /* Pick up static libraries in preference over dynamic if in earlier search + * path. This is important to use the static gmp in preference on Mac OS. + * The used option is specific to the Darwin linker. |