920e79368a
Enable TEXTURE option in dri by default [1]. This allows for OpenGL higher then 2.1 to be supported. Make sure we depend on llvm at run time when gallium is enabled. The gallium based modules link to the llvm shared libraries. [2] PR: followup on 194655 [2] Approved by: core@ [1] Obtained from: xorg-dev repo
36 lines
843 B
Makefile
36 lines
843 B
Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libGL
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= ${LIBGLREVISION}
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= OpenGL library that renders using GLX or DRI
|
|
|
|
LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \
|
|
libglapi.so:${PORTSDIR}/graphics/libglapi \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto:both \
|
|
presentproto xshmfence
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR}/bsd.mesalib.mk"
|
|
|
|
.if defined(WITH_NEW_MESA)
|
|
LIBGLREVISION= 0
|
|
.else
|
|
LIBGLREVISION= 4
|
|
.endif
|
|
|
|
.if !(${ARCH} == "amd64" || ${ARCH} == "i386")
|
|
CONFIGURE_ARGS+=--disable-gallium-intel
|
|
.endif
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/.mesa
|
|
@${MV} ${STAGEDIR}${PREFIX}/lib/libGL* \
|
|
${STAGEDIR}${PREFIX}/lib/.mesa/
|
|
|
|
.include <bsd.port.mk>
|