freebsd-ports/x11/xbindkeys/Makefile

61 lines
1.3 KiB
Makefile
Raw Normal View History

# ex:ts=8
# New ports collection makefile for: xbindkeys
# Date created: Dec 29, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= xbindkeys
PORTVERSION= 1.7.1
CATEGORIES= x11
MASTER_SITES= http://hocwp.free.fr/xbindkeys/
2002-09-05 10:41:17 +02:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 20:21:36 +01:00
COMMENT= Allows you to launch shell commands under X with your keyboard
USE_XLIB= yes
2004-01-05 02:57:50 +01:00
USE_GNOME= gnometarget
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN1= xbindkeys.1
WISH= ${LOCALBASE}/bin/wish8.4
.if defined(WITH_GUILE)
LIB_DEPENDS+= guile.15:${PORTSDIR}/lang/guile
.else
CONFIGURE_ARGS+= --disable-guile
.endif
.if defined(WITH_TCLTK)
RUN_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84
MAN1+= xbindkeys_show.1
PLIST_SUB+= TCLTK=""
2004-01-05 02:57:50 +01:00
.else
CONFIGURE_ARGS+= --disable-tk
PLIST_SUB+= TCLTK="@comment "
2004-01-05 02:57:50 +01:00
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "XbindKeys has the following tunable options:"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITH_GUILE=yes Turns on Guile support"
@${ECHO_MSG} " WITH_TCLTK=yes Turns on Tcl/Tk support"
@${ECHO_MSG} ""
post-patch:
@${REINPLACE_CMD} -e 's| wish | ${WISH} |g' ${WRKSRC}/xbindkeys_show
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/xbindkeysrc ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>