freebsd-ports/x11/xvkbd/Makefile

50 lines
1.1 KiB
Makefile
Raw Normal View History

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