aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-hdoc/Makefile
blob: 19aa853864961ae1858cccd2106254c1db7843ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:    hdoc
# Date created:             25 October 2002
# Whom:                 Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   hdoc
PORTVERSION=    0.8.3
PORTREVISION=   3
CATEGORIES= devel haskell
MASTER_SITES=   http://staff.fmi.uni-passau.de/~groessli/hdoc/
PKGNAMEPREFIX=  hs-

MAINTAINER= haskell@FreeBSD.org
COMMENT=    HTML documentation tool for Haskell

BUILD_DEPENDS=  ghc:${PORTSDIR}/lang/ghc
LIB_DEPENDS+=   gmp.8:${PORTSDIR}/math/libgmp4

DOCSDIR=    ${PREFIX}/share/doc/${DISTNAME}

PLIST_FILES=    bin/hdoc
.if !defined(NOPORTDOCS)
PLIST_DIRS= share/doc/${DISTNAME}
PLIST_FILES+=   share/doc/${DISTNAME}/hdoc.pdf
.endif

GNU_CONFIGURE=  yes
USE_GMAKE=  yes

CONFIGURE_ARGS+=    --prefix=${PREFIX}
ALL_TARGET= # empty

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR} && \
      cd ${WRKSRC}/docs && ${INSTALL_DATA} hdoc.pdf ${DOCSDIR}
.endif

.include <bsd.port.mk>