# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup anholt libepoxy 1.3.1 v revision 3 license MIT permissive categories graphics maintainers devans openmaintainer platforms darwin description Epoxy is a library for handling OpenGL function \ pointer management for you long_description ${description} checksums rmd160 fc67ebfc18fe1209d23d8ef315cc9ab387731563 \ sha256 2c8155016e6bcf2ad604094ba84f0404edda3278dea851d6ce44830291eb885b # 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:autoconf \ port:automake \ port:libtool \ port:xorg-util-macros \ port:mesa \ port:xorg-libX11 patch.pre_args -p1 patchfiles \ prefix.patch \ 0001-select-platforms-based-on-configuration-results.patch \ 0002-add-an-option-to-disable-glx-support.patch \ 0003-Make-enable-glx-actually-work-on-OSX-and-Windows.patch \ 0004-darwin-Use-GLX-instead-of-OpenGL.framework-if-it-is-.patch # https://trac.macports.org/ticket/51911 # https://github.com/anholt/libepoxy/issues/72 # https://github.com/yaronct/libepoxy/commit/b3b8bd9af7bf1fcfe544fd131f4d4f0d117ae7bc # https://github.com/anholt/libepoxy/pull/84 patchfiles-append fix-epoxy-glx-version-if-glx-not-active.patch \ fix-epoxy-extension-in-string-when-extension-list-is-null.patch post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dispatch_common.c } configure.cmd ./autogen.sh configure.args \ --disable-silent-rules \ --enable-glx variant python27 conflicts python34 python35 description {build with python 2.7} { depends_lib-append port:python27 configure.python ${prefix}/bin/python2.7 } variant python34 conflicts python27 python35 description {build with python 3.4} { depends_lib-append port:python34 configure.python ${prefix}/bin/python3.4 } variant python35 conflicts python27 python34 description {build with python 3.5} { depends_lib-append port:python35 configure.python ${prefix}/bin/python3.5 } if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python35]} { default_variants-append +python34 }