pkgsrc/graphics/libepoxy/Makefile

46 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.29 2020/04/06 17:14:44 jperkin Exp $
DISTNAME= libepoxy-1.5.4
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GITHUB:=anholt/}
libepoxy: Update to 1.5.3 Changes since 1.5.2: Disable EGL on macOS Fix build on macOS [#176, Emmanuele Bassi] Add macOS tests Fix build with uClibc [#181, Emmanuele Bassi] Fix GLES3 symbol lookup [Adam Jackson] Fix conditional compilation [#184, Zhao Zhili] Require Meson 0.47 Fix Autotools build with EGL-X11 support [#188, Emmanuele Bassi] Changes since 1.5.1: Fix the detection of the -z,relro linker flag Query the EGL context version when bootstrapping on GLES [Adam Jackson] Avoid inadvertedly loading libraries when probing for them [Adam Jackson] Issue #169: Fix build on FreeBSD [Ting-Wei Lan] Consistently use abort() instead of exit() for internal state checks Issue #171: Fix a performance regression in the global function pointer trampolines introduced by using -Bsymbolic-functions Improve performance when using GL function pointers like glAlphaFunc [Adam Jackson] Changes since 1.5.0: Do no add pkg-config dependencies on gl on systems that do not use pkg-config, like macOS and Windows [Tom Schoonjans, #156] Generalise checks for dlvsym [Ross Burton, #158] Add an option for disabling building the test suite [Ross Burton] Typo fixes in the comments and documentation [luz.paz, #159] Simplify the Meson configuration logic for EGL and GLX [Eric Engestrom, #162] Use assert when no context is found [Adam Jackson, #166] Remove a test superceded by GLVND [#165] Avoid Meson warnings when testing for linker arguments Changes from Epoxy 1.4.3 Bump the Meson dependency to 0.44.1 Include Xlib.h in the tests that use X11 API Update the GL registry to OpenGL 4.6 Add gl and egl private dependencies in the pkg-config file Allow building Epoxy without X11 support Rename the Meson configuration options to be more idiomatic New API: epoxy_set_resolver_failure_handler() epoxy_glsl_version() epoxy_extension_in_string() Issues fixed #128 - Fix macOS linker flags [Tom Schoonjans] #129 - Use GLVND if available [Adam Jackson] #134 - Add fallback definition for EGL_CAST [Daniel Stone] #133 - Try even harder to not load GLX [Adam Jackson] #138 - Fix the libOpenGL soname [Adam Jackson] #137 - Update differences with GLEW [Nigel Stewart] #131 - Add epoxy_set_resolver_failure_handler() [Adam Jackson] #140 - Fix pointer mismatch on Windows 10 [danem] #141 - Define visibility flags for static builds [Dylan Baker] #136 - Expose epoxy_extension_in_string() [Lyude Paul] #151 - Use correct guard for Android builds [Robert Bragg] #154 - Fix dlwrap for glvnd [Adam Jackson] #155 - Respect DLOPEN_LIBS [Michał Górny] #143 - Fix printf family usage [Ikey Doherty] #152 - Do not use OPENGL_LIB on Android #145 - Add epoxy_glsl_version()
2019-08-31 15:50:09 +02:00
GITHUB_RELEASE= ${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/anholt/libepoxy
COMMENT= Library for OpenGL function pointer management
LICENSE= mit
2015-04-13 15:54:17 +02:00
BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= epoxy.pc.in
libepoxy: Update to 1.5.3 Changes since 1.5.2: Disable EGL on macOS Fix build on macOS [#176, Emmanuele Bassi] Add macOS tests Fix build with uClibc [#181, Emmanuele Bassi] Fix GLES3 symbol lookup [Adam Jackson] Fix conditional compilation [#184, Zhao Zhili] Require Meson 0.47 Fix Autotools build with EGL-X11 support [#188, Emmanuele Bassi] Changes since 1.5.1: Fix the detection of the -z,relro linker flag Query the EGL context version when bootstrapping on GLES [Adam Jackson] Avoid inadvertedly loading libraries when probing for them [Adam Jackson] Issue #169: Fix build on FreeBSD [Ting-Wei Lan] Consistently use abort() instead of exit() for internal state checks Issue #171: Fix a performance regression in the global function pointer trampolines introduced by using -Bsymbolic-functions Improve performance when using GL function pointers like glAlphaFunc [Adam Jackson] Changes since 1.5.0: Do no add pkg-config dependencies on gl on systems that do not use pkg-config, like macOS and Windows [Tom Schoonjans, #156] Generalise checks for dlvsym [Ross Burton, #158] Add an option for disabling building the test suite [Ross Burton] Typo fixes in the comments and documentation [luz.paz, #159] Simplify the Meson configuration logic for EGL and GLX [Eric Engestrom, #162] Use assert when no context is found [Adam Jackson, #166] Remove a test superceded by GLVND [#165] Avoid Meson warnings when testing for linker arguments Changes from Epoxy 1.4.3 Bump the Meson dependency to 0.44.1 Include Xlib.h in the tests that use X11 API Update the GL registry to OpenGL 4.6 Add gl and egl private dependencies in the pkg-config file Allow building Epoxy without X11 support Rename the Meson configuration options to be more idiomatic New API: epoxy_set_resolver_failure_handler() epoxy_glsl_version() epoxy_extension_in_string() Issues fixed #128 - Fix macOS linker flags [Tom Schoonjans] #129 - Use GLVND if available [Adam Jackson] #134 - Add fallback definition for EGL_CAST [Daniel Stone] #133 - Try even harder to not load GLX [Adam Jackson] #138 - Fix the libOpenGL soname [Adam Jackson] #137 - Update differences with GLEW [Nigel Stewart] #131 - Add epoxy_set_resolver_failure_handler() [Adam Jackson] #140 - Fix pointer mismatch on Windows 10 [danem] #141 - Define visibility flags for static builds [Dylan Baker] #136 - Expose epoxy_extension_in_string() [Lyude Paul] #151 - Use correct guard for Android builds [Robert Bragg] #154 - Fix dlwrap for glvnd [Adam Jackson] #155 - Respect DLOPEN_LIBS [Michał Górny] #143 - Fix printf family usage [Ikey Doherty] #152 - Do not use OPENGL_LIB on Android #145 - Add epoxy_glsl_version()
2019-08-31 15:50:09 +02:00
PYTHON_FOR_BUILD_ONLY= tool
BUILDLINK_TRANSFORM.SunOS+= rm:-D_XOPEN_SOURCE
libepoxy: Update to 1.5.3 Changes since 1.5.2: Disable EGL on macOS Fix build on macOS [#176, Emmanuele Bassi] Add macOS tests Fix build with uClibc [#181, Emmanuele Bassi] Fix GLES3 symbol lookup [Adam Jackson] Fix conditional compilation [#184, Zhao Zhili] Require Meson 0.47 Fix Autotools build with EGL-X11 support [#188, Emmanuele Bassi] Changes since 1.5.1: Fix the detection of the -z,relro linker flag Query the EGL context version when bootstrapping on GLES [Adam Jackson] Avoid inadvertedly loading libraries when probing for them [Adam Jackson] Issue #169: Fix build on FreeBSD [Ting-Wei Lan] Consistently use abort() instead of exit() for internal state checks Issue #171: Fix a performance regression in the global function pointer trampolines introduced by using -Bsymbolic-functions Improve performance when using GL function pointers like glAlphaFunc [Adam Jackson] Changes since 1.5.0: Do no add pkg-config dependencies on gl on systems that do not use pkg-config, like macOS and Windows [Tom Schoonjans, #156] Generalise checks for dlvsym [Ross Burton, #158] Add an option for disabling building the test suite [Ross Burton] Typo fixes in the comments and documentation [luz.paz, #159] Simplify the Meson configuration logic for EGL and GLX [Eric Engestrom, #162] Use assert when no context is found [Adam Jackson, #166] Remove a test superceded by GLVND [#165] Avoid Meson warnings when testing for linker arguments Changes from Epoxy 1.4.3 Bump the Meson dependency to 0.44.1 Include Xlib.h in the tests that use X11 API Update the GL registry to OpenGL 4.6 Add gl and egl private dependencies in the pkg-config file Allow building Epoxy without X11 support Rename the Meson configuration options to be more idiomatic New API: epoxy_set_resolver_failure_handler() epoxy_glsl_version() epoxy_extension_in_string() Issues fixed #128 - Fix macOS linker flags [Tom Schoonjans] #129 - Use GLVND if available [Adam Jackson] #134 - Add fallback definition for EGL_CAST [Daniel Stone] #133 - Try even harder to not load GLX [Adam Jackson] #138 - Fix the libOpenGL soname [Adam Jackson] #137 - Update differences with GLEW [Nigel Stewart] #131 - Add epoxy_set_resolver_failure_handler() [Adam Jackson] #140 - Fix pointer mismatch on Windows 10 [danem] #141 - Define visibility flags for static builds [Dylan Baker] #136 - Expose epoxy_extension_in_string() [Lyude Paul] #151 - Use correct guard for Android builds [Robert Bragg] #154 - Fix dlwrap for glvnd [Adam Jackson] #155 - Respect DLOPEN_LIBS [Michał Górny] #143 - Fix printf family usage [Ikey Doherty] #152 - Do not use OPENGL_LIB on Android #145 - Add epoxy_glsl_version()
2019-08-31 15:50:09 +02:00
PLIST_VARS+= egl
2015-09-13 13:38:32 +02:00
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
. include "../../graphics/MesaLib/buildlink3.mk"
.else
MESON_ARGS+= -Dglx=no
.endif
libepoxy: Update to 1.5.3 Changes since 1.5.2: Disable EGL on macOS Fix build on macOS [#176, Emmanuele Bassi] Add macOS tests Fix build with uClibc [#181, Emmanuele Bassi] Fix GLES3 symbol lookup [Adam Jackson] Fix conditional compilation [#184, Zhao Zhili] Require Meson 0.47 Fix Autotools build with EGL-X11 support [#188, Emmanuele Bassi] Changes since 1.5.1: Fix the detection of the -z,relro linker flag Query the EGL context version when bootstrapping on GLES [Adam Jackson] Avoid inadvertedly loading libraries when probing for them [Adam Jackson] Issue #169: Fix build on FreeBSD [Ting-Wei Lan] Consistently use abort() instead of exit() for internal state checks Issue #171: Fix a performance regression in the global function pointer trampolines introduced by using -Bsymbolic-functions Improve performance when using GL function pointers like glAlphaFunc [Adam Jackson] Changes since 1.5.0: Do no add pkg-config dependencies on gl on systems that do not use pkg-config, like macOS and Windows [Tom Schoonjans, #156] Generalise checks for dlvsym [Ross Burton, #158] Add an option for disabling building the test suite [Ross Burton] Typo fixes in the comments and documentation [luz.paz, #159] Simplify the Meson configuration logic for EGL and GLX [Eric Engestrom, #162] Use assert when no context is found [Adam Jackson, #166] Remove a test superceded by GLVND [#165] Avoid Meson warnings when testing for linker arguments Changes from Epoxy 1.4.3 Bump the Meson dependency to 0.44.1 Include Xlib.h in the tests that use X11 API Update the GL registry to OpenGL 4.6 Add gl and egl private dependencies in the pkg-config file Allow building Epoxy without X11 support Rename the Meson configuration options to be more idiomatic New API: epoxy_set_resolver_failure_handler() epoxy_glsl_version() epoxy_extension_in_string() Issues fixed #128 - Fix macOS linker flags [Tom Schoonjans] #129 - Use GLVND if available [Adam Jackson] #134 - Add fallback definition for EGL_CAST [Daniel Stone] #133 - Try even harder to not load GLX [Adam Jackson] #138 - Fix the libOpenGL soname [Adam Jackson] #137 - Update differences with GLEW [Nigel Stewart] #131 - Add epoxy_set_resolver_failure_handler() [Adam Jackson] #140 - Fix pointer mismatch on Windows 10 [danem] #141 - Define visibility flags for static builds [Dylan Baker] #136 - Expose epoxy_extension_in_string() [Lyude Paul] #151 - Use correct guard for Android builds [Robert Bragg] #154 - Fix dlwrap for glvnd [Adam Jackson] #155 - Respect DLOPEN_LIBS [Michał Górny] #143 - Fix printf family usage [Ikey Doherty] #152 - Do not use OPENGL_LIB on Android #145 - Add epoxy_glsl_version()
2019-08-31 15:50:09 +02:00
.if !empty(MESALIB_SUPPORTS_EGL:M[Yy][Ee][Ss])
PLIST.egl= yes
MESON_ARGS+= -Degl=yes
.else
MESON_ARGS+= -Degl=no
libepoxy: Update to 1.5.3 Changes since 1.5.2: Disable EGL on macOS Fix build on macOS [#176, Emmanuele Bassi] Add macOS tests Fix build with uClibc [#181, Emmanuele Bassi] Fix GLES3 symbol lookup [Adam Jackson] Fix conditional compilation [#184, Zhao Zhili] Require Meson 0.47 Fix Autotools build with EGL-X11 support [#188, Emmanuele Bassi] Changes since 1.5.1: Fix the detection of the -z,relro linker flag Query the EGL context version when bootstrapping on GLES [Adam Jackson] Avoid inadvertedly loading libraries when probing for them [Adam Jackson] Issue #169: Fix build on FreeBSD [Ting-Wei Lan] Consistently use abort() instead of exit() for internal state checks Issue #171: Fix a performance regression in the global function pointer trampolines introduced by using -Bsymbolic-functions Improve performance when using GL function pointers like glAlphaFunc [Adam Jackson] Changes since 1.5.0: Do no add pkg-config dependencies on gl on systems that do not use pkg-config, like macOS and Windows [Tom Schoonjans, #156] Generalise checks for dlvsym [Ross Burton, #158] Add an option for disabling building the test suite [Ross Burton] Typo fixes in the comments and documentation [luz.paz, #159] Simplify the Meson configuration logic for EGL and GLX [Eric Engestrom, #162] Use assert when no context is found [Adam Jackson, #166] Remove a test superceded by GLVND [#165] Avoid Meson warnings when testing for linker arguments Changes from Epoxy 1.4.3 Bump the Meson dependency to 0.44.1 Include Xlib.h in the tests that use X11 API Update the GL registry to OpenGL 4.6 Add gl and egl private dependencies in the pkg-config file Allow building Epoxy without X11 support Rename the Meson configuration options to be more idiomatic New API: epoxy_set_resolver_failure_handler() epoxy_glsl_version() epoxy_extension_in_string() Issues fixed #128 - Fix macOS linker flags [Tom Schoonjans] #129 - Use GLVND if available [Adam Jackson] #134 - Add fallback definition for EGL_CAST [Daniel Stone] #133 - Try even harder to not load GLX [Adam Jackson] #138 - Fix the libOpenGL soname [Adam Jackson] #137 - Update differences with GLEW [Nigel Stewart] #131 - Add epoxy_set_resolver_failure_handler() [Adam Jackson] #140 - Fix pointer mismatch on Windows 10 [danem] #141 - Define visibility flags for static builds [Dylan Baker] #136 - Expose epoxy_extension_in_string() [Lyude Paul] #151 - Use correct guard for Android builds [Robert Bragg] #154 - Fix dlwrap for glvnd [Adam Jackson] #155 - Respect DLOPEN_LIBS [Michał Górny] #143 - Fix printf family usage [Ikey Doherty] #152 - Do not use OPENGL_LIB on Android #145 - Add epoxy_glsl_version()
2019-08-31 15:50:09 +02:00
.endif
.include "options.mk"
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/src
.include "../../devel/meson/build.mk"
.include "../../devel/xorg-util-macros/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"