forked from Lainports/freebsd-ports
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
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
# Created by: kwm@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libEGL
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= ${LIBEGL_REVISION}
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= OpenEGL library
|
|
|
|
LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
libdevq.so:${PORTSDIR}/devel/libdevq \
|
|
libdrm.so:${PORTSDIR}/graphics/libdrm
|
|
|
|
USE_XORG= x11 xau xcb xdmcp
|
|
|
|
# stuff not needed by libEGL but configure wants it
|
|
USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \
|
|
xshmfence
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
|
|
|
|
.if defined(WITH_NEW_MESA)
|
|
BUILD_WRKSRC= src/egl/drivers/dri2 src/egl/main
|
|
INSTALL_WRKSRC= src/egl/drivers/dri2 src/egl/main
|
|
.else
|
|
BUILD_WRKSRC= ${WRKSRC}/src/egl
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/egl
|
|
.endif
|
|
|
|
.if defined(WITH_NEW_MESA)
|
|
LIBEGL_REVISION= 0
|
|
.else
|
|
LIBEGL_REVISION= 5
|
|
.endif
|
|
|
|
.if defined(WITH_NEW_MESA)
|
|
do-build: egl-do-build
|
|
do-install: egl-do-install
|
|
|
|
egl-do-build:
|
|
. for dir in ${BUILD_WRKSRC}
|
|
@(cd ${WRKSRC}/${dir}; ${DO_MAKE_BUILD} ${ALL_TARGET};)
|
|
. endfor
|
|
|
|
egl-do-install:
|
|
. for dir in ${INSTALL_WRKSRC}
|
|
@(cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
|
|
. endfor
|
|
.endif
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/.mesa
|
|
@${MV} ${STAGEDIR}${PREFIX}/lib/libEGL* \
|
|
${STAGEDIR}${PREFIX}/lib/.mesa/
|
|
|
|
.include <bsd.port.mk>
|