summaryrefslogtreecommitdiffstats
path: root/x11/keybinder/Makefile
blob: 9accb6a433dfd54279c1ebae5056d6e55c3ced10 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# New ports collection makefile for:	keybinder
# Date created:				2011-02-21
# Whom:			Olivier Duchateau <duchateau.olivier@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	keybinder
PORTVERSION=	0.2.2
PORTREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	http://kaizer.se/publicfiles/${PORTNAME}/

MAINTAINER=	duchateau.olivier@gmail.com
COMMENT=	Library for registering keyboard shortcuts

LICENSE=	GPLv2

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	gnomehack gtk20 pkgconfig
USE_LDCONFIG=	yes

PORTEXAMPLES=	*

OPTIONS=	PYTHON	"Install Python bindings"	on \
		LUA	"Install Lua bindings"		off

.include <bsd.port.options.mk>

.if defined(WITH_PYTHON)
USE_PYTHON=	yes
USE_GNOME+=	pygtk2 pygobject
PLIST_SUB+=	PYTHON=""
.else
CONFIGURE_ARGS+=	--disable-python
PLIST_SUB+=	PYTHON="@comment "
.endif

.if defined(WITH_LUA)
USE_LUA=	5.1+
CONFIGURE_ARGS+=	--with-lua-includes=${LUA_INCDIR}
PLIST_SUB+=	LUA=""
.else
CONFIGURE_ARGS+=	--disable-lua
PLIST_SUB+=	LUA="@comment "
.endif

post-install:
.if !defined(NOPORTEXAMPLES)
	@${REINPLACE_CMD} -i '' -e 's,lua5,lua-5,' ${WRKSRC}/examples/Makefile
	@${MKDIR} ${EXAMPLESDIR}
	${CP} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud