2011-08-16 17:52:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= keybinder
|
2012-12-26 11:34:20 +01:00
|
|
|
PORTVERSION= 0.3.0
|
2012-12-27 09:36:48 +01:00
|
|
|
PORTREVISION= 1
|
2011-08-16 17:52:56 +02:00
|
|
|
CATEGORIES= x11
|
2013-05-18 08:38:20 +02:00
|
|
|
MASTER_SITES= GENTOO/distfiles
|
2011-08-16 17:52:56 +02:00
|
|
|
|
2012-10-15 19:06:01 +02:00
|
|
|
MAINTAINER= olivierd@FreeBSD.org
|
2011-08-16 17:52:56 +02:00
|
|
|
COMMENT= Library for registering keyboard shortcuts
|
|
|
|
|
2012-12-26 11:34:20 +01:00
|
|
|
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
|
|
|
|
|
2011-08-16 17:52:56 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2013-05-18 08:38:20 +02:00
|
|
|
USE_GNOME= gtk20
|
2012-12-26 11:34:20 +01:00
|
|
|
USE_XORG= x11 xext xrender
|
2013-05-18 08:38:20 +02:00
|
|
|
USES= pkgconfig pathfix
|
2011-08-16 17:52:56 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2012-10-15 19:06:01 +02:00
|
|
|
OPTIONS_DEFINE= PYTHON LUA
|
|
|
|
OPTIONS_DEFAULT= PYTHON
|
|
|
|
|
|
|
|
# Override LUA description
|
|
|
|
LUA_DESC= Lua bindings
|
2011-08-16 17:52:56 +02:00
|
|
|
|
2013-09-21 01:43:19 +02:00
|
|
|
NO_STAGE= yes
|
2011-08-16 17:52:56 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-10-15 19:06:01 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2011-08-16 17:52:56 +02:00
|
|
|
USE_PYTHON= yes
|
2012-12-26 11:34:20 +01:00
|
|
|
USE_GNOME+= pygtk2
|
2011-08-16 17:52:56 +02:00
|
|
|
PLIST_SUB+= PYTHON=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-python
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-10-15 19:06:01 +02:00
|
|
|
.if ${PORT_OPTIONS:MLUA}
|
2011-08-16 17:52:56 +02:00
|
|
|
USE_LUA= 5.1+
|
|
|
|
CONFIGURE_ARGS+= --with-lua-includes=${LUA_INCDIR}
|
|
|
|
PLIST_SUB+= LUA=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-lua
|
|
|
|
PLIST_SUB+= LUA="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-12-26 11:34:20 +01:00
|
|
|
.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
|
|
|
|
|
2011-08-16 17:52:56 +02:00
|
|
|
post-install:
|
2012-12-26 11:34:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${REINPLACE_CMD} -i '' -e 's|lua5.1|lua-5.1|g' ${WRKSRC}/examples/Makefile
|
2011-08-16 17:52:56 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2012-12-26 11:34:20 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
2011-08-16 17:52:56 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|