summaryrefslogtreecommitdiff
path: root/sysutils/usbhotkey/Makefile
blob: 03a663432ffbafeed50c4023d2fa247eca458e7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Nikos Ntarmos <ntarmos@ceid.upatras.gr>
# $FreeBSD$

PORTNAME=	usbhotkey
PORTVERSION=	0.4
CATEGORIES=	sysutils
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}

MAINTAINER=	ntarmos@ceid.upatras.gr
COMMENT=	Utility to remap USB keyboards under X11

LICENSE=	GPLv2

LIB_DEPENDS=	libhid.so:${PORTSDIR}/devel/libhid \
		libXtst.so:${PORTSDIR}/x11/libXtst

USES=		gmake
USE_RUBY=	yes
HAS_CONFIGURE=	yes

CPPFLAGS+=	-I${LOCALBASE}/include \
		-I${LOCALBASE}/include/ruby-${RUBY_VER} \
		-I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}
LDFLAGS+=	-L${LOCALBASE}/lib

OPTIONS_DEFINE=	GUI
OPTIONS_DEFAULT=	GUI
GUI_DESC=	Enable GUI bits (via Imlib)

GUI_LIB_DEPENDS=	libImlib.so:${PORTSDIR}/graphics/imlib
GUI_CONFIGURE_OFF=	--without-Imlib

.include <bsd.port.mk>