2002-07-08 19:35:22 +00:00
|
|
|
# New ports collection makefile for: hat
|
|
|
|
# Date created: 16 June 2002
|
2001-12-21 20:23:40 +00:00
|
|
|
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2002-07-08 19:35:22 +00:00
|
|
|
#
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-07-08 19:35:22 +00:00
|
|
|
PORTNAME= hat
|
|
|
|
PORTVERSION= 2.00
|
2002-11-20 09:10:55 +00:00
|
|
|
CATEGORIES= devel haskell
|
2001-12-21 20:23:40 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
|
2002-09-04 18:39:09 +00:00
|
|
|
PKGNAMEPREFIX= hs-
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-08-21 15:28:54 +00:00
|
|
|
MAINTAINER= obraun@FreeBSD.org
|
2003-02-18 10:50:48 +00:00
|
|
|
COMMENT= A source-level tracer for Haskell 98
|
2002-08-21 15:28:54 +00:00
|
|
|
|
|
|
|
.if defined(WITHOUT_NHC98)
|
2002-11-21 22:03:48 +00:00
|
|
|
BROKEN= does not build with ghc-5.04 for the time being
|
2002-08-21 15:28:54 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GHC)
|
|
|
|
.undef WITH_GHC
|
|
|
|
.endif
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-07-12 18:06:02 +00:00
|
|
|
.if !defined(WITHOUT_NHC98)
|
2002-07-08 19:35:22 +00:00
|
|
|
BUILD_DEPENDS= nhc98:${PORTSDIR}/lang/nhc98
|
|
|
|
RUN_DEPENDS= nhc98:${PORTSDIR}/lang/nhc98
|
2002-07-12 18:06:02 +00:00
|
|
|
.else
|
|
|
|
WITH_GHC= yes
|
2003-02-18 10:50:48 +00:00
|
|
|
BUILD_DEPENDS+= hmake:${PORTSDIR}/devel/hs-hmake
|
2002-07-12 18:06:02 +00:00
|
|
|
.endif
|
2002-07-08 19:35:22 +00:00
|
|
|
.if defined(WITH_GHC)
|
2002-06-18 22:28:45 +00:00
|
|
|
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
2002-07-08 19:35:22 +00:00
|
|
|
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
2002-05-08 16:57:56 +00:00
|
|
|
.endif
|
|
|
|
|
2001-12-21 20:23:40 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2002-07-08 19:35:22 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-07-15 17:21:56 +00:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= glib12
|
2002-11-21 22:03:48 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
BROKEN= does not build with gcc3x
|
|
|
|
.endif
|
|
|
|
|
2002-07-12 18:06:02 +00:00
|
|
|
.if !defined(WITH_GHC) || defined(WITHOUT_NHC98)
|
|
|
|
ALL_TARGET= hat
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NHC98)
|
|
|
|
PLIST_SUB+= NHC98=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NHC98="@comment "
|
|
|
|
.endif
|
2002-07-08 19:35:22 +00:00
|
|
|
.if defined(WITH_GHC)
|
2002-07-12 18:06:02 +00:00
|
|
|
PLIST_SUB+= GHC=""
|
2002-07-08 19:35:22 +00:00
|
|
|
.else
|
2002-07-12 18:06:02 +00:00
|
|
|
PLIST_SUB+= GHC="@comment "
|
2002-05-08 16:57:56 +00:00
|
|
|
.endif
|
|
|
|
|
2002-07-12 18:06:02 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --libdir=${PREFIX}/lib
|
|
|
|
.if !defined(WITHOUT_NHC98)
|
|
|
|
CONFIGURE_ARGS+= --buildwith=nhc98
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --buildwith=ghc
|
|
|
|
.endif
|
2001-12-21 20:23:40 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-07-08 19:35:22 +00:00
|
|
|
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc +docs
|
2001-12-21 20:23:40 +00:00
|
|
|
.endif
|
|
|
|
|
2002-07-08 19:35:22 +00:00
|
|
|
MAN1= hat-detect.1 hat-observe.1 hat-stack.1 hat-trail.1
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-07-08 19:35:22 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_CMD} ""
|
2002-07-12 18:06:02 +00:00
|
|
|
.if defined(WITH_GHC) && !defined(WITHOUT_NHC98)
|
|
|
|
@${ECHO_CMD} " HAT will be built and installed for both nhc98 and ghc."
|
|
|
|
.elif defined(WITHOUT_NHC98)
|
|
|
|
@${ECHO_CMD} " HAT will be built and installed for ghc only."
|
2002-07-08 19:35:22 +00:00
|
|
|
.else
|
2002-07-12 18:06:02 +00:00
|
|
|
@${ECHO_CMD} " HAT will be built and installed for nhc98 only."
|
2002-08-21 15:28:54 +00:00
|
|
|
# @${ECHO_CMD} " Define WITH_GHC to install for ghc, too."
|
|
|
|
# @${ECHO_CMD} " Define WITHOUT_NHC98 to install for ghc only."
|
|
|
|
@${ECHO_CMD} " HAT does not build with ghc-5.04 for the time being."
|
2002-05-27 02:02:18 +00:00
|
|
|
.endif
|
2002-07-08 19:35:22 +00:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|glib-config|${GLIB_CONFIG}|" \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/src/hat/tools/Makefile \
|
|
|
|
${WRKSRC}/src/hat/oldtools/Makefile
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-05-08 16:57:56 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-07-08 19:35:22 +00:00
|
|
|
post-install:
|
|
|
|
@${RM} -r ${PREFIX}/share/doc/hat/CVS
|
2002-05-08 16:57:56 +00:00
|
|
|
.for ending in aux log
|
2002-07-08 19:35:22 +00:00
|
|
|
@${RM} ${PREFIX}/share/doc/hat/tutorial1.${ending}
|
2002-05-08 16:57:56 +00:00
|
|
|
.endfor
|
|
|
|
.for ending in aux log out toc
|
2002-07-08 19:35:22 +00:00
|
|
|
@${RM} ${PREFIX}/share/doc/hat/hatuser.${ending}
|
2002-05-08 16:57:56 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-11-21 22:03:48 +00:00
|
|
|
.include <bsd.port.post.mk>
|