aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/hs-gio/Makefile
blob: cdfc9ecaafd8fb196a602eedda2575b09d83b13d (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
# New ports collection makefile for:    gio
# Date created:                 2004-03-09
# Whom:                 obraun@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   gio
PORTVERSION=    1.2
PORTREVISION=   3
CATEGORIES= x11-toolkits haskell
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= htoolkit
PKGNAMEPREFIX=  hs-

MAINTAINER= haskell@FreeBSD.org
COMMENT=    A 'middle-ground' GUI library for Haskell

BUILD_DEPENDS=  ghc:${PORTSDIR}/lang/ghc \
        ${LOCALBASE}/share/port/port.pkg:${PORTSDIR}/x11-toolkits/hs-port
RUN_DEPENDS=    ghc:${PORTSDIR}/lang/ghc \
        ${LOCALBASE}/share/port/port.pkg:${PORTSDIR}/x11-toolkits/hs-port

USE_BZIP2=  yes
USE_REINPLACE=  yes
HAS_CONFIGURE=  yes
USE_GMAKE=  yes
MAKEFILE=   makefile
MAKE_ENV+=  DOCSDIR="${DOCSDIR}" INSTALL_DATA="${INSTALL_DATA}"
ALL_TARGET= release

GHC_VERSION=    `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"

.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock \
        ${LOCALBASE}/share/doc/ghc6/index.html:${PORTSDIR}/lang/ghc6-doc
CONFIGURE_ARGS+=    -haddock-libs ${LOCALBASE}/share/doc/ghc6/libraries/base \
            -haddock-html ${LOCALBASE}/share/doc/ghc6/libraries/
ALL_TARGET= release doc
INSTALL_TARGET= install install-doc
.endif

post-install:
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/config/gio.pkg ${DATADIR}

.include <bsd.port.mk>