aboutsummaryrefslogtreecommitdiffstats
path: root/devel/c2hs/Makefile
blob: 5af3f17d1eda5b9b363d7bea607fda8fd444e404 (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
# New ports collection makefile for:   c2hs
# Date created:        23 August 2002
# Whom:                Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   c2hs
PORTVERSION=    0.10.15
CATEGORIES= devel
MASTER_SITES=   http://www.cse.unsw.edu.au/~chak/haskell/c2hs/

MAINTAINER= obraun@FreeBSD.org

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

HAS_CONFIGURE=  yes
USE_GMAKE=  yes

CONFIGURE_ARGS+=    --prefix=${PREFIX} --enable-add-package

MAN1=   c2hs-config.1 c2hs.1

post-build:
    @(cd ${WRKSRC}/doc/c2hs && ${GMAKE} man1/c2hs-config.1 man1/c2hs.1)

post-install:
    @(cd ${WRKSRC}/doc/c2hs/man1 && \
         ${INSTALL_MAN} c2hs-config.1 c2hs.1 ${MANPREFIX}/man/man1)

.include <bsd.port.mk>