From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 3 08:10:18 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E15C16A416 for ; Wed, 3 Jan 2007 08:10:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7A1C913C457 for ; Wed, 3 Jan 2007 08:10:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l038AIi6032793 for ; Wed, 3 Jan 2007 08:10:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l038AIrO032792; Wed, 3 Jan 2007 08:10:18 GMT (envelope-from gnats) Resent-Date: Wed, 3 Jan 2007 08:10:18 GMT Resent-Message-Id: <200701030810.l038AIrO032792@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mario Sergio Fujikawa Ferreira Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A6E3516A415 for ; Wed, 3 Jan 2007 08:00:40 +0000 (UTC) (envelope-from lioux@uol.com.br) Received: from vette.gigo.com (vette.gigo.com [216.218.228.114]) by mx1.freebsd.org (Postfix) with ESMTP id 97F6C13C44C for ; Wed, 3 Jan 2007 08:00:40 +0000 (UTC) (envelope-from lioux@uol.com.br) Received: from 201.34.230.91 (201-34-230-91.bsace703.dsl.brasiltelecom.net.br [201.34.230.91]) by vette.gigo.com (Postfix) with ESMTP id C67F62B9 for ; Wed, 3 Jan 2007 00:00:39 -0800 (PST) Received: (qmail 7114 invoked by uid 1001); 3 Jan 2007 05:58:25 -0200 Message-Id: <20070103075848.7100.qmail@exxodus.fedaykin.here> Date: 3 Jan 2007 05:58:25 -0200 From: Mario Sergio Fujikawa Ferreira To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: shaun@FreeBSD.org Subject: ports/107447: [patch:enhancement] devel/sdl12 - Add devel/directfb support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mario Sergio Fujikawa Ferreira List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jan 2007 08:10:18 -0000 >Number: 107447 >Category: ports >Synopsis: [patch:enhancement] devel/sdl12 - Add devel/directfb support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jan 03 08:10:17 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Mario Sergio Fujikawa Ferreira >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: >Environment: System: FreeBSD exxodus.fedaykin.here 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #19: Thu Dec 21 19:00:25 BRST 2006 lioux@exxodus:/usr/src-6.x/sys/i386/compile/LIOUX i386 >Description: devel/sdl12 neglects to build if devel/directfb is installed. Furthermore, it seems to be a shame that we do not take the opportunity to try this support. Therefore, I wrote a simple set of patches to allow sdl12 to build with directfb support. Have in mind that I did not test if the support actually works. I just got it to compile. Therefore, tests are required. >How-To-Repeat: n.a. >Fix: Patch Makefile Add patch patch-src__video__directfb__SDL_DirectFB_video.c to files --- patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/sdl12/Makefile,v retrieving revision 1.104 diff -d -u -u -r1.104 Makefile --- Makefile 21 Nov 2006 16:47:00 -0000 1.104 +++ Makefile 3 Jan 2007 07:54:10 -0000 @@ -7,6 +7,7 @@ PORTNAME= sdl PORTVERSION= 1.2.11 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= devel MASTER_SITES= http://www.libsdl.org/release/ @@ -49,6 +50,7 @@ OPTIONS= NAS "Include support for the Network Audio System" Off \ AALIB "Include support for AA-lib" On \ + DIRECTFB "Include support for DirectFB" Off \ GL "Include support for OpenGL" On \ GGI "Include support for GGI" Off \ SVGALIB "Include support for SVGALIB" On @@ -119,6 +121,10 @@ CONFIGURE_ARGS+=--disable-arts .endif +.if (exists(${LOCALBASE}/directfb-config) || defined(WITH_DIRECTFB)) && !defined(WITHOUT_DIRECTFB) +LIB_DEPENDS+= directfb-0.9.16:${PORTSDIR}/devel/directfb +.endif + pre-configure: @${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} ${TOUCH} --- patch ends here --- --- patch-src__video__directfb__SDL_DirectFB_video.c begins here --- --- src/video/directfb/SDL_DirectFB_video.c.orig Wed Jan 3 04:46:41 2007 +++ src/video/directfb/SDL_DirectFB_video.c Wed Jan 3 05:29:06 2007 @@ -32,8 +32,8 @@ #include #include -#include -#include +#include +#include #include "SDL_video.h" #include "SDL_mouse.h" @@ -181,9 +181,9 @@ return DSPF_UNKNOWN; } -static DFBEnumerationResult EnumModesCallback (int width, - int height, - int bpp, +static DFBEnumerationResult EnumModesCallback (unsigned int width, + unsigned int height, + unsigned int bpp, void *data) { SDL_VideoDevice *this = (SDL_VideoDevice *)data; --- patch-src__video__directfb__SDL_DirectFB_video.c ends here --- >Release-Note: >Audit-Trail: >Unformatted: