freebsd-ports/graphics/libglesv2/Makefile
Koop Mast 920e79368a Update to 10.3.4.
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
2014-11-27 14:48:48 +00:00

48 lines
1.1 KiB
Makefile

# Created by: kwm@FreeBSD.org
# $FreeBSD$
PORTNAME= libglesv2
PORTVERSION= ${MESAVERSION}
PORTREVISION= ${LIBGLES_REVISION}
CATEGORIES= graphics
COMMENT= OpenGL ES v2 library
LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \
libglapi.so:${PORTSDIR}/graphics/libglapi \
libexpat.so:${PORTSDIR}/textproc/expat2
# stuff not needed by libglesv2 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)
LIBGLES_REVISION= 0
.else
LIBGLES_REVISION= 4
.endif
.if defined(WITH_NEW_MESA)
BUILD_WRKSRC= ${WRKSRC}/src/mapi
INSTALL_WRKSRC= ${WRKSRC}/src/mapi
.else
BUILD_WRKSRC= ${WRKSRC}/src/mapi/es2api
INSTALL_WRKSRC= ${WRKSRC}/src/mapi/es2api
.endif
.if !defined(WITH_NEW_MESA)
pre-build:
@cd ${WRKSRC}/src/mapi/shared-glapi && ${MAKE_CMD} ${_MAKE_JOBS}
.endif
post-install:
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/.mesa
@${MV} ${STAGEDIR}${PREFIX}/lib/libGLESv2.so* \
${STAGEDIR}${PREFIX}/lib/.mesa/
.include <bsd.port.mk>