diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2019-08-11 21:19:36 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2019-08-11 21:19:36 +0200 |
commit | 355a846ceffbb41b449b65f221895446670eabc3 (patch) | |
tree | a0867743eccd85327cbeef621e84a9e6872ff1b8 /graphics | |
parent | 88fdb971690c14c7a0fce6d6443c6238df82a88b (diff) |
initial libepoxy
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libepoxy/Makefile | 35 | ||||
-rw-r--r-- | graphics/libepoxy/distinfo | 2 | ||||
-rw-r--r-- | graphics/libepoxy/patches/patch-meson_build | 19 | ||||
-rw-r--r-- | graphics/libepoxy/patches/patch-src_dispatch_common_c | 25 | ||||
-rw-r--r-- | graphics/libepoxy/patches/patch-src_meson_build | 14 | ||||
-rw-r--r-- | graphics/libepoxy/pkg/DESCR | 2 | ||||
-rw-r--r-- | graphics/libepoxy/pkg/PLIST | 13 |
7 files changed, 110 insertions, 0 deletions
diff --git a/graphics/libepoxy/Makefile b/graphics/libepoxy/Makefile new file mode 100644 index 0000000..e24f9f4 --- /dev/null +++ b/graphics/libepoxy/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile.template,v 1.83 2019/07/02 12:03:14 sthen Exp $ +COMMENT = library for handling OpenGL function pointer management + +V=1.5.2 +DISTNAME = libexpoxy-${V} + +GH_ACCOUNT = anholt +GH_PROJECT = libepoxy +GH_TAGNAME = ${V} + +SHARED_LIBS += libepoxy 3.0 + +CATEGORIES = graphics + +HOMEPAGE = https://github.com/anholt/libepoxy + +MAINTAINER = xenocara@openbsd.org + +# MIT +PERMIT_PACKAGE = Yes + +#WANTLIB = ??? + +MODULES = devel/meson \ + lang/python + +BUILD_DEPENDS = x11/libX11 \ + graphics/mesa + +CONFIGURE_ENV += CPPFLAGS="-I$(LOCALBASE)/include" + +pipo: + @echo ${CONFIGURE_ENV} + +.include <bsd.port.mk> diff --git a/graphics/libepoxy/distinfo b/graphics/libepoxy/distinfo new file mode 100644 index 0000000..d62a6ef --- /dev/null +++ b/graphics/libepoxy/distinfo @@ -0,0 +1,2 @@ +SHA256 (libexpoxy-1.5.2.tar.gz) = H/w//gVn+Yb/VzHU7zo3ZeCk+dZC//2uMDNiVn7s1ok= +SIZE (libexpoxy-1.5.2.tar.gz) = 324905 diff --git a/graphics/libepoxy/patches/patch-meson_build b/graphics/libepoxy/patches/patch-meson_build new file mode 100644 index 0000000..36c8ac0 --- /dev/null +++ b/graphics/libepoxy/patches/patch-meson_build @@ -0,0 +1,19 @@ +$OpenBSD$ + +Index: meson.build +--- meson.build.orig ++++ meson.build +@@ -12,6 +12,13 @@ epoxy_major_version = epoxy_version[0].to_int() + epoxy_minor_version = epoxy_version[1].to_int() + epoxy_micro_version = epoxy_version[2].to_int() + ++libepoxy_lt_c=0 ++libepoxy_lt_r=0 ++libepoxy_lt_a=0 ++ ++libepoxy_so_version = '@0@.@1@.@2@'.format((libepoxy_lt_c - libepoxy_lt_a), ++ libepoxy_lt_a, libepoxy_lt_r) ++ + epoxy_prefix = get_option('prefix') + epoxy_libdir = join_paths(epoxy_prefix, get_option('libdir')) + epoxy_datadir = join_paths(epoxy_prefix, get_option('datadir')) diff --git a/graphics/libepoxy/patches/patch-src_dispatch_common_c b/graphics/libepoxy/patches/patch-src_dispatch_common_c new file mode 100644 index 0000000..0d5fd02 --- /dev/null +++ b/graphics/libepoxy/patches/patch-src_dispatch_common_c @@ -0,0 +1,25 @@ +$OpenBSD$ + +Index: src/dispatch_common.c +--- src/dispatch_common.c.orig ++++ src/dispatch_common.c +@@ -178,6 +178,8 @@ + #define OPENGL_LIB "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" + #elif defined(__ANDROID__) + #define GLX_LIB "libGLESv2.so" ++#elif defined(__OpenBSD__) ++#define GLX_LIB "libGL.so" + #else + #define GLVND_GLX_LIB "libGLX.so.1" + #define GLX_LIB "libGL.so.1" +@@ -308,8 +310,10 @@ get_dlopen_handle(void **handle, const char *lib_name, + pthread_mutex_lock(&api.mutex); + if (!*handle) { + int flags = RTLD_LAZY | RTLD_LOCAL; ++#ifndef __OpenBSD__ + if (!load) + flags |= RTLD_NOLOAD; ++#endif + + *handle = dlopen(lib_name, flags); + if (!*handle) { diff --git a/graphics/libepoxy/patches/patch-src_meson_build b/graphics/libepoxy/patches/patch-src_meson_build new file mode 100644 index 0000000..8dafeb0 --- /dev/null +++ b/graphics/libepoxy/patches/patch-src_meson_build @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: src/meson.build +--- src/meson.build.orig ++++ src/meson.build +@@ -70,7 +70,7 @@ endif + libepoxy = library( + 'epoxy', + sources: epoxy_sources + epoxy_headers, +- version: '0.0.0', ++ version: libepoxy_so_version, + install: true, + dependencies: epoxy_deps, + include_directories: libepoxy_inc, diff --git a/graphics/libepoxy/pkg/DESCR b/graphics/libepoxy/pkg/DESCR new file mode 100644 index 0000000..8f27085 --- /dev/null +++ b/graphics/libepoxy/pkg/DESCR @@ -0,0 +1,2 @@ +Epoxy is a library for handling OpenGL function pointer management for +you. diff --git a/graphics/libepoxy/pkg/PLIST b/graphics/libepoxy/pkg/PLIST new file mode 100644 index 0000000..f9f4a43 --- /dev/null +++ b/graphics/libepoxy/pkg/PLIST @@ -0,0 +1,13 @@ +@comment $OpenBSD: PLIST,v$ +include/epoxy/ +include/epoxy/common.h +include/epoxy/egl.h +include/epoxy/egl_generated.h +include/epoxy/gl.h +include/epoxy/gl_generated.h +include/epoxy/glx.h +include/epoxy/glx_generated.h +lib/libepoxy.so +lib/libepoxy.so.0 +@bin lib/libepoxy.so.0.0.0 +lib/pkgconfig/epoxy.pc |