# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-ogg
version			1.3
revision		1
categories-append	audio multimedia
license			LGPL-2
platforms		darwin
maintainers		nomaintainer
description		Python module for the ogg multimedia interface
long_description	py-ogg is an interface to the ogg multimedia standard. \
				You cant do much with this module on its own, you will \
				also need specific Python modules for audio, etc.

homepage		http://ekyo.nerim.net/software/pyogg/
master_sites	${homepage}
distname		pyogg-${version}
checksums		md5 45a4ecc4d0600661199e4040a81ea3fe

python.versions	24

if {${name} ne ${subport}} {
    depends_lib-append	lib:libogg:libogg
    
    patchfiles		patch-src__oggmodule.c \
                    patch-src__oggmodule.h
    
    use_configure	yes
    configure.cmd	${python.bin} config_unix.py
    configure.pre_args	--prefix ${prefix}
    
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
            NEWS ${destroot}${prefix}/share/doc/${subport}
    }
}
