freebsd-ports/graphics/libEGL/Makefile
Jan Beich d178e0c8af Convert the rest to USE_GL
Tested by:	make describe (only touched ports)
Approved by:	portmgr blanket
2015-09-20 01:13:47 +00:00

36 lines
955 B
Makefile

# Created by: kwm@FreeBSD.org
# $FreeBSD$
PORTNAME= libEGL
PORTVERSION= ${MESAVERSION}
PORTREVISION= 0
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_GL= gbm
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/Makefile.common"
MESA_BUILD_WRKSRC= src/mapi src/gbm src/egl/drivers/dri2 src/egl/main
MESA_INSTALL_WRKSRC= src/egl/drivers/dri2 src/egl/main
.include "${.CURDIR}/../../graphics/libGL/Makefile.targets"
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/.mesa
@${MV} ${STAGEDIR}${PREFIX}/lib/libEGL* \
${STAGEDIR}${PREFIX}/lib/.mesa/
.include <bsd.port.mk>