summaryrefslogtreecommitdiff
path: root/x11-toolkits/hs-gtk+hs/Makefile
blob: d94985211470e6fd3586e921fcba5ba9dfbb755c (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:   gtk+hs
# Date created:        23 August 2002
# Whom:                Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gtk+hs
PORTVERSION=	0.15.2
CATEGORIES=	x11-toolkits haskell
MASTER_SITES=	http://www.cse.unsw.edu.au/~chak/haskell/gtk/
PKGNAMEPREFIX=	hs-

MAINTAINER=	obraun@FreeBSD.org
COMMENT=	A GTK+ Binding for Haskell

BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc \
		c2hs:${PORTSDIR}/devel/hs-c2hs
RUN_DEPENDS=	ghc:${PORTSDIR}/lang/ghc \
		c2hs:${PORTSDIR}/devel/hs-c2hs
.if !defined(WITHOUT_IHASKELL)
RUN_DEPENDS+=	ports-config:${PORTSDIR}/devel/hs-hpl
.endif

USE_GNOMENG=	yes
USE_GNOME=	glib12 gtk12

USE_REINPLACE=	yes
HAS_CONFIGURE=	yes
USE_GMAKE=	yes

CONFIGURE_ARGS+=	--prefix=${PREFIX} --enable-add-package
.if !defined(WITHOUT_IHASKELL)
CONFIGURE_ARGS+=	--with-ih
.endif

PLIST_SUB+=	PORTVERSION="${PORTVERSION}"

pre-everything::
.if !defined(WITHOUT_IHASKELL)
	@${ECHO_CMD} "To build gtk+hs without iHaskell define WITHOUT_IHASKELL."
.endif

post-patch:
	@${REINPLACE_CMD} -e 's/gtk-config/gtk12-config/g ; \
			s/glib-config/glib12-config/g' ${WRKSRC}/configure

.include <bsd.port.mk>