2015-12-20 05:31:01 -07:00
|
|
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.4 2015/12/20 12:31:01 jsg Exp $
|
2015-11-21 20:11:30 -07:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
SHARED_LIBS= EGL 1.0 gbm 0.0 glapi 0.1 GL 16.0 GLESv1_CM 1.0 GLESv2 1.0 \
|
|
|
|
OSMesa 9.0
|
|
|
|
|
|
|
|
DRI_DRIVERS= swrast
|
2015-12-20 05:31:01 -07:00
|
|
|
GALLIUM_DRIVERS= swrast
|
2015-11-21 20:11:30 -07:00
|
|
|
|
|
|
|
.if ${MACHINE} == i386 || ${MACHINE} == amd64
|
|
|
|
DRI_DRIVERS=swrast,radeon,r200,i915,i965
|
2015-12-20 05:31:01 -07:00
|
|
|
GALLIUM_DRIVERS=swrast,r300,r600
|
2015-11-21 20:11:30 -07:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE} == macppc || ${MACHINE} == sparc64
|
|
|
|
DRI_DRIVERS=swrast,radeon,r200
|
2015-12-20 05:31:01 -07:00
|
|
|
GALLIUM_DRIVERS=swrast,r300,r600
|
2015-11-21 20:11:30 -07:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-dri-drivers=${DRI_DRIVERS} \
|
|
|
|
--with-gallium-drivers=${GALLIUM_DRIVERS} \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-gallium-llvm \
|
|
|
|
--disable-llvm-shared-libs \
|
|
|
|
--enable-gles1 --enable-gles2 \
|
|
|
|
--enable-shared-glapi \
|
|
|
|
--enable-osmesa \
|
|
|
|
--enable-gbm \
|
2015-12-20 05:15:55 -07:00
|
|
|
--enable-texture-float \
|
2015-11-21 20:11:30 -07:00
|
|
|
--with-egl-platforms="x11,drm" \
|
|
|
|
--prefix=${X11BASE} \
|
|
|
|
--with-dri-driverdir=${X11BASE}/lib/modules/dri \
|
|
|
|
--with-dri-searchpath=${X11BASE}/lib/modules/dri
|
|
|
|
|
2015-11-26 12:05:49 -07:00
|
|
|
# The i965 driver uses the cmpxchg8b instruction
|
|
|
|
.if ${MACHINE} == i386
|
|
|
|
CONFIGURE_ARGS+= USER_CFLAGS="-march=i586" USER_CXXFLAGS="-march=i586"
|
|
|
|
.endif
|
|
|
|
|
2015-11-21 20:11:30 -07:00
|
|
|
depend:
|
|
|
|
.if !exists(${.OBJDIR}/src/util/format_srgb.c)
|
|
|
|
lndir -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.xorg.mk>
|