# -*- 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 90912 2012-03-18 06:29:36Z ryandesign@macports.org $

PortSystem          1.0

name                freeglut
version             2.8.0
revision            1
categories          x11 graphics
maintainers         jeremyhu openmaintainer
description         The Free OpenGL Utility Toolkit
long_description    ${description}

homepage            http://freeglut.sourceforge.net/

platforms           macosx darwin
master_sites        sourceforge:project/freeglut/freeglut/${version}

checksums           sha1    4debbe559c6c9841ce1abaddc9d461d17c6083b1 \
                    rmd160  c406a3a62f60ac876cda855afcb7242824ce99a5 \
                    sha256  197293ff886abe613bc9eb4a762d9161b0c9e64b3e8e613ed7c5e353974fba05

depends_lib         port:mesa \
                    port:xorg-libXrandr \
                    port:xorg-libXxf86vm

use_autoreconf yes
autoreconf.args -fvi

post-patch {
	reinplace "/SUBDIRS/s/progs//" ${worksrcpath}/Makefile.am
}

use_parallel_build yes
