# -*- 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 89399 2012-01-28 08:23:06Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-pyglet
version             1.1.4
categories          python
platforms           darwin
# uses carbon; apparently 1.2 will use cocoa
supported_archs     i386 ppc
maintainers         stromnov openmaintainer

description         A cross-platform windowing and multimedia library for Python.
long_description    ${description}

homepage            http://www.pyglet.org/
master_sites        googlecode:pyglet

distname            pyglet-${version}

checksums           md5     b2363642dc3832e95dc4e63a6793467f \
                    sha1    1c1fa4130b5e5b7aa9da2456b75742ae447d0315 \
                    rmd160  64a70d8a87ff056f4fc912fb9f4b32b3ea4cd262

if {$build_arch == "x86_64" || $build_arch == "ppc64"} {
    notes "Since MacPorts is configured to use the $build_arch architecture\
where possible and the current version of pyglet only works when built for\
32-bit archs, you will probably need to run python like this to use pyglet:
arch -${configure.build_arch} ${python.prefix}/Resources/Python.app/Contents/MacOS/Python"
}
