1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

Update libepoxy to 1.4.3.

* Switch to meson build system
* This release makes EGL support switchable. Make it a option and
  disable it on mips and sparc64, due to not having libEGL in mesa-libs.
This commit is contained in:
Koop Mast 2017-06-14 12:04:11 +00:00
parent 8c2ee9cda2
commit 14394a78e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=443565
4 changed files with 33 additions and 14 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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 <dlfcn.h>
#include <stdbool.h>

View File

@ -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