# New ports collection makefile for:	xnee
# Date created:				27 May 2002
# Whom:					Alexey Dokuchaev <danfe@regency.nsu.ru>
#
# $FreeBSD: ports/x11/xnee/Makefile,v 1.18 2005/07/26 08:21:13 sem Exp $
#

PORTNAME=	xnee
PORTVERSION=	2.00
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	Xnee-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	X events recorder and player

USE_X_PREFIX=	yes
WANT_GNOME=	yes
USE_GNOME=	gnomehack gnometarget
GNU_CONFIGURE=	yes

INFO=		xnee
PLIST_FILES=	bin/cnee lib/libxnee.a

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgtk20}!=""
USE_GNOME+=	gtk20
PLIST_FILES+=	bin/gnee
PKGNAMESUFFIX=	-gtk
.else
CONFIGURE_ARGS+=	--disable-gui
.endif

post-build:
	cd ${WRKSRC}/doc && makeinfo --no-split xnee.texi

pre-install:
	${INSTALL_DATA} ${WRKSRC}/doc/xnee.info ${PREFIX}/${INFO_PATH}

.include <bsd.port.post.mk>
