diff --git a/graphics/libepoxy/Makefile b/graphics/libepoxy/Makefile index 774c28fb5dd8..221a78a8ca3e 100644 --- a/graphics/libepoxy/Makefile +++ b/graphics/libepoxy/Makefile @@ -1,10 +1,9 @@ # $FreeBSD$ PORTNAME= libepoxy -PORTVERSION= 1.3.1 -PORTREVISION= 1 -DISTVERSIONPREFIX= v +PORTVERSION= 1.4.3 CATEGORIES= graphics +MASTER_SITES= https://github.com/anholt/${PORTNAME}/releases/download/${PORTVERSION}/ MAINTAINER= x11@FreeBSD.org COMMENT= Library to handle OpenGL function pointer management @@ -12,13 +11,20 @@ COMMENT= Library to handle OpenGL function pointer management LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING -USE_GITHUB= yes -GH_ACCOUNT= anholt +USES= localbase meson pkgconfig python:3.3+,build tar:xz +USE_XORG= x11 +USE_GL= gl glesv2 +USE_LDCONFIG= yes -USES= autoreconf libtool pathfix pkgconfig python:build -USE_XORG= xorg-macros x11 -USE_GL= egl glesv2 -GNU_CONFIGURE= yes -INSTALL_TARGET= install-strip +OPTIONS_SUB= yes +OPTIONS_DEFINE= EGL +OPTIONS_DEFAULT=EGL + +OPTIONS_EXCLUDE_sparc64= EGL +OPTIONS_EXCLUDE_mips= EGL + +EGL_DESC= Build EGL support +EGL_USE= GL=egl +EGL_MESON_YES= enable-egl .include diff --git a/graphics/libepoxy/distinfo b/graphics/libepoxy/distinfo index 0d11208dc391..46e6d788755e 100644 --- a/graphics/libepoxy/distinfo +++ b/graphics/libepoxy/distinfo @@ -1,2 +1,3 @@ -SHA256 (anholt-libepoxy-v1.3.1_GH0.tar.gz) = 6700ddedffb827b42c72cce1e0be6fba67b678b19bf256e1b5efd3ea38cc2bb4 -SIZE (anholt-libepoxy-v1.3.1_GH0.tar.gz) = 284227 +TIMESTAMP = 1496777736 +SHA256 (libepoxy-1.4.3.tar.xz) = 0b808a06c9685a62fca34b680abb8bc7fb2fda074478e329b063c1f872b826f6 +SIZE (libepoxy-1.4.3.tar.xz) = 783624 diff --git a/graphics/libepoxy/files/patch-test_dlwrap.c b/graphics/libepoxy/files/patch-test_dlwrap.c new file mode 100644 index 000000000000..168db144fad2 --- /dev/null +++ b/graphics/libepoxy/files/patch-test_dlwrap.c @@ -0,0 +1,11 @@ +--- test/dlwrap.c.orig 2017-03-28 08:56:46 UTC ++++ test/dlwrap.c +@@ -34,6 +34,8 @@ + + /* dladdr is a glibc extension */ + #define _GNU_SOURCE ++/* FreeBSD needs this to make asprintf() and dlvsym() visible */ ++#define __BSD_VISIBLE 1 + #include + + #include diff --git a/graphics/libepoxy/pkg-plist b/graphics/libepoxy/pkg-plist index ddf324377937..ed3a2b596445 100644 --- a/graphics/libepoxy/pkg-plist +++ b/graphics/libepoxy/pkg-plist @@ -1,5 +1,6 @@ -include/epoxy/egl.h -include/epoxy/egl_generated.h +include/epoxy/common.h +%%EGL%%include/epoxy/egl.h +%%EGL%%include/epoxy/egl_generated.h include/epoxy/gl.h include/epoxy/gl_generated.h include/epoxy/glx.h