# New ports collection makefile for:   usbhotkey
# Date created:        16 July 2007
# Whom:                ntarmos@ceid.upatras.gr
#
# $FreeBSD: ports/sysutils/usbhotkey/Makefile,v 1.6 2009/03/14 13:45:28 miwi Exp $
#

PORTNAME=		usbhotkey
PORTVERSION=		0.3.1
PORTREVISION=	1
CATEGORIES=		sysutils
MASTER_SITES=		SF/usbhotkey

MAINTAINER=		ntarmos@cs.uoi.gr
COMMENT=		A utility to remap USB keyboards under X11

LIB_DEPENDS=		hid.0:${PORTSDIR}/devel/libhid \
			Xtst.6:${PORTSDIR}/x11/libXtst

OPTIONS=		GUI "Enable GUI bits (Imlib dependency)" on

USE_RUBY=		yes
USE_GMAKE=		yes
HAS_CONFIGURE=		yes
CONFIGURE_ENV+=		CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
			LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_GUI)
LIB_DEPENDS+=		Imlib.5:${PORTSDIR}/graphics/imlib
.else
CONFIGURE_ARGS+=	--without-Imlib
.endif

.include <bsd.port.post.mk>
