2011-08-16 17:52:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= keybinder
|
2016-01-22 11:05:58 +01:00
|
|
|
PORTVERSION= 0.3.1
|
|
|
|
DISTVERSIONPREFIX= v
|
2011-08-16 17:52:56 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
|
2014-08-26 06:23:43 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2011-08-16 17:52:56 +02:00
|
|
|
COMMENT= Library for registering keyboard shortcuts
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2015-05-15 18:43:10 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2011-08-16 17:52:56 +02:00
|
|
|
|
2016-04-01 16:33:55 +02:00
|
|
|
BUILD_DEPENDS= gtkdocize:textproc/gtk-doc
|
2016-01-22 11:05:58 +01:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= engla
|
|
|
|
|
|
|
|
USES= autoreconf gmake libtool pathfix pkgconfig
|
2014-01-29 17:31:41 +01:00
|
|
|
USE_GNOME= gtk20 introspection:build
|
2012-12-26 11:34:20 +01:00
|
|
|
USE_XORG= x11 xext xrender
|
2016-01-22 11:05:58 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2016-09-09 21:42:46 +02:00
|
|
|
CONFIGURE_ARGS= --disable-gtk-doc
|
2015-05-15 18:43:10 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2011-08-16 17:52:56 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2016-01-22 11:05:58 +01:00
|
|
|
OPTIONS_DEFINE= EXAMPLES LUA PYTHON
|
|
|
|
OPTIONS_DEFAULT= PYTHON
|
|
|
|
OPTIONS_SUB= yes
|
2012-10-15 19:06:01 +02:00
|
|
|
|
|
|
|
# Override LUA description
|
2016-01-22 11:05:58 +01:00
|
|
|
LUA_DESC= Lua bindings
|
|
|
|
LUA_USES= lua:51
|
|
|
|
LUA_CONFIGURE_ON= --with-lua-includes=${LUA_INCDIR}
|
|
|
|
LUA_CONFIGURE_OFF= --disable-lua
|
|
|
|
PYTHON_USES= python:2
|
|
|
|
PYTHON_USE= gnome=pygtk2
|
|
|
|
PYTHON_CONFIGURE_OFF= --disable-python
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@(cd ${CONFIGURE_WRKSRC} && ${LOCALBASE}/bin/gtkdocize)
|
|
|
|
|
|
|
|
post-build-EXAMPLES-on:
|
|
|
|
@${REINPLACE_CMD} -i '' -e \
|
|
|
|
's|lua5.1|lua-${LUA_VER}|g' ${WRKSRC}/examples/Makefile
|
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
2014-01-11 11:03:45 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2016-01-22 11:05:58 +01:00
|
|
|
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR})
|
2011-08-16 17:52:56 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|