1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/x11/keybinder/Makefile
Marcus von Appen a5f9cc91c2 - Convert ports from korean/, shells/, x11/, x11-clocks/, x11-fm/,
x11-fonts/, x11-toolkits and x11-wm to new USES=python

Approved by:	portmgr (implicit)
2014-10-19 18:16:15 +00:00

52 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= keybinder
PORTVERSION= 0.3.0
PORTREVISION= 3
CATEGORIES= x11
MASTER_SITES= GENTOO/distfiles
MAINTAINER= ports@FreeBSD.org
COMMENT= Library for registering keyboard shortcuts
LICENSE= GPLv2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc
USES= gmake libtool pathfix pkgconfig
USE_GNOME= gtk20 introspection:build
USE_XORG= x11 xext xrender
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES PYTHON LUA
OPTIONS_DEFAULT=PYTHON
OPTIONS_SUB= yes
# Override LUA description
LUA_DESC= Lua bindings
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USES+= python:2
USE_GNOME+= pygtk2
.else
CONFIGURE_ARGS+= --disable-python
.endif
.if ${PORT_OPTIONS:MLUA}
USES+= lua:51
CONFIGURE_ARGS+= --with-lua-includes=${LUA_INCDIR}
.else
CONFIGURE_ARGS+= --disable-lua
.endif
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} -i '' -e 's|lua5.1|lua-${LUA_VER}|g' ${WRKSRC}/examples/Makefile
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>