summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/hs-port/Makefile
blob: 101ef86ad0fd8f610c8007d2bc8f71c568cf69e4 (plain)
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
51
52
53
# New ports collection makefile for:	port
# Date created:         		2004-03-09
# Whom:					obraun@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	port
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 low-level GUI library for Haskell

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

USE_GNOME=	glib20 gtk20 libgnomeui
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-configure:
	@${REINPLACE_CMD} 's|\"/usr/local/lib/glib-2.0/include\",|| ;\
			   s|\"/usr/X11R6/lib/gnome-vfs-2.0/include\",|| ;\
			   s|\"/usr/X11R6/lib/gtk-2.0/include\",||' \
		${WRKSRC}/config/port.pkg

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud