blob: 65da408de1a5826392418663aa2dbb3937bb9411 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: pkgsrc-dri,v 1.3 2008/07/30 00:27:55 dsainty Exp $
include $(TOP)/configs/pkgsrc
ifeq ($(USE_XCB), yes)
include $(TOP)/configs/xcb-defs
endif
CONFIG_NAME= pkgsrc-dri
DEFINES=\
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHZ=$(MESA_HZ) \
-DHAVE_ALIAS -D_REENTRANT $(XCB_DEFS)
CFLAGS+=\
$(WARN_FLAGS) -Wmissing-prototypes -Wall \
$(ASM_FLAGS) $(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) $(PTHREAD_STUBLIB) \
$(XCB_GL_LIB_DEPS)
SRC_DIRS= glx/x11 mesa glw
DRIVER_DIRS= dri
PROGRAM_DIRS= # defined
WINDOW_SYSTEM= dri
DRI_DIRS?= i810 i915 i965 mach64 mga r128 r200 \
r300 radeon tdfx unichrome savage sis
|