FreeBSD Bugzilla – Attachment 77077 Details for
Bug 111032
New port: audio/py-speex Python bindings for the Speex encoding/decoding codec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 3.70 KB, created by
Carl Johan Gustavsson
on 2007-03-30 13:40:03 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Carl Johan Gustavsson
Created:
2007-03-30 13:40:03 UTC
Size:
3.70 KB
patch
obsolete
># 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 111032
: 77077