aboutsummaryrefslogtreecommitdiff
path: root/graphics/libEGL/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libEGL/Makefile')
-rw-r--r--graphics/libEGL/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics/libEGL/Makefile b/graphics/libEGL/Makefile
new file mode 100644
index 000000000000..2e023af81038
--- /dev/null
+++ b/graphics/libEGL/Makefile
@@ -0,0 +1,30 @@
+# Created by: kwm@FreeBSD.org
+# $FreeBSD$
+
+PORTNAME= libEGL
+PORTVERSION= ${MESAVERSION}
+CATEGORIES= graphics
+
+COMMENT= OpenEGL library
+
+LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs
+
+.if ! defined(WITH_NEW_XORG)
+IGNORE= Please enable WITH_NEW_XORG, libEGL needs libdrm higher then 2.4.24
+.endif
+
+USE_XORG= x11 xau xcb xdmcp
+
+# stuff not needed by libEGL but configure wants it
+USE_XORG+= glproto dri2proto xext xdamage xfixes
+LIB_DEPENDS+= libexpat.so:${PORTSDIR}/textproc/expat2 \
+ libdrm.so:${PORTSDIR}/graphics/libdrm
+
+BUILD_WKRSRC= ${WRKSRC}/src/egl
+INSTALL_WRKSRC= ${WRKSRC}/src/egl
+
+WITH_NEW_XORG= yes
+
+.include <bsd.port.options.mk>
+.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
+.include <bsd.port.mk>