# New ports collection makefile for:    gtk-sharp
# Date created:         2003-01-01
# Whom:                 Juli Mallett
#
# $FreeBSD: ports/x11-toolkits/gtk-sharp10/Makefile,v 1.47 2006/02/23 10:40:16 ade Exp $
#   $Id: Makefile,v 1.11 2005/12/03 04:03:18 tmclau02 Exp $
#

PORTNAME=	gtk-sharp
PORTVERSION=	1.0.10
PORTREVISION=	8
CATEGORIES=	x11-toolkits
MASTER_SITES=	http://go-mono.com/sources/${PORTNAME}/

MAINTAINER=	bsd-sharp-list@forge.novell.com
COMMENT=	GTK+ and GNOME interfaces for the .NET runtime

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

USE_X_PREFIX=	yes
LATEST_LINK=	gtk-sharp10
GNU_CONFIGURE=	yes
INSTALLS_SHLIB=	yes
USE_GMAKE=	yes
USE_PERL5_RUN=	yes
USE_GNOME=	gnomehack gtkhtml3 vte librsvg2

MAKE_ENV=MONO_SHARED_DIR=${WRKDIR}

post-patch:
	@${FIND} ${WRKSRC} -name '*.pl' | ${XARGS} ${REINPLACE_CMD} -e \
		's|^#!/usr/bin/perl|#!${PERL}|'
	@${REINPLACE_CMD} -e 's|enable_gda=yes|enable_gda=no|g ; \
		s|enable_gnomedb=yes|enable_gnomedb=no|g' ${WRKSRC}/configure

pre-su-install:
	${MKDIR} ${LOCALBASE}/share/gapi

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