aboutsummaryrefslogtreecommitdiff
path: root/x11/xvkbd
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2000-12-23 16:58:17 +0000
committerPeter Pentchev <roam@FreeBSD.org>2000-12-23 16:58:17 +0000
commitf145f58277e0b7c8c473e9670d55f3ab0fe39cc9 (patch)
tree0410daa8d7567a086b33bdebe02644b968b66b26 /x11/xvkbd
parent3803b2c364940ccdd9a7627b1bf80b811efb8ffc (diff)
downloadports-f145f58277e0b7c8c473e9670d55f3ab0fe39cc9.tar.gz
ports-f145f58277e0b7c8c473e9670d55f3ab0fe39cc9.zip
Notes
Diffstat (limited to 'x11/xvkbd')
-rw-r--r--x11/xvkbd/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/x11/xvkbd/Makefile b/x11/xvkbd/Makefile
index a7661efc6dc9..2e24d18e9569 100644
--- a/x11/xvkbd/Makefile
+++ b/x11/xvkbd/Makefile
@@ -12,6 +12,12 @@ MASTER_SITES= http://member.nifty.ne.jp/tsato/xvkbd/
MAINTAINER= roam@FreeBSD.org
+.if defined(WITH_ALL)
+WITH_XAW3D= yes
+WITH_XTEST= yes
+WITH_I18N= yes
+.endif
+
.if defined(WITH_XAW3D)
BUILD_DEPENDS= ${X11BASE}/lib/libXaw3d.a:${PORTSDIR}/x11-toolkits/Xaw3d
.endif
@@ -22,17 +28,22 @@ pre-fetch:
@${ECHO} "The following define controls are available:"
@${ECHO} "- WITH_XAW3D - Xaw3d support;"
@${ECHO} "- WITH_XTEST - XTEST extesions support;"
- @${ECHO} "- WITH_I18N - internationalization."
+ @${ECHO} "- WITH_I18N - internationalization;"
+ @${ECHO} "- WITH_ALL - all of the above."
-post-patch:
.if defined(WITH_XAW3D)
- ${PERL} -pi.fbsd -e 's/XCOMM define XAW3D/#define XAW3D/' ${WRKSRC}/Imakefile
+XK_DEFSUBST += -e 's/XCOMM define XAW3D/\#define XAW3D/;'
.endif
.if defined(WITH_XTEST)
- ${PERL} -pi.fbsd -e 's/XCOMM define XTEST/#define XTEST/' ${WRKSRC}/Imakefile
+XK_DEFSUBST += -e 's/XCOMM define XTEST/\#define XTEST/;'
.endif
.if defined(WITH_I18N)
- ${PERL} -pi.fbsd -e 's/XCOMM define I18N/#define I18N/' ${WRKSRC}/Imakefile
+XK_DEFSUBST += -e 's/XCOMM define I18N/\#define I18N/;'
+.endif
+
+.if defined(XK_DEFSUBST)
+post-patch:
+ ${PERL} -pi.fbsd ${XK_DEFSUBST} ${WRKSRC}/Imakefile
.endif
.include <bsd.port.mk>