Index: head/audio/py-speex/Makefile =================================================================== --- head/audio/py-speex/Makefile (revision 394846) +++ head/audio/py-speex/Makefile (revision 394847) @@ -1,26 +1,29 @@ # Created by: Carl Johan Gustavsson # $FreeBSD$ PORTNAME= speex PORTVERSION= 0.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio python MASTER_SITES= http://freenet.mcnabhosting.com/python/pySpeex/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= pySpeex-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} DIST_SUBDIR= python MAINTAINER= ports@FreeBSD.org COMMENT= Python bindings for the Speex compressor/decompressor audio codec BUILD_DEPENDS= pyrex>=0.9.6.2:${PORTSDIR}/devel/pyrex LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/setup.py + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/speex.so .include Index: head/audio/py-speex/files/patch-setup.py =================================================================== --- head/audio/py-speex/files/patch-setup.py (revision 394846) +++ head/audio/py-speex/files/patch-setup.py (revision 394847) @@ -1,14 +1,14 @@ ---- setup.py.orig Sun Oct 30 13:10:14 2005 -+++ setup.py Sat Mar 3 00:40:44 2007 -@@ -5,9 +5,9 @@ +--- setup.py.orig 2005-10-30 12:10:14 UTC ++++ setup.py +@@ -5,9 +5,9 @@ import sys from distutils.core import setup, Extension from Pyrex.Distutils import build_ext -incDirs = ['../libspeex', '/usr/include/speex', '/usr/local/include/speex'] +incDirs = ['%%LOCALBASE%%/include', '%%LOCALBASE%%/include/speex'] libs = [] -libDirs = [] +libDirs = ['%%LOCALBASE%%/lib'] runtimeLibDirs = [] cMacros = [] #extraLinkArgs = ['-g', '/usr/lib/libspeex.a'] # static Index: head/audio/py-speex/files/patch-speex.pyx =================================================================== --- head/audio/py-speex/files/patch-speex.pyx (revision 394846) +++ head/audio/py-speex/files/patch-speex.pyx (revision 394847) @@ -1,20 +1,20 @@ ---- speex.pyx.orig Sat Mar 3 00:32:39 2007 -+++ speex.pyx Sat Mar 3 00:33:01 2007 -@@ -365,7 +365,7 @@ +--- speex.pyx.orig 2003-11-24 05:29:33 UTC ++++ speex.pyx +@@ -365,7 +365,7 @@ cdef class new: bufOut[bufOutSiz] = nBytes % 256 bufOut[bufOutSiz+1] = nBytes / 256 bufOutSiz = bufOutSiz + 2 - memcpy(bufOut+bufOutSiz, cbits, nBytes) + memcpy(bufOut+bufOutSiz, cbits, nBytes) # printf("ok5\n") bufOutSiz = bufOutSiz + nBytes # printf("ok6\n") -@@ -522,7 +522,7 @@ +@@ -522,7 +522,7 @@ cdef class new: # Copy from float to short (16 bits) for output for i from 0 <= i < self.encFramesPerBlock: - decShorts1[i] = decFloats1[i] + decShorts1[i] = decFloats1[i] self.decPhase = 0 # back to awaiting LSB of count header self.decNumBytes = 0