Date: Wed, 6 Mar 2013 20:57:13 GMT From: Olivier Cochard-Labbe <olivier@cochard.me> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/176705: graphics/libGL : Fix complitation (not useability) on ARM Message-ID: <201303062057.r26KvD8P002165@red.freebsd.org> Resent-Message-ID: <201303062100.r26L02Ae074513@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 176705 >Category: ports >Synopsis: graphics/libGL : Fix complitation (not useability) on ARM >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: Wed Mar 06 21:00:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Olivier Cochard-Labbe >Release: current >Organization: >Environment: FreeBSD raspberry-pi.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r247613M: Sat Mar 2 16:03:10 JST 2013 aoyama@fbs.local:/usr/obj-rpi-clang/arm.armv6/usr/src/sys/RPI-B-test18 arm >Description: For compiling x11/xorg-minimal on raspberry pi, I had to patch graphics/libGL. Raspberry pi didn't support dri/libGL, but this pach (with graphics/dri patch that follow) permit to compile (and start) xorg-minimal without complain. >How-To-Repeat: >Fix: Patch attached with submission follows: --- src/gallium/include/pipe/p_config.h.orig 2013-03-04 14:14:41.558073315 +0000 +++ src/gallium/include/pipe/p_config.h 2013-03-04 14:15:38.767155403 +0000 @@ -136,6 +136,15 @@ # define PIPE_ARCH_BIG_ENDIAN #endif +#elif defined(__FreeBSD__) +#include <machine/endian.h> + +#if defined(_LITTLE_ENDIAN) +# define PIPE_ARCH_LITTLE_ENDIAN +#elif defined(_BIG_ENDIAN) +# define PIPE_ARCH_BIG_ENDIAN +#endif + #else #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303062057.r26KvD8P002165>