Skip to content

Instantly share code, notes, and snippets.

@danmichaelo
Created January 22, 2012 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmichaelo/1658983 to your computer and use it in GitHub Desktop.
Save danmichaelo/1658983 to your computer and use it in GitHub Desktop.
Macports portfile for mesa 7.0.2 for use with XCrysDen
# -*- 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: Portfile 88129 2011-12-20 06:35:07Z jeremyhu@macports.org $
PortSystem 1.0
name mesa
epoch 1
version 7.0.2
categories x11 graphics
maintainers jeremyhu openmaintainer
# GLUT license isn't clear, but is intended to be a permissive license:
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=131997#71
license MIT Permissive
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/
distfiles MesaLib-${version}.tar.bz2 \
MesaGLUT-${version}.tar.bz2
worksrcdir Mesa-${version}
platforms macosx darwin
use_bzip2 yes
master_sites http://downloads.sourceforge.net/project/mesa3d/MesaLib/${version}/ \
http://downloads.sourceforge.net/project/mesa3d/MesaGLUT/${version}/
checksums MesaLib-7.0.2.tar.bz2 \
rmd160 3d471062b60889baef48a1a4596de6e32e1530cf \
sha256 9d4707b556960f6aef14480f91fcd4f868720f64321947ab1b2fd20e85ce7f9e \
MesaGLUT-7.0.2.tar.bz2 \
rmd160 7d088ae0708c979d2dacccee9ced0b99a673412f \
sha256 fa31ca39f00ff92c7da59d9993d0eefb8d901eb8a519743942e523fde120eb6c
depends_build bin:makedepend:makedepend \
bin:tclsh8.5:tcl
depends_lib port:xorg-glproto \
port:xorg-dri2proto \
port:xorg-libXfixes \
port:xorg-libXi \
port:xorg-libXmu
use_configure no
use_parallel_build no
build.target darwin darwin-static
build.args-append INSTALL_DIR=${prefix}
destroot.args-append INSTALL_DIR=${prefix}
variant universal {}
build.target darwin
variant python26 conflicts python27 description {Use python 2.6} {
depends_build-append \
port:py26-libxml2
build.args-append \
PYTHON2="${prefix}/bin/python2.6"
}
variant python27 conflicts python26 description {Use python 2.7} {
depends_build-append \
port:py27-libxml2
build.args-append \
PYTHON2="${prefix}/bin/python2.7"
}
if {![variant_isset python26] && ![variant_isset python27]} {
default_variants +python27
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment