1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/x11/keybinder/Makefile
Niclas Zeising 4c46ca73d8 Add USES=xorg USES=gl, ports categories x
Add USES=xorg and USES=gl to ports in categories starting with 'x'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-07 18:36:55 +00:00

58 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= keybinder
PORTVERSION= 0.3.1
PORTREVISION= 3
DISTVERSIONPREFIX= v
CATEGORIES= x11
MAINTAINER= ports@FreeBSD.org
COMMENT= Library for registering keyboard shortcuts
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= engla
USES= autoreconf gmake gnome libtool pathfix pkgconfig xorg
USE_GNOME= gtk20 introspection:build
USE_XORG= x11 xext xrender
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= EXAMPLES DOCS LUA PYTHON
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= gtkdocize:textproc/gtk-doc
DOCS_CONFIGURE_ON= --enable-gtk-doc
# Override LUA description
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.7
PYTHON_USE= gnome=pygtk2
PYTHON_CONFIGURE_OFF= --disable-python
post-patch-DOCS-off:
@${REINPLACE_CMD} -E '/GTK_DOC_CHECK|docs/d' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e '/^SUBDIRS/s, docs,,' ${WRKSRC}/Makefile.am
pre-configure-DOCS-on:
@(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:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>