# New ports collection makefile for:	glade--
# Date created:				7th October 2000
# Whom:			Shinya FUJIE <fujie@tk.elec.waseda.ac.jp>
#
# $FreeBSD: ports/devel/glade--/Makefile,v 1.7 2003/02/21 11:22:31 knu Exp $
#

PORTNAME=	glademm
PORTVERSION=	0.5.11
CATEGORIES=	devel gnome
MASTER_SITES=	http://home.wtal.de/petig/Gtk/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/5./5_/}

MAINTAINER=	fujie@tk.elec.waseda.ac.jp
COMMENT=	A C++(GTK--) code generator for glade

RUN_DEPENDS=	glade:${PORTSDIR}/devel/glade
LIB_DEPENDS=	gtkmm.2:${PORTSDIR}/x11-toolkits/gtk--

USE_X_PREFIX=	yes
USE_PERL5=	yes
USE_GMAKE=	yes
USE_GNOME=	yes
USE_LIBTOOL=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 500000
BROKEN=		"Does not compile"
.endif

post-patch:
	@${PERL} -pi -e 's|%%GTK_CONFIG%%|${GTK_CONFIG}|g' \
		${WRKSRC}/src/glade--.cc
	@${PERL} -pi -e 's|%%X11BASE%%|${X11BASE}|g' \
		${WRKSRC}/src/Cxx.cc

.include <bsd.port.post.mk>
