1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/hs-hat/Makefile

104 lines
2.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: hat
# Date created: 16 June 2002
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
#
PORTNAME= hat
PORTVERSION= 2.02
PORTREVISION= 1
2002-11-20 09:10:55 +00:00
CATEGORIES= devel haskell
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
PKGNAMEPREFIX= hs-
MAINTAINER= obraun@FreeBSD.org
COMMENT= A source-level tracer for Haskell 98
2004-01-31 11:16:48 +00:00
USE_SIZE= yes
USE_GMAKE= yes
HAS_CONFIGURE= yes
USE_REINPLACE= yes
USE_GNOME= glib12
OPTIONS= NHC98 "Build with nhc98" off
2004-02-19 09:56:15 +00:00
.include <bsd.port.pre.mk>
.if defined(WITH_NHC98) && ${OSVERSION} >= 500000
BROKEN= "does not build with nhc98 on this platform"
.endif
.if defined(WITH_NHC98)
BUILD_DEPENDS= nhc98:${PORTSDIR}/lang/nhc98
RUN_DEPENDS= nhc98:${PORTSDIR}/lang/nhc98
PKGNAMESUFFIX= -nhc98
.else
BUILD_DEPENDS= hmake:${PORTSDIR}/devel/hs-hmake \
2004-01-16 12:20:43 +00:00
ghc-5.04.3:${PORTSDIR}/lang/ghc5
RUN_DEPENDS+= ghc-5.04.3:${PORTSDIR}/lang/ghc5
PKGNAMESUFFIX= -ghc5
.endif
ALL_TARGET= hat
.if defined(WITH_NHC98)
ALL_TARGET+= hat-lib-nhc
.else
ALL_TARGET+= hat-lib-ghc
.endif
.if defined(WITH_NHC98)
PLIST_SUB+= NHC98=""
PLIST_SUB+= GHC="@comment "
.else
PLIST_SUB+= NHC98="@comment "
2003-06-09 21:46:09 +00:00
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC=""
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"
.endif
CONFIGURE_ARGS= --prefix=${PREFIX} --libdir=${PREFIX}/lib
.if defined(WITH_NHC98)
CONFIGURE_ARGS+= --buildwith=nhc98
.else
CONFIGURE_ARGS+= --buildwith=ghc
.endif
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/hat +docs
.endif
MAN1= hat-detect.1 hat-observe.1 hat-stack.1 hat-trail.1
pre-everything::
@${ECHO_CMD} ""
.if !defined(WITH_NHC98)
@${ECHO_CMD} " HAT will be built and installed with ghc."
@${ECHO_CMD} " Define WITH_NHC98 to install with nhc98."
.else
@${ECHO_CMD} " HAT will be built and installed with nhc98."
.endif
@${ECHO_CMD} ""
post-patch:
@${REINPLACE_CMD} -e "s|glib-config|${GLIB_CONFIG}|" \
${WRKSRC}/configure ${WRKSRC}/src/hattools/Makefile
.if !(defined(WITH_NHC98))
.for f in hattrans/Makefile hatlib/Makefile
@${REINPLACE_CMD} -e "s/package lang/package lang -package haskell98/" ${WRKSRC}/src/${f}
.endfor
@${REINPLACE_CMD} -e "s/package lang/package lang -package base -package haskell98/" ${WRKSRC}/src/hattools/Makefile
.endif
post-install:
.if !defined(WITH_NHC98)
@${INSTALL_DATA} ${WRKSRC}/lib/ix86-FreeBSD/hatlib/ghc/hat-package.conf \
${PREFIX}/lib/ix86-FreeBSD
@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
.endif
.if !defined(NOPORTDOCS)
@${RM} -rf ${PREFIX}/share/doc/hat/CVS
.endif
.include <bsd.port.post.mk>