2013-04-26 15:34:25 +02:00
|
|
|
# Created by: roam@FreeBSD.org
|
2000-11-26 15:03:56 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xvkbd
|
2013-07-22 17:25:58 +02:00
|
|
|
PORTVERSION= 3.5
|
2000-11-26 15:03:56 +01:00
|
|
|
CATEGORIES= x11
|
2004-12-13 14:54:06 +01:00
|
|
|
MASTER_SITES= http://homepage3.nifty.com/tsato/xvkbd/
|
2000-11-26 15:03:56 +01:00
|
|
|
|
2012-02-27 21:32:31 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-04-26 15:34:25 +02:00
|
|
|
COMMENT= Virtual keyboard for X applications
|
2000-11-26 15:03:56 +01:00
|
|
|
|
2013-04-26 15:34:25 +02:00
|
|
|
LICENSE= GPLv2 # (or later)
|
2002-02-22 15:42:20 +01:00
|
|
|
|
2012-05-31 22:11:15 +02:00
|
|
|
OPTIONS_DEFINE= XAW3D XTEST NLS DOCS
|
|
|
|
OPTIONS_DEFAULT= XTEST
|
2013-04-26 15:34:25 +02:00
|
|
|
XAW3D_DESC= Xaw3d widget library support
|
2012-05-31 22:11:15 +02:00
|
|
|
XTEST_DESC= XTEST extensions support
|
2000-11-26 15:03:56 +01:00
|
|
|
|
2013-06-28 13:51:05 +02:00
|
|
|
USES= imake
|
2009-06-09 17:33:28 +02:00
|
|
|
USE_XORG= ice sm x11 xaw xext xmu xpm xt
|
2000-11-26 15:03:56 +01:00
|
|
|
|
2013-04-26 15:34:25 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2000-11-26 15:03:56 +01:00
|
|
|
|
2012-05-31 22:11:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MXAW3D}
|
2014-07-16 10:44:04 +02:00
|
|
|
LIB_DEPENDS+= libXaw3d.so:${PORTSDIR}/x11-toolkits/Xaw3d
|
2013-04-26 15:34:25 +02:00
|
|
|
XK_DEFSUBST+= -e 's/XCOMM define XAW3d/\#define XAW3d/;'
|
2000-11-26 15:03:56 +01:00
|
|
|
.endif
|
2013-04-26 15:34:25 +02:00
|
|
|
|
2012-05-31 22:11:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MXTEST}
|
2009-06-09 17:33:28 +02:00
|
|
|
USE_XORG+= xtst
|
2013-04-26 15:34:25 +02:00
|
|
|
XK_DEFSUBST+= -e 's/XCOMM define XTEST/\#define XTEST/;'
|
2000-12-23 17:34:03 +01:00
|
|
|
.endif
|
2013-04-26 15:34:25 +02:00
|
|
|
|
2012-05-31 22:11:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-26 15:34:25 +02:00
|
|
|
XK_DEFSUBST+= -e 's/XCOMM define I18N/\#define I18N/;'
|
2000-12-23 17:58:17 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2012-05-31 22:11:15 +02:00
|
|
|
.if defined(XK_DEFSUBST)
|
2013-04-26 15:34:25 +02:00
|
|
|
@${REINPLACE_CMD} ${XK_DEFSUBST} ${WRKSRC}/Imakefile
|
2000-12-23 17:34:03 +01:00
|
|
|
.endif
|
2013-04-26 15:34:25 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/include/|${LOCALBASE}/include/|' ${WRKSRC}/XVkbd-small.ad
|
2008-05-28 23:54:00 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-12-14 00:12:00 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
|
2000-11-26 15:03:56 +01:00
|
|
|
|
2013-04-26 15:34:25 +02:00
|
|
|
.include <bsd.port.mk>
|