# $FreeBSD: branches/RELEASE_8_4_0/x11-toolkits/hs-wxc/Makefile 311736 2013-02-05 22:26:31Z pgj $

PORTNAME=	wxc
PORTVERSION=	0.90.0.4
PORTREVISION=	2
CATEGORIES=	x11-toolkits haskell

MAINTAINER=	haskell@FreeBSD.org
COMMENT=	wxHaskell C++ wrapper

CABAL_SETUP=	Setup.hs

USE_CABAL=	wxdirect>=0.90

USE_WX=		2.9
WX_COMPS=	wx
WX_UNICODE=	yes

NOPORTDOCS=	yes
USE_DOS2UNIX=	yes

post-patch::
	@${REINPLACE_CMD} 's|"wx-config"|"wxgtk2u-2.9-config"| ; \
	    s|/sbin/ldconfig -n|/sbin/ldconfig -m| ' ${WRKSRC}/Setup.hs

.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
