# $Id: Portfile,v 1.8 2005/04/21 15:58:16 jberry Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-vorbis
version			1.4
revision		1
categories		python audio
platforms		darwin
maintainers		mww@opendarwin.org
description		Python module for Ogg Vorbis audio encoding and decoding
long_description	${description}

homepage		http://www.andrewchatham.com/pyogg/
master_sites	${homepage}/download/
distname		pyvorbis-${version}
checksums		md5 b4921e792c0a74f75b9d3057df10ee7c
patchfiles		patch-pyvorbiscodec.c.diff \
				patch-pyvorbisfile.c.diff \
				patch-pyvorbisinfo.c.diff \
				patch-vorbismodule.c.diff \
				patch-vorbismodule.h.diff \
				patch-config_unix.py

depends_lib-append	lib:libvorbis:libvorbis \
				port:py-ogg

use_configure	yes
pre-configure	{
	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config_unix.py
}
configure.cmd	${python.bin} config_unix.py
configure.pre_args

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
		NEWS ${destroot}${prefix}/share/doc/${name}
}
