|
Lines 1-10
Link Here
|
| 1 |
# $FreeBSD: head/x11/keybinder/Makefile 393429 2015-08-02 15:03:19Z tijl $ |
1 |
# $FreeBSD: head/x11/keybinder/Makefile 393429 2015-08-02 15:03:19Z tijl $ |
| 2 |
|
2 |
|
| 3 |
PORTNAME= keybinder |
3 |
PORTNAME= keybinder |
| 4 |
PORTVERSION= 0.3.0 |
4 |
PORTVERSION= 0.3.1 |
| 5 |
PORTREVISION= 5 |
5 |
DISTVERSIONPREFIX= v |
| 6 |
CATEGORIES= x11 |
6 |
CATEGORIES= x11 |
| 7 |
MASTER_SITES= GENTOO |
|
|
| 8 |
|
7 |
|
| 9 |
MAINTAINER= ports@FreeBSD.org |
8 |
MAINTAINER= ports@FreeBSD.org |
| 10 |
COMMENT= Library for registering keyboard shortcuts |
9 |
COMMENT= Library for registering keyboard shortcuts |
|
Lines 12-53
Link Here
|
| 12 |
LICENSE= GPLv2 |
11 |
LICENSE= GPLv2 |
| 13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
| 14 |
|
13 |
|
| 15 |
GNU_CONFIGURE= yes |
14 |
BUILD_DEPENDS= gtkdocize:${PORTSDIR}/textproc/gtk-doc |
| 16 |
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc |
15 |
|
| 17 |
USES= gmake libtool pathfix pkgconfig |
16 |
USE_GITHUB= yes |
|
|
17 |
GH_ACCOUNT= engla |
| 18 |
|
| 19 |
USES= autoreconf gmake libtool pathfix pkgconfig |
| 20 |
PATHFIX_MAKEFILEIN= Makefile.am |
| 18 |
USE_GNOME= gtk20 introspection:build |
21 |
USE_GNOME= gtk20 introspection:build |
| 19 |
USE_XORG= x11 xext xrender |
22 |
USE_XORG= x11 xext xrender |
|
|
23 |
GNU_CONFIGURE= yes |
| 24 |
CONFIGURE_ARGS= --disable-silent-rules --disable-gtk-doc |
| 20 |
INSTALL_TARGET= install-strip |
25 |
INSTALL_TARGET= install-strip |
| 21 |
USE_LDCONFIG= yes |
26 |
USE_LDCONFIG= yes |
| 22 |
|
27 |
|
| 23 |
OPTIONS_DEFINE= DOCS EXAMPLES PYTHON LUA |
28 |
OPTIONS_DEFINE= EXAMPLES LUA PYTHON |
| 24 |
OPTIONS_DEFAULT=PYTHON |
29 |
OPTIONS_DEFAULT= PYTHON |
| 25 |
OPTIONS_SUB= yes |
30 |
OPTIONS_SUB= yes |
| 26 |
|
31 |
|
| 27 |
# Override LUA description |
32 |
# Override LUA description |
| 28 |
LUA_DESC= Lua bindings |
33 |
LUA_DESC= Lua bindings |
| 29 |
|
34 |
LUA_USES= lua:51 |
| 30 |
.include <bsd.port.options.mk> |
35 |
LUA_CONFIGURE_ON= --with-lua-includes=${LUA_INCDIR} |
|
|
36 |
LUA_CONFIGURE_OFF= --disable-lua |
| 37 |
PYTHON_USES= python:2 |
| 38 |
PYTHON_USE= gnome=pygtk2 |
| 39 |
PYTHON_CONFIGURE_OFF= --disable-python |
| 40 |
|
| 41 |
pre-configure: |
| 42 |
@(cd ${CONFIGURE_WRKSRC} && ${LOCALBASE}/bin/gtkdocize) |
| 43 |
|
| 44 |
post-build-EXAMPLES-on: |
| 45 |
@${REINPLACE_CMD} -i '' -e \ |
| 46 |
's|lua5.1|lua-${LUA_VER}|g' ${WRKSRC}/examples/Makefile |
| 31 |
|
47 |
|
| 32 |
.if ${PORT_OPTIONS:MPYTHON} |
48 |
post-install-EXAMPLES-on: |
| 33 |
USES+= python:2 |
|
|
| 34 |
USE_GNOME+= pygtk2 |
| 35 |
.else |
| 36 |
CONFIGURE_ARGS+= --disable-python |
| 37 |
.endif |
| 38 |
|
| 39 |
.if ${PORT_OPTIONS:MLUA} |
| 40 |
USES+= lua:51 |
| 41 |
CONFIGURE_ARGS+= --with-lua-includes=${LUA_INCDIR} |
| 42 |
.else |
| 43 |
CONFIGURE_ARGS+= --disable-lua |
| 44 |
.endif |
| 45 |
|
| 46 |
post-install: |
| 47 |
.if ${PORT_OPTIONS:MEXAMPLES} |
| 48 |
@${REINPLACE_CMD} -i '' -e 's|lua5.1|lua-${LUA_VER}|g' ${WRKSRC}/examples/Makefile |
| 49 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
49 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
| 50 |
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} |
50 |
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * \ |
| 51 |
.endif |
51 |
${STAGEDIR}${EXAMPLESDIR}) |
| 52 |
|
52 |
|
| 53 |
.include <bsd.port.mk> |
53 |
.include <bsd.port.mk> |