diff options
Diffstat (limited to 'graphics/libglesv2/Makefile')
-rw-r--r-- | graphics/libglesv2/Makefile | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/graphics/libglesv2/Makefile b/graphics/libglesv2/Makefile index 371e0d445db1..5f74dbf2144e 100644 --- a/graphics/libglesv2/Makefile +++ b/graphics/libglesv2/Makefile @@ -3,31 +3,42 @@ PORTNAME= libglesv2 PORTVERSION= ${MESAVERSION} -PORTREVISION= 2 +PORTREVISION= ${LIBGLES_REVISION} CATEGORIES= graphics COMMENT= OpenGL ES v2 library -BUILD_DEPENDS= expat>=0:${PORTSDIR}/textproc/expat2 LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \ - libglapi.so:${PORTSDIR}/graphics/libglapi + 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_XORG) -IGNORE= Please enable WITH_NEW_XORG, libglesv2 needs libdrm higher then 2.4.24 +.if defined(WITH_NEW_MESA) +LIBGLES_REVISION= 0 +.else +LIBGLES_REVISION= 3 .endif -# stuff not needed by libEGL but configure wants it -USE_XORG+= glproto dri2proto xext xdamage xfixes - - -BUILD_WKRSRC= ${WRKSRC}/src/mapi/es2api +.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 -# this library doesn't exist in Mesa 7.6 so use newer -WITH_NEW_XORG=yes +.if !defined(WITH_NEW_MESA) +pre-build: + @cd ${WRKSRC}/src/mapi/shared-glapi && ${MAKE_CMD} ${_MAKE_JOBS} +.else +post-install: + @${RM} ${STAGEDIR}/${PREFIX}/lib/libglapi* +.endif -.include <bsd.port.options.mk> -.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" .include <bsd.port.mk> |