2011/11/13 Martin-Éric Racine <martin-eric.rac...@iki.fi>:
> Someone contributed this patch, which should allow building
> xf86-video-geode 2.11.12 on FreeBSD. Could someone with access to
> Geode hardware on FreeBSD please test this and report whether it
> works? Thanks!

And, sure enough, the Makefile.am changes went to the wrong file.
Corrected patch attached.

Martin-Éric
diff --git a/configure.ac b/configure.ac
index 483caff..3c85469 100644
--- a/configure.ac
+++ b/configure.ac
@@ -114,6 +114,17 @@ AC_SUBST([XORG_CFLAGS])
 AC_SUBST([moduledir])
 AC_SUBST([AMD_CFLAGS])
 
+case $host_os in
+  *linux*)
+	BUILD_Z4L=yes
+  ;;
+  *)
+	BUILD_Z4l=no
+  ;;
+esac
+
+AM_CONDITIONAL(BUILD_Z4L, [test "x$BUILD_Z4L" = xyes]) 
+
 is386=false
 
 case $host_cpu in
diff --git a/src/Makefile.am b/src/Makefile.am
index 6817ea4..61e17f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -145,10 +145,12 @@ EXTRA_DIST = \
         gx_vga.c \
         lx_vga.c
 
+#if BUILD_Z4L
 ztv_drv_la_LTLIBRARIES = ztv_drv.la
 ztv_drv_la_LDFLAGS = -module -avoid-version
 ztv_drv_ladir = @moduledir@/drivers
 
 ztv_drv_la_SOURCES = \
         z4l.c
+#endif
 
diff --git a/src/geode_msr.c b/src/geode_msr.c
index 6de693f..4986013 100644
--- a/src/geode_msr.c
+++ b/src/geode_msr.c
@@ -6,6 +6,10 @@
 #include <errno.h>
 #include "os.h"
 #include "geode.h"
+#ifdef __FreeBSD__
+#define lseek64 lseek
+#define off64_t off_t
+#endif
 
 static int
 _msr_open(void)
_______________________________________________
Xorg-driver-geode mailing list
Xorg-driver-geode@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-geode

Reply via email to