2002-06-05 01:05:39 +02:00
|
|
|
# New ports collection makefile for: HaXml
|
|
|
|
# Date created: 01 June 2002
|
|
|
|
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= haxml
|
2005-05-16 17:41:10 +02:00
|
|
|
PORTVERSION= 1.13
|
2006-06-01 21:26:51 +02:00
|
|
|
PORTREVISION= 2
|
2002-11-20 10:10:55 +01:00
|
|
|
CATEGORIES= textproc haskell
|
2002-08-21 17:14:40 +02:00
|
|
|
MASTER_SITES= http://www.haskell.org/HaXml/ \
|
2004-07-26 14:06:07 +02:00
|
|
|
ftp://ftp.cs.york.ac.uk/pub/haskell/HaXml/
|
2002-09-04 20:39:09 +02:00
|
|
|
PKGNAMEPREFIX= hs-
|
2003-02-18 11:50:48 +01:00
|
|
|
DISTNAME= HaXml-${PORTVERSION}
|
2002-06-05 01:05:39 +02:00
|
|
|
|
2004-03-06 22:29:59 +01:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2003-02-18 11:50:48 +01:00
|
|
|
COMMENT= A collection of utilities for using Haskell and XML together
|
2002-06-05 01:05:39 +02:00
|
|
|
|
2005-09-11 20:14:02 +02:00
|
|
|
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
|
|
|
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
|
|
|
|
2002-08-21 17:14:40 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2002-06-05 01:05:39 +02:00
|
|
|
USE_GMAKE= yes
|
2002-08-21 17:14:40 +02:00
|
|
|
|
2003-06-01 08:54:48 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}/bin
|
2002-06-05 01:05:39 +02:00
|
|
|
|
2003-06-10 00:26:18 +02:00
|
|
|
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
|
2005-09-11 20:14:02 +02:00
|
|
|
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"
|
2002-08-21 17:14:40 +02:00
|
|
|
|
2003-06-01 08:54:48 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,/bin/false,/usr/bin/false,' ${WRKSRC}/configure
|
|
|
|
|
2005-09-11 16:10:09 +02:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e '/hugs/d' ${WRKSRC}/obj/compilers
|
2005-09-11 20:14:02 +02:00
|
|
|
@${REINPLACE_CMD} -e '/nhc98/d' ${WRKSRC}/obj/compilers
|
2005-09-11 16:10:09 +02:00
|
|
|
|
2002-08-21 17:14:40 +02:00
|
|
|
post-install:
|
2005-05-16 17:41:10 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/obj/ghc/HaXml.pkgconf \
|
2002-08-21 17:14:40 +02:00
|
|
|
${PREFIX}/lib/ghc-${GHC_VERSION}/imports/HaXml/
|
2003-06-15 22:01:01 +02:00
|
|
|
@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
2002-06-05 01:05:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-05-29 16:13:10 +02:00
|
|
|
@(cd ${WRKSRC} && ${RM} -rf docs/HaXml/CVS)
|
2002-06-05 01:05:39 +02:00
|
|
|
@(cd ${WRKSRC} && ${CP} -R docs/* ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
|
2005-09-11 20:14:02 +02:00
|
|
|
.include <bsd.port.mk>
|