2002-05-21 20:46:56 +02:00
|
|
|
# New ports collection makefile for: haddock
|
|
|
|
# Date created: 09 May 2002
|
|
|
|
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= haddock
|
2007-01-22 12:18:29 +01:00
|
|
|
PORTVERSION= 0.8
|
2002-11-20 10:10:55 +01:00
|
|
|
CATEGORIES= devel haskell
|
2004-07-26 14:06:07 +02:00
|
|
|
MASTER_SITES= http://www.haskell.org/haddock/
|
2002-09-04 20:39:09 +02:00
|
|
|
PKGNAMEPREFIX= hs-
|
2003-02-18 11:50:48 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
2002-05-21 20:46:56 +02:00
|
|
|
|
2004-03-06 22:29:59 +01:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2003-02-18 11:50:48 +01:00
|
|
|
COMMENT= A documentation tool for Haskell
|
2002-05-21 20:46:56 +02:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/sgml/docbook/dsssl/modular:${PORTSDIR}/textproc/dsssl-docbook-modular \
|
2006-12-03 12:55:11 +01:00
|
|
|
docbook<2:${PORTSDIR}/textproc/docbook \
|
2002-05-21 20:46:56 +02:00
|
|
|
${LOCALBASE}/share/sgml/iso8879:${PORTSDIR}/textproc/iso8879 \
|
|
|
|
${LOCALBASE}/share/sgml/docbook/3.1:${PORTSDIR}/textproc/docbook-310 \
|
2005-10-24 18:17:24 +02:00
|
|
|
${LOCALBASE}/share/xsl/docbook/catalog:${PORTSDIR}/textproc/docbook-xsl \
|
2005-10-18 22:57:29 +02:00
|
|
|
jade:${PORTSDIR}/textproc/jade \
|
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt
|
2002-05-21 20:46:56 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//g}
|
2007-01-22 12:18:29 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
2002-05-21 20:46:56 +02:00
|
|
|
USE_GMAKE= yes
|
2007-01-22 12:18:29 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:259:env
|
|
|
|
|
2003-07-28 21:03:39 +02:00
|
|
|
PLIST_SUB+= HADDOCK_VERSION=${PORTVERSION}
|
2007-01-22 12:18:29 +01:00
|
|
|
PORTDOCS= *
|
2002-05-21 20:46:56 +02:00
|
|
|
|
2005-09-14 10:54:09 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
2007-01-22 12:18:29 +01:00
|
|
|
IGNORE= needs perl >= 5.6
|
2005-09-14 10:54:09 +02:00
|
|
|
.endif
|
|
|
|
|
2002-07-23 22:23:30 +02:00
|
|
|
post-patch:
|
2007-01-22 12:18:29 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/share/sgml/catalog||' ${WRKSRC}/doc/configure.ac
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && runhaskell Setup.lhs configure --ghc ${CONFIGURE_ARGS}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure ${CONFIGURE_ARGS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && runhaskell Setup.lhs build
|
2002-07-23 22:23:30 +02:00
|
|
|
|
2002-05-21 20:46:56 +02:00
|
|
|
post-build:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2007-01-22 12:18:29 +01:00
|
|
|
@(cd ${WRKSRC}/doc && \
|
2002-05-21 20:46:56 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html)
|
|
|
|
.endif
|
|
|
|
|
2007-01-22 12:18:29 +01:00
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && runhaskell Setup.lhs install
|
|
|
|
|
2002-05-21 20:46:56 +02:00
|
|
|
post-install:
|
2007-01-22 12:18:29 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/haddock
|
2002-05-21 20:46:56 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-01-22 12:18:29 +01:00
|
|
|
@(cd ${WRKSRC}/doc && ${CP} -R haddock ${PREFIX}/share/doc)
|
2002-05-21 20:46:56 +02:00
|
|
|
.endif
|
|
|
|
|
2005-09-14 10:54:09 +02:00
|
|
|
.include <bsd.port.post.mk>
|