blob: 45ff95d8add9277296e464bfe2b8b316999d22c9 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $FreeBSD$
#
PORTNAME= keybinder
PORTVERSION= 0.3.0
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= GENTOO/distfiles
MAINTAINER= olivierd@FreeBSD.org
COMMENT= Library for registering keyboard shortcuts
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
LICENSE= GPLv2
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= gtk20
USE_XORG= x11 xext xrender
USES= pkgconfig pathfix
USE_LDCONFIG= yes
OPTIONS_DEFINE= PYTHON LUA
OPTIONS_DEFAULT= PYTHON
# Override LUA description
LUA_DESC= Lua bindings
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
USE_GNOME+= pygtk2
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= PYTHON="@comment "
.endif
.if ${PORT_OPTIONS:MLUA}
USE_LUA= 5.1+
CONFIGURE_ARGS+= --with-lua-includes=${LUA_INCDIR}
PLIST_SUB+= LUA=""
.else
CONFIGURE_ARGS+= --disable-lua
PLIST_SUB+= LUA="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= gtkdoc-check:${PORTSDIR}/textproc/gtk-doc
CONFIGURE_ARGS+=--enable-gtk-doc \
--with-html-dir=${PREFIX}/share/gtk-doc/html
PLIST_SUB+= DOCS=""
.else
CONFIGURE_ARGS+=--disable-gtk-doc-html \
--without-html-dir
PLIST_SUB+= DOCS="@comment "
.endif
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} -i '' -e 's|lua5.1|lua-5.1|g' ${WRKSRC}/examples/Makefile
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|