ports/101651: devel/sdl12 port depends on X11 libaries unconditionally

Stefan Sperling freebsd-gnats at stsp.in-berlin.de
Tue Aug 8 11:50:15 UTC 2006


>Number:         101651
>Category:       ports
>Synopsis:       devel/sdl12 port depends on X11 libaries 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:   Tue Aug 08 11:50:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Sperling
>Release:        FreeBSD 6.1-RELEASE-p3
>Organization:
>Environment:
FreeBSD gurke.stsp.lan 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #3: Mon Aug  7 08:28:26 CEST 2006     stsp at gurke.stsp.lan:/usr/obj/usr/src/sys/GURKE  i386

>Description:
Currently, the devel/sdl12 port depends on X11 libraries unconditionally.
SDL can work without X11 though, using alternative video drivers such as svgalib or vgl. Setting WITHOUT_X11=yes in /etc/make.conf has no effect on devel/sdl12, it still depends on X11 libraries.
>How-To-Repeat:
Set WITHOUT_X11=yes in /etc/make.conf
Install SDL and note X11 libraries being installed as a dependency.
>Fix:
Proposed patch, tested and working for me:

--- Makefile.orig	Tue Aug  8 13:16:08 2006
+++ Makefile	Tue Aug  8 13:23:47 2006
@@ -32,7 +32,12 @@
 CFLAGS+=	${PTHREAD_CFLAGS} -I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
+.if !defined(WITHOUT_X11)
 USE_XLIB=	yes
+.else
+PKGNAMESUFFIX=	-nox11
+CONFIGURE_ARGS+=--disable-video-x11
+.endif
 
 .if !defined(NOPORTDOCS)
 PORTDOCS=	*

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



More information about the freebsd-ports-bugs mailing list