aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xbindkeys/Makefile
blob: ddb46c2f17c0205f6e0dfa755b075d52b4c1518e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: ijliao
# $FreeBSD$

PORTNAME=   xbindkeys
PORTVERSION=    1.8.5
CATEGORIES= x11
MASTER_SITES=   http://www.nongnu.org/xbindkeys/

MAINTAINER= eadler@FreeBSD.org
COMMENT=    Allows you to launch shell commands under X with your keyboard

LICENSE=    GPLv2

OPTIONS_DEFINE= GUILE TCLTK
TCLTK_DESC= Tcl Scripting Support

USE_XORG=   x11 xi
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       xbindkeys.1
PLIST_FILES=    bin/xbindkeys %%EXAMPLESDIR%%/xbindkeysrc
PLIST_DIRS= %%EXAMPLESDIR%%

WISH=       ${LOCALBASE}/bin/wish8.4

MAKE_JOBS_SAFE= yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGUILE}
LIB_DEPENDS+=   guile:${PORTSDIR}/lang/guile
.else
CONFIGURE_ARGS+=    --disable-guile
.endif

.if ${PORT_OPTIONS:MTCLTK}
RUN_DEPENDS+=   wish8.4:${PORTSDIR}/x11-toolkits/tk84
MAN1+=      xbindkeys_show.1
PLIST_FILES+=   bin/xbindkeys_show
.else
CONFIGURE_ARGS+=    --disable-tk
.endif

post-patch:
    @${REINPLACE_CMD} -e 's| wish | ${WISH} |g' ${WRKSRC}/xbindkeys_show

post-install:
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/xbindkeysrc ${EXAMPLESDIR}

.include <bsd.port.mk>