summaryrefslogtreecommitdiff
path: root/lang/nhc98/Makefile
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-05-08 16:57:56 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-05-08 16:57:56 +0000
commitb153a01beca47bbf1ba2cfa7e3201ae1a16f2416 (patch)
tree6e2433247043a4b5755a5037e690406ace028acb /lang/nhc98/Makefile
parentUpdate to 4.9.2 (diff)
Update to 1.12
Unbreak for -current PR: 36139 Submitted by: maintainer
Diffstat (limited to 'lang/nhc98/Makefile')
-rw-r--r--lang/nhc98/Makefile43
1 files changed, 27 insertions, 16 deletions
diff --git a/lang/nhc98/Makefile b/lang/nhc98/Makefile
index ba776eca92e9..9862aee52238 100644
--- a/lang/nhc98/Makefile
+++ b/lang/nhc98/Makefile
@@ -5,36 +5,32 @@
# $FreeBSD$
PORTNAME= nhc98
-PORTVERSION= 1.10
-PORTREVISION= 1
+PORTVERSION= 1.12
CATEGORIES= lang
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
DISTNAME= ${PORTNAME}src-${PORTVERSION}
DIST_SUBDIR= nhc98
PATCH_SITES= ${MASTER_SITES}
-PATCHFILES= patch-1.10-IO \
- patch-1.10-arrow \
- patch-1.10-blockbuffer \
- patch-1.10-commas \
- patch-1.10-counter \
- patch-1.10-hp2graph \
- patch-1.10-keywords \
- patch-1.10-lhs \
- patch-1.10-patterns \
- patch-1.10-hiding \
- patch-1.10-ghc5.02
+PATCHFILES= patch-1.12-ranlib \
+ patch-1.12-hmake-config \
+ patch-1.12-getEnv
MAINTAINER= obraun@informatik.unibw-muenchen.de
-FORBIDDEN= "Loops infinitely during build"
-
.if defined(WITH_TRACER)
RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk
BUILD_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
.endif
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+.endif
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PLIST= ${WRKSRC}/pkg-plist
.if !defined(WITH_TRACER)
ALL_TARGET= basic
@@ -47,6 +43,10 @@ MAKE_ENV+= PATH=${PREFIX}/jdk1.1.8/bin:$$PATH
USE_GMAKE= yes
HAS_CONFIGURE= yes
+.if ${OSVERSION} >= 500000
+CONFIGURE_ARGS+= --buildwith=ghc
+.endif
+
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nhc98 +docs
.endif
@@ -89,5 +89,16 @@ post-install:
< ${WRKSRC}/man/nhc98.1 > ${WRKSRC}/man/nhc98.1.fix
${INSTALL_MAN} ${WRKSRC}/man/nhc98.1.fix ${PREFIX}/man/man1/nhc98.1
${RM} ${WRKSRC}/man/nhc98.1.fix
+.if !defined(NOPORTDOCS)
+.for ending in aux log
+ ${RM} ${PREFIX}/share/doc/nhc98/hat/tutorial1.${ending}
+.endfor
+.for ending in aux log out toc
+ ${RM} ${PREFIX}/share/doc/nhc98/hat/hatuser.${ending}
+.endfor
+.for directory in . bugs examples hat hmake implementation-notes libs
+ ${RM} -r ${PREFIX}/share/doc/nhc98/${directory}/CVS
+.endfor
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>