aboutsummaryrefslogtreecommitdiffstats
path: root/lang/nhc98/Makefile
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-12-22 04:23:40 +0800
committerijliao <ijliao@FreeBSD.org>2001-12-22 04:23:40 +0800
commitd4f65d1f2c34574cccd22b37becf35e0b2ca19a9 (patch)
treee3e00633d7ef8863c22b32fe55abf9f120b4f313 /lang/nhc98/Makefile
parentc4a65ba6cd7a192ae4581f663a0ad9411105219c (diff)
downloadfreebsd-ports-gnome-d4f65d1f2c34574cccd22b37becf35e0b2ca19a9.tar.gz
freebsd-ports-gnome-d4f65d1f2c34574cccd22b37becf35e0b2ca19a9.tar.zst
freebsd-ports-gnome-d4f65d1f2c34574cccd22b37becf35e0b2ca19a9.zip
add nhc98 1.08
A fully-fledged compiler for Haskell 98 PR: 31039 Submitted by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
Diffstat (limited to 'lang/nhc98/Makefile')
-rw-r--r--lang/nhc98/Makefile78
1 files changed, 78 insertions, 0 deletions
diff --git a/lang/nhc98/Makefile b/lang/nhc98/Makefile
new file mode 100644
index 000000000000..6fa0f3818e8a
--- /dev/null
+++ b/lang/nhc98/Makefile
@@ -0,0 +1,78 @@
+# New ports collection makefile for: nhc98
+# Date created: 04 October 2001
+# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
+#
+# $FreeBSD$
+
+PORTNAME= nhc98
+PORTVERSION= 1.08
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
+DISTNAME= ${PORTNAME}src-${PORTVERSION}
+
+PATCH_SITES= ${MASTER_SITES}
+PATCHFILES= patch-1.08-ghc5.02 \
+ patch-1.08-hmake \
+ patch-1.08-hat-makefile
+
+MAINTAINER= obraun@informatik.unibw-muenchen.de
+
+.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
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+.if !defined(WITH_TRACER)
+ALL_TARGET= basic
+PLIST_SUB+= TRACER="@comment "
+.else
+PLIST_SUB+= TRACER=""
+MAKE_ENV+= PATH=${PREFIX}/jdk1.1.8/bin:$$PATH
+.endif
+
+USE_GMAKE= yes
+HAS_CONFIGURE= yes
+DIST_SUBDIR= nhc98
+
+.if !defined(NOPORTDOCS)
+CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nhc98 +docs
+.endif
+
+MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1 \
+ hat-detect.1 hat-observe.1 hat-stack.1 hat-trail.1
+
+pre-fetch:
+.if !defined(WITH_TRACER)
+ @${ECHO} ""
+ @${ECHO} " To build nhc98 with the tracer (requires JAVA)"
+ @${ECHO} " define WITH_TRACER"
+ @${ECHO} ""
+.else
+ @${ECHO} ""
+ @${ECHO} " Building nhc98 with the tracer (requires JAVA)"
+ @${ECHO} ""
+.endif
+
+# We need this to ensure that the libs will be installed into
+# ${PREFIX}/lib/nhc98. Otherwise the libs will be installed
+# into the build directory. The configure option won't work in the
+# ports system.
+pre-install:
+ ${SED} -e "s#LIBDIR=.*##" \
+ < ${WRKSRC}/targets/ix86-FreeBSD/config.cache \
+ > ${WRKSRC}/targets/ix86-FreeBSD/config.cache.fix1
+ ${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
+ >> ${WRKSRC}/targets/ix86-FreeBSD/config.cache.fix1
+ ${RM} ${WRKSRC}/targets/ix86-FreeBSD/config.cache
+ ${MV} ${WRKSRC}/targets/ix86-FreeBSD/config.cache.fix1 \
+ ${WRKSRC}/targets/ix86-FreeBSD/config.cache
+
+post-install:
+ ${SED} -e "s#/usr/doc/nhc98#${PREFIX}/share/doc/nhc98#" \
+ < ${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
+
+.include <bsd.port.mk>