From stsp@stsp.in-berlin.de  Mon Sep  4 23:33:34 2006
Return-Path: <stsp@stsp.in-berlin.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B81DC16A4DE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Sep 2006 23:33:34 +0000 (UTC)
	(envelope-from stsp@stsp.in-berlin.de)
Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 166AC43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Sep 2006 23:33:33 +0000 (GMT)
	(envelope-from stsp@stsp.in-berlin.de)
Received: from stsp.lan (port-212-202-170-172.dynamic.qsc.de [212.202.170.172])
	(authenticated bits=128)
	by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id k84NXUJi020108
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 5 Sep 2006 01:33:32 +0200
Received: from gurke.stsp.lan (localhost [127.0.0.1])
	by stsp.lan (8.13.6/8.13.6) with ESMTP id k84NW61l069565
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 5 Sep 2006 01:32:06 +0200 (CEST)
	(envelope-from stsp@gurke.stsp.lan)
Received: (from stsp@localhost)
	by gurke.stsp.lan (8.13.6/8.13.6/Submit) id k84NW5EE069564;
	Tue, 5 Sep 2006 01:32:05 +0200 (CEST)
	(envelope-from stsp)
Message-Id: <200609042332.k84NW5EE069564@gurke.stsp.lan>
Date: Tue, 5 Sep 2006 01:32:05 +0200 (CEST)
From: Stefan Sperling <freebsd-gnats@stsp.in-berlin.de>
Reply-To: Stefan Sperling <freebsd-gnats@stsp.in-berlin.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: graphics/sdl_ttf depends on GL unconditionally
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         102873
>Category:       ports
>Synopsis:       graphics/sdl_ttf depends on GL unconditionally
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    shaun
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 04 23:40:20 GMT 2006
>Closed-Date:    Wed Sep 20 13:26:35 GMT 2006
>Last-Modified:  Wed Sep 20 13:26:35 GMT 2006
>Originator:     Stefan Sperling
>Release:        FreeBSD 6.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD gurke.stsp.lan 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 #4: Tue Aug 29 14:51:44 CEST 2006 stsp@gurke.stsp.lan:/usr/obj/usr/src/sys/GURKE i386


	
>Description:
	The graphics/sdl_ttf port depends on GL libraries unconditionally.
	Installing sdl_ttf on a system that does not run X11 is possible,
	but the Makefile needs to be modified not to pull GL and eventually
	X11 libraries in as dependencies.
	
>How-To-Repeat:
	Set WITHOUT_X11=yes, WITHOUT_OPENGL=yes and WITHOUT_GL=yes
	in /etc/make.conf. Try to install the port and watch as it
	pulls in X11 libraries anyway.
>Fix:
	This simple patch fixes the issue for me. I can now compile
	and install sdl_ttf on my non-X11 system without having GL and X11
	libraries installed.

--- Makefile.orig	Tue Sep  5 01:23:35 2006
+++ Makefile	Tue Sep  5 01:21:31 2006
@@ -18,7 +18,9 @@
 LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
 
 USE_SDL=	sdl
+.if defined(WITH_GL)
 USE_GL=		yes
+.endif
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->shaun 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Sep 4 23:40:27 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102873 
State-Changed-From-To: open->closed 
State-Changed-By: shaun 
State-Changed-When: Wed Sep 20 13:22:28 UTC 2006 
State-Changed-Why:  
I have used WITHOUT_X11 and WITHOUT_GL to determine whether or not to 
depend on GL - so that the default behavior is maintained. 

Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102873 
>Unformatted:
