Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2000 10:04:50 -0600 (CST)
From:      nathan@rtfm.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15910: [PATCH] Only use Tk support if X11 is installed
Message-ID:  <200001051604.KAA53259@matrix.binary.net>

next in thread | raw e-mail | index | archive | help

>Number:         15910
>Category:       ports
>Synopsis:       [PATCH] Only use Tk support if X11 is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan  5 08:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Dorfman
>Release:        FreeBSD 3.4-STABLE i386 (as of Jan 4 2000)
>Organization:
>Environment:

	Any system without X11 installed.

>Description:

	o	a port (www/adzapper, for example) depends on python.
	o	python has optional tk support, but depends on tk by
		default.
	o	tk depends on X11 (naturally).

>How-To-Repeat:

	o	cd /usr/ports/www/adzapper
	o	watch the port try to pull in and build X11

>Fix:
	
	
--- Makefile.orig	Wed Jan  5 15:56:23 2000
+++ Makefile	Wed Jan  5 15:57:02 2000
@@ -32,9 +32,11 @@
 SETUP_FILE=	Setup
 
 #
-# Support for Tk is compiled in by default.
+# Support for Tk is compiled in by default only if X11 is installed.
 #
+.if exists(${X11_BASE})
 WITH_TK?=	yes
+.endif
 .if defined(WITH_TK) && $(WITH_TK) == yes
 TK_DEPENDS=	tk82.1:${PORTSDIR}/x11-toolkits/tk82
 SETUP_LOCAL=	Setup.tk


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001051604.KAA53259>