# -*- 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 compiler_blacklist_versions 1.0 name mesa epoch 1 version 12.0.1 revision 1 categories x11 graphics maintainers jeremyhu openmaintainer license MIT license_noconflict py26-libxml2 py27-libxml2 description Mesa 3D Graphics Library long_description Mesa is an open-source implementation of the OpenGL specification, a system for rendering interactive 3D graphics. homepage http://mesa3d.sourceforge.net/ platforms macosx darwin use_xz yes master_sites ftp://ftp.freedesktop.org/pub/mesa/${version}/ fetch.use_epsv no checksums sha1 c1f84352bb02af837c9853981c985b000ba4f799 \ rmd160 505d13d922a77dfe739bc3aca699f141ad248f6b \ sha256 bab24fb79f78c876073527f515ed871fc9c81d816f66c8a0b051d8d653896389 depends_build port:pkgconfig \ port:flex \ port:bison \ port:indent depends_lib port:xorg-glproto \ port:xorg-dri2proto \ port:xorg-libxcb \ port:xorg-libX11 \ port:xorg-libXext \ port:xorg-libXdamage \ port:xorg-libXfixes \ port:xorg-libXi \ port:xorg-libXmu \ port:xorg-libXxf86vm patch.pre_args -p1 patchfiles \ 0001-mesa-Deal-with-size-differences-between-GLuint-and-G.patch \ 0002-applegl-Provide-requirements-of-_SET_DrawBuffers.patch \ 0003-glext.h-Add-missing-include-of-stddef.h-for-ptrdiff_.patch if {[string match *gcc* ${configure.compiler}]} { # Older gcc fail to do -Werror=missing-prototypes correctly # https://trac.macports.org/ticket/46827 patchfiles-append no-missing-prototypes-error.patch } use_autoreconf yes autoreconf.args -fvi configure.args \ --disable-silent-rules \ --disable-egl \ --disable-osmesa \ --with-gallium-drivers= configure.env-append \ INDENT=${prefix}/bin/gnuindent # This project is affected by a bug in Apple's gcc driver driver that I fixed in the apple-gcc42 port. # Use that or clang. compiler.blacklist gcc-3.3 gcc-4.0 gcc-4.2 llvm-gcc-4.2 {clang < 100} platform darwin { if {${os.major} < 11} { # https://bugs.freedesktop.org/show_bug.cgi?id=89088 configure.env-append INDENT=cat patchfiles-append static-strndup.patch } if { ![file exists /usr/include/Xplugin.h] } { # Xplugin.h is missing on Tiger configure.cppflags-append -I${filespath}/include } pre-configure { if { ![file exists /usr/lib/libXplugin.dylib] } { ui_error "Detected a problem with your development environment. Please work around it by executing:" ui_error "sudo ln -s libXplugin.1.dylib /usr/lib/libXplugin.dylib" return -code error "missing libXplugin.dylib" } } } configure.cppflags-delete -I${prefix}/include variant python26 conflicts python27 description {Use python 2.6} { depends_build-append \ port:py26-libxml2 configure.env-append \ PYTHON2="${prefix}/bin/python2.6" } variant python27 conflicts python26 description {Use python 2.7} { depends_build-append \ port:py27-libxml2 configure.env-append \ PYTHON2="${prefix}/bin/python2.7" } if {![variant_isset python26] && ![variant_isset python27]} { default_variants-append +python27 } variant osmesa description {enable OSMesa library} { configure.args-delete --disable-osmesa configure.args-append --enable-osmesa } default_variants-append +osmesa #variant openvg description {enable support for OpenVG API} { # configure.args-delete --disable-egl --disable-openvg # configure.args-append --enable-egl --enable-openvg #} #default_variants-append +openvg livecheck.type regex livecheck.url http://www.mesa3d.org/ livecheck.regex {relnotes/([0-9.]+)\.html}