aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-crypto/Makefile
blob: fcc19f81d6da92a088fadf6efb9bba0d7f4db0c0 (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
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:   crypto
# Date created:        23 June 2003
# Whom:                Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   crypto
PORTVERSION=    1.1.2
PORTREVISION=   1
CATEGORIES= devel haskell
MASTER_SITES=   http://www.haskell.org/crypto/downloads/
PKGNAMEPREFIX=  hs-
EXTRACT_SUFX=   .tar

MAINTAINER= haskell@FreeBSD.org
COMMENT=    A Haskell Cryptographic Library

BUILD_DEPENDS=  ghc:${PORTSDIR}/lang/ghc
RUN_DEPENDS=    ghc:${PORTSDIR}/lang/ghc

.if !defined(NOPORTDOCS)
BUILD_DEPENDS=  haddock:${PORTSDIR}/devel/hs-haddock
.endif

WRKSRC=     ${WRKDIR}/${PORTNAME}
USE_REINPLACE=  yes
USE_GMAKE=  yes
ALL_TARGET= # empty

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
        ${WRKSRC}/Makefile ${WRKSRC}/package.conf
    @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
        ${WRKSRC}/Makefile ${WRKSRC}/package.conf

do-configure:
    @(cd ${WRKSRC} && ${GMAKE} depend)

.if !defined(NOPORTDOCS)
post-build:
    @(cd ${WRKSRC} && ${GMAKE} doc)

post-install:
    @${MKDIR} ${DOCSDIR}
    @(cd ${WRKSRC} && \
        ${INSTALL_DATA} *.html ReadMe.* haddock.css haskell_icon.gif ${DOCSDIR})
.endif

.include <bsd.port.mk>