Date: Fri, 30 Mar 2007 12:26:06 GMT From: Carl Johan Gustavsson<cjg@bsdmail.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/111032: New port: audio/py-speex Python bindings for the Speex encoding/decoding codec Message-ID: <200703301226.l2UCQ6cE069879@www.freebsd.org> Resent-Message-ID: <200703301240.l2UCe4OQ002080@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111032 >Category: ports >Synopsis: New port: audio/py-speex Python bindings for the Speex encoding/decoding codec >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 30 12:40:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Carl Johan Gustavsson >Release: FreeBSD 6.2-STABLE (i386) >Organization: - >Environment: - >Description: This is a port which provides Python bindings for the Speex codec. http://www.freenet.org.nz/python/pySpeex/ >How-To-Repeat: - >Fix: Shell archive attached. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-speex # py-speex/Makefile # py-speex/pkg-descr # py-speex/distinfo # py-speex/files # py-speex/files/patch-setup.py # py-speex/files/patch-speex.pyx # echo c - py-speex mkdir -p py-speex > /dev/null 2>&1 echo x - py-speex/Makefile sed 's/^X//' >py-speex/Makefile << 'END-of-py-speex/Makefile' X# New ports collection makefile for: py-speex X# Date created: 3 March 2007 X# Whom: Carl Johan Gustavsson <cjg@bsdmail.org> X# X# $FreeBSD$ X# X XPORTNAME= speex XPORTVERSION= 0.2 XCATEGORIES= audio python XMASTER_SITES= http://www.freenet.org.nz/python/pySpeex/ XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTNAME= pySpeex-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XDIST_SUBDIR= python X XMAINTAINER= cjg@bsdmail.org XCOMMENT= Python bindings for the Speex compressor/decompressor audio codec X XBUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex XLIB_DEPENDS= speex.1:${PORTSDIR}/audio/speex X XPLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/speex.so XUSE_PYTHON= yes XUSE_PYDISTUTILS=yes X Xpost-patch: X @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ X ${WRKSRC}/setup.py X X.include <bsd.port.mk> END-of-py-speex/Makefile echo x - py-speex/pkg-descr sed 's/^X//' >py-speex/pkg-descr << 'END-of-py-speex/pkg-descr' Xpy-speex is a Python module that provides bindings for the Speex audio Xcompressor/decompressor codec. X XWWW: http://www.freenet.org.nz/python/pySpeex/ END-of-py-speex/pkg-descr echo x - py-speex/distinfo sed 's/^X//' >py-speex/distinfo << 'END-of-py-speex/distinfo' XMD5 (python/pySpeex-0.2.tar.gz) = 5f6837cd74568fb58bb15d43fe2406ea XSHA256 (python/pySpeex-0.2.tar.gz) = aca41ca9650765b58de0e1c0a6676658564a8009dd544aeec08087f6c3dc6bd6 XSIZE (python/pySpeex-0.2.tar.gz) = 17665 END-of-py-speex/distinfo echo c - py-speex/files mkdir -p py-speex/files > /dev/null 2>&1 echo x - py-speex/files/patch-setup.py sed 's/^X//' >py-speex/files/patch-setup.py << 'END-of-py-speex/files/patch-setup.py' X--- setup.py.orig Sun Oct 30 13:10:14 2005 X+++ setup.py Sat Mar 3 00:40:44 2007 X@@ -5,9 +5,9 @@ X from distutils.core import setup, Extension X from Pyrex.Distutils import build_ext X X-incDirs = ['../libspeex', '/usr/include/speex', '/usr/local/include/speex'] X+incDirs = ['%%LOCALBASE%%/include', '%%LOCALBASE%%/include/speex'] X libs = [] X-libDirs = [] X+libDirs = ['%%LOCALBASE%%/lib'] X runtimeLibDirs = [] X cMacros = [] X #extraLinkArgs = ['-g', '/usr/lib/libspeex.a'] # static END-of-py-speex/files/patch-setup.py echo x - py-speex/files/patch-speex.pyx sed 's/^X//' >py-speex/files/patch-speex.pyx << 'END-of-py-speex/files/patch-speex.pyx' X--- speex.pyx.orig Sat Mar 3 00:32:39 2007 X+++ speex.pyx Sat Mar 3 00:33:01 2007 X@@ -365,7 +365,7 @@ X bufOut[bufOutSiz] = nBytes % 256 X bufOut[bufOutSiz+1] = nBytes / 256 X bufOutSiz = bufOutSiz + 2 X- memcpy(bufOut+bufOutSiz, cbits, nBytes) X+ memcpy(bufOut+bufOutSiz, <void *> cbits, nBytes) X # printf("ok5\n") X bufOutSiz = bufOutSiz + nBytes X # printf("ok6\n") X@@ -522,7 +522,7 @@ X X # Copy from float to short (16 bits) for output X for i from 0 <= i < self.encFramesPerBlock: X- decShorts1[i] = decFloats1[i] X+ decShorts1[i] = <short> decFloats1[i] X X self.decPhase = 0 # back to awaiting LSB of count header X self.decNumBytes = 0 END-of-py-speex/files/patch-speex.pyx exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703301226.l2UCQ6cE069879>