aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/hat/Makefile')
-rw-r--r--devel/hat/Makefile84
1 files changed, 39 insertions, 45 deletions
diff --git a/devel/hat/Makefile b/devel/hat/Makefile
index 416f6a830860..a77ddf7c4ac5 100644
--- a/devel/hat/Makefile
+++ b/devel/hat/Makefile
@@ -1,73 +1,67 @@
-# New ports collection makefile for: nhc98
-# Date created: 04 October 2001
+# New ports collection makefile for: hat
+# Date created: 16 June 2002
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
+#
-PORTNAME= nhc98
-PORTVERSION= 1.14
-CATEGORIES= lang
+PORTNAME= hat
+PORTVERSION= 2.00
+CATEGORIES= devel
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
-DISTNAME= ${PORTNAME}src-${PORTVERSION}
-DIST_SUBDIR= nhc98
MAINTAINER= obraun@informatik.unibw-muenchen.de
-USE_REINPLACE= yes
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500000
+BUILD_DEPENDS= nhc98:${PORTSDIR}/lang/nhc98
+RUN_DEPENDS= nhc98:${PORTSDIR}/lang/nhc98
+.if defined(WITH_GHC)
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
.endif
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
USE_GMAKE= yes
HAS_CONFIGURE= yes
-
-.if ${OSVERSION} >= 500000
-CONFIGURE_ARGS+= --buildwith=ghc
+USE_REINPLACE= yes
+USE_GLIB= yes
+.if defined(WITH_GHC)
+PLIST_SUB= GHC=""
+.else
+ALL_TARGET= hat
+PLIST_SUB= GHC="@comment "
.endif
+CONFIGURE_ARGS= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --buildwith=nhc98 --libdir=${PREFIX}/lib
.if !defined(NOPORTDOCS)
-CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nhc98 +docs
+CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc +docs
.endif
-MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1
+MAN1= hat-detect.1 hat-observe.1 hat-stack.1 hat-trail.1
-post-patch:
- @${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
-
-post-configure:
- @${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
- >> ${WRKSRC}/targets/ix86-FreeBSD/config.cache
-
-pre-install:
-.if exists(${PREFIX}/bin/hmake) && !defined(OVERRIDE_HMAKE)
- @${ECHO} ""
- @${ECHO} "It seems that there is already a version of hmake installed on"
- @${ECHO} "this system. Since hmake is part of nhc98, please deinstall it,"
- @${ECHO} "or define OVERRIDE_HMAKE to override the installed version."
- @${ECHO} ""
- @${FALSE}
+pre-everything::
+ @${ECHO_CMD} ""
+.if defined(WITH_GHC)
+ @${ECHO_CMD} " HAT will build and install for both nhc98 and ghc."
+.else
+ @${ECHO_CMD} " HAT will build and install for nhc98 only."
+ @${ECHO_CMD} " Define WITH_GHC to install for ghc, too."
.endif
+ @${ECHO_CMD} ""
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|glib-config|${GLIB_CONFIG}|" \
+ ${WRKSRC}/configure ${WRKSRC}/src/hat/tools/Makefile \
+ ${WRKSRC}/src/hat/oldtools/Makefile
-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
.if !defined(NOPORTDOCS)
+post-install:
+ @${RM} -r ${PREFIX}/share/doc/hat/CVS
.for ending in aux log
- ${RM} ${PREFIX}/share/doc/nhc98/hat/tutorial1.${ending}
+ @${RM} ${PREFIX}/share/doc/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
+ @${RM} ${PREFIX}/share/doc/hat/hatuser.${ending}
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>