Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2006 01:32:05 +0200 (CEST)
From:      Stefan Sperling <freebsd-gnats@stsp.in-berlin.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/102873: graphics/sdl_ttf depends on GL unconditionally
Message-ID:  <200609042332.k84NW5EE069564@gurke.stsp.lan>
Resent-Message-ID: <200609042340.k84NeKQs069362@freefall.freebsd.org>

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

>Number:         102873
>Category:       ports
>Synopsis:       graphics/sdl_ttf depends on GL unconditionally
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 04 23:40:20 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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