# $NetBSD: Makefile,v 1.60 2006/07/07 17:00:27 abs Exp $

DISTNAME=	bonobo-1.0.22
PKGREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/bonobo/1.0/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.gnome.org/
COMMENT=	Architecture for creating reusable software components

BUILD_DEPENDS+=		bison-[0-9]*:../../devel/bison

BUILDLINK_API_DEPENDS.libxml=	libxml>1.8.15

BROKEN_GETTEXT_DETECTION=	yes
USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes
USE_X11BASE=		yes
USE_TOOLS+=		gmake msgfmt perl
GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		LOCALBASE=${LOCALBASE:Q}
CONFIGURE_ENV+=		X11BASE=${X11BASE:Q}
CONFIGURE_ARGS+=	--enable-gtk-doc=no

PKGCONFIG_OVERRIDE=	libefs/libefs.pc.in

post-install:
	-${RMDIR} ${PREFIX}/share/libefs/html/libefs
	-${RMDIR} ${PREFIX}/share/libefs/html
	-${RMDIR} ${PREFIX}/share/libefs

.include "../../graphics/gdk-pixbuf-gnome/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../print/gnome-print/buildlink3.mk"
.include "../../textproc/libxml/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../devel/oaf/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"