# -*- 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
github.setup anholt libepoxy 1.5.2
maintainers {devans @dbevans} openmaintainer
description Epoxy is a library for handling OpenGL function \
pointer management for you
long_description ${description}
checksums rmd160 3be0e73e39436404f8a26b768fc8c8664686b3c9 \
sha256 91324fe0ab35ed25a891a69ba8a00e9f54fef61f02334b86e5ad7c9f2022a89f \
# 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 \
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dispatch_common.c
configure.cmd ./autogen.sh
configure.args --disable-silent-rules \
variant python27 conflicts python36 description {build with python 2.7} {
depends_build-append port:python27
configure.python ${prefix}/bin/python2.7
variant python36 conflicts python27 description {build with python 3.6} {
depends_build-append port:python36
configure.python ${prefix}/bin/python3.6
if {![variant_isset python27]} {
default_variants-append +python36