# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 PortGroup meson 1.0 github.setup anholt libepoxy 1.5.10 revision 0 license MIT permissive categories graphics maintainers nomaintainer platforms darwin description Epoxy is a library for handling OpenGL function \ pointer management for you long_description {*}${description} checksums rmd160 0c12937f3ab3645d4b1b96f29ffd2fb5ffc92712 \ sha256 b3e076c5bea209ffa7789cb460d76718be206ccad65a8c915757957c76318376 \ size 332119 # Yes, mesa and xorg-libX11 are *build* dependencies. The library will function correctly # if they are not present because it loads mesa dynamically only when GLX is used. When # OpenGL.framework is used, there is no need to have mesa at runtime. # # Clients of this library must link mesa directly and have it listed as their dependency # in order to use mesa with libepoxy. depends_build port:pkgconfig \ port:xorg-util-macros \ port:mesa \ port:xorg-libX11 patchfiles prefix.patch \ patch-src-gen_dispatch.py.diff # enable GLX support # without this any gtk3 +x11 app will fail on load as follows # dyld: Symbol not found: _epoxy_glXBindTexImageEXT # Referenced from: /opt/local/lib/libgdk-3.0.dylib # Expected in: /opt/local/lib/libepoxy.0.dylib # in /opt/local/lib/libgdk-3.0.dylib configure.args-append \ -Dglx=yes # https://trac.macports.org/ticket/64468 platform darwin 8 { configure.cflags-append -DCGLReleasePixelFormat=CGLDestroyPixelFormat configure.cflags-append -DCGLReleaseContext=CGLDestroyContext } set python_vers 3.10 depends_build-append port:python310 post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dispatch_common.c reinplace "s|@PYTHON3@|${prefix}/bin/python${python_vers}|g" ${worksrcpath}/src/gen_dispatch.py }