summaryrefslogtreecommitdiff
path: root/net/ytalk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-02-28 12:21:48 +0000
committergrant <grant@pkgsrc.org>2004-02-28 12:21:48 +0000
commitd4d30f3e69a471c94c3c1ab347d9ac52836b6cca (patch)
tree92fa1aafe526cdaab62e28918de894d91da0fc3e /net/ytalk
parent23b137a6fe4a34d1e4709e57bb6d9133264ce3f7 (diff)
downloadpkgsrc-d4d30f3e69a471c94c3c1ab347d9ac52836b6cca.tar.gz
this package doesn't require X11, and traditionally ytalk(1) didn't
include X11 support, so disable it by default. set YTALK_USE_X11=YES for X11 support. fixes PR pkg/24584 from diro@nixsys.bz.
Diffstat (limited to 'net/ytalk')
-rw-r--r--net/ytalk/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/net/ytalk/Makefile b/net/ytalk/Makefile
index c8813f4ca96..05a6a92e3e5 100644
--- a/net/ytalk/Makefile
+++ b/net/ytalk/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2003/01/28 22:03:58 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2004/02/28 12:21:48 grant Exp $
DISTNAME= ytalk-3.1.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SUNSITE:=system/network/chat/}
@@ -10,11 +10,19 @@ HOMEPAGE= http://www.iagora.com/~espel/ytalk/ytalk.html
COMMENT= Multi-user replacement for UNIX talk
GNU_CONFIGURE= yes
-USE_X11= yes
USE_PKGINSTALL= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(YTALK_USE_X11) && empty(YTALK_USE_X11:M[Nn][Oo])
+CONFIGURE_ARGS+= --with-x
+USE_X11= yes
+.else
+CONFIGURE_ARGS+= --without-x
+.endif
+
EGDIR= ${PREFIX}/share/examples/ytalk
CONF_FILES= ${EGDIR}/ytalkrc ${PKG_SYSCONFDIR}/ytalkrc