summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/files/configs/pkgsrc-indirect
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-04-24 07:40:23 +0000
committerbjs <bjs@pkgsrc.org>2008-04-24 07:40:23 +0000
commit3527d68c0d3ab4ebf121662aa774c8ebdea22a44 (patch)
tree6bbfee0b0fe04d0a17958ecdce03609c4a7e5e16 /graphics/MesaLib/files/configs/pkgsrc-indirect
parentd0c791351eda81da61cb65d7995eeb5ae3aaf275 (diff)
downloadpkgsrc-3527d68c0d3ab4ebf121662aa774c8ebdea22a44.tar.gz
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This package brings with it support for the Direct Rendering Infrastructure (DRI) on NetBSD-current; the kernel DRM was committed approximately one year ago. Patches for NetBSD 4.0 are available in the mailing list archives (I think), but are _not supported_. Developers and other interested parties are encouraged to read the TODO file, as well as my remarks in options.mk. There is still a significant amount of work to be done. Users of NetBSD/i386 (-current) shouldn't have much trouble getting mainstream cards (Intel i915 and Radeon 9600- R430 are by far the most tested) to work. I have taken great pains to ensure that this works properly, but inevitably there will be problems--especially on heretofore untested (read: non-x86) hardware. Your questions, comments, problem reports, and of course bug fixes are welcome. NOTE: There are currently problems (on NetBSD, at least) linking some executables, e.g. compiz, due to unresolved symbols for libpthread functions. This is due to libX11's thread stubs, which should not be enabled on NetBSD >= 2.0; see the TODO For more information and the URL of an interim patch.
Diffstat (limited to 'graphics/MesaLib/files/configs/pkgsrc-indirect')
-rw-r--r--graphics/MesaLib/files/configs/pkgsrc-indirect39
1 files changed, 39 insertions, 0 deletions
diff --git a/graphics/MesaLib/files/configs/pkgsrc-indirect b/graphics/MesaLib/files/configs/pkgsrc-indirect
new file mode 100644
index 00000000000..fe5f8078a06
--- /dev/null
+++ b/graphics/MesaLib/files/configs/pkgsrc-indirect
@@ -0,0 +1,39 @@
+# $NetBSD: pkgsrc-indirect,v 1.1 2008/04/24 07:40:24 bjs Exp $
+
+include $(TOP)/configs/pkgsrc
+
+ifeq ($(USE_XCB), yes)
+include $(TOP)/configs/xcb-defs
+endif
+
+CONFIG_NAME= pkgsrc-indirect
+
+DEFINES=\
+ -DPTHREADS -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -D_REENTRANT \
+ $(XCB_DEFS)
+CFLAGS+=\
+ $(WARN_FLAGS) $(COPTS) -Wmissing-prototypes -Wall \
+ $(ASM_FLAGS) $(X11_INCLUDES) $(XCB_X11_INCLUDES)
+CXXFLAGS+=\
+ $(WARN_FLAGS) $(COPTS) -Wall $(ASM_FLAGS)
+
+ASM_SOURCES?= # defined
+
+LIBDRM_CFLAGS= `$(PKG_CONFIG) --cflags libdrm`
+LIBDRM_LIB= `$(PKG_CONFIG) --libs libdrm`
+#PCIACCESS_CFLAGS= `$(PKG_CONFIG) --cflags pciaccess`
+#PCIACCESS_LIBS= `$(PKG_CONFIG) --cflags pciaccess`
+
+DRI_LIB_DEPS?= -lm -lexpat $(LIBDRM_LIB)
+GL_LIB_DEPS=\
+ -lX11 -lXext -lXxf86vm -lXdamage \
+ -lXfixes -lm $(LIBDRM_LIB) \
+ $(XCB_GL_LIB_DEPS)
+
+SRC_DIRS= glx/x11 mesa glw
+DRIVER_DIRS= dri
+PROGRAM_DIRS= # defined
+WINDOW_SYSTEM= dri
+
+DRI_DIRS?= i810 i915 i915tex i965 mach64 mga r128 r200 \
+ r300 radeon tdfx unichrome savage sis