diff options
author | obraun <obraun@FreeBSD.org> | 2002-08-22 20:53:38 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2002-08-22 20:53:38 +0800 |
commit | c328a3bb65563d0c8e7f119ac6cc0539b2d72df3 (patch) | |
tree | 53436a5df1dbcaf4a86d19794975e705ecb41087 /lang/ghc/Makefile | |
parent | 30cd8e4d72f308748db9b01c669d78d3cab0fbb0 (diff) | |
download | freebsd-ports-gnome-c328a3bb65563d0c8e7f119ac6cc0539b2d72df3.tar.gz freebsd-ports-gnome-c328a3bb65563d0c8e7f119ac6cc0539b2d72df3.tar.zst freebsd-ports-gnome-c328a3bb65563d0c8e7f119ac6cc0539b2d72df3.zip |
* Install three binaries with prefix "-ghc" to avoid problems with
textproc/haxml and devel/drift. (1)
* Add WITHOUT_PROFILE knob to install without profiling libraries. (2)
* Bump PORTREVISION.
PR: ports/41051 (1), ports/41231 (2)
Submitted by: Volker Stolz <vs@lambda.foldr.org> (2)
Approved by: maintainer, dwcjr (mentor)
Diffstat (limited to 'lang/ghc/Makefile')
-rw-r--r-- | lang/ghc/Makefile | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile index 7601d2b1e0ea..a33d06092181 100644 --- a/lang/ghc/Makefile +++ b/lang/ghc/Makefile @@ -6,7 +6,7 @@ PORTNAME= ghc PORTVERSION= 5.04 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= http://www.haskell.org/ghc/dist/${PORTVERSION}/ @@ -34,6 +34,11 @@ USE_GMAKE= yes GNU_CONFIGURE= yes PLIST_SUB= GHC_VERSION=${PORTVERSION} +.if defined(WITHOUT_PROFILE) +PLIST_SUB+= PROFILE="@comment " +.else +PLIST_SUB+= PROFILE="" +.endif # This port builds by downloading a minimal binary distribution of GHC and # using that to bootstrap. @@ -49,6 +54,29 @@ CONFIGURE_TARGET= TMPDIR = ${WRKSRC}/tmp MAKE_ENV += TMPDIR=${TMPDIR} +pre-everything:: +.if !defined(WITHOUT_PROFILE) + @${ECHO_CMD} "To build GHC without profiling libraries," + @${ECHO_CMD} "hit Ctrl-C now and restart with 'make" + @$(ECHO_CMD) "WITHOUT_PROFILE=YES'." +.else + @${ECHO_CMD} "Building GHC without profiling libraries." +.endif + +.if defined(WITHOUT_PROFILE) +post-extract: + @${ECHO} >>${WRKSRC}/mk/build.mk GhcLibWays= +.endif + +post-patch: + @${PERL} -pi -e 's/DrIFT/DrIFT-ghc/g; \ + s/DtdToHaskell/DtdToHaskell-ghc/g; \ + s/Xtract/Xtract-ghc/g' \ + ${WRKSRC}/ghc/mk/config.mk \ + ${WRKSRC}/hslibs/tools/DrIFT/Makefile \ + ${WRKSRC}/hslibs/tools/DtdToHaskell/Makefile \ + ${WRKSRC}/hslibs/tools/Xtract/Makefile + pre-configure: @(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}) @(cd ${BOOT_DIR} && ${MAKE} in-place) @@ -56,4 +84,7 @@ pre-configure: pre-build: @${MKDIR} ${TMPDIR} +post-install: + @${CAT} ${PKGMESSAGE} + .include <bsd.port.post.mk> |