freebsd-ports/x11/keybinder/Makefile
Baptiste Daroussin e836ab008a Replace lang/lua with the new lang/lua51
lang/lua51 is working the same way lang/lua52, chase ports using lua 5.1
Make the default lua lua52
Make all lua ports using USES=lua

Approved by:	portmgr (implicit)
2014-05-26 15:28:28 +00:00

64 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= keybinder
PORTVERSION= 0.3.0
PORTREVISION= 2
CATEGORIES= x11
MASTER_SITES= GENTOO/distfiles
MAINTAINER= olivierd@FreeBSD.org
COMMENT= Library for registering keyboard shortcuts
LICENSE= GPLv2
GNU_CONFIGURE= yes
USE_GNOME= gtk20 introspection:build
USE_XORG= x11 xext xrender
USES= gmake pkgconfig pathfix
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES PYTHON LUA
OPTIONS_DEFAULT= PYTHON
# Override LUA description
LUA_DESC= Lua bindings
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= 2
USE_GNOME+= pygtk2
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= PYTHON="@comment "
.endif
.if ${PORT_OPTIONS:MLUA}
USES+= lua:51
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-${LUA_VER}|g' ${WRKSRC}/examples/Makefile
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>