mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Add py-speex 0.2, python bindings for the Speex compressor/decompressor
audio codec. PR: ports/111032 Submitted by: Carl Johan Gustavsson <cjg at bsdmail.org>
This commit is contained in:
parent
f17757b238
commit
891f50bfc0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188982
@ -510,6 +510,7 @@
|
||||
SUBDIR += py-ogg
|
||||
SUBDIR += py-openal
|
||||
SUBDIR += py-sdl_mixer
|
||||
SUBDIR += py-speex
|
||||
SUBDIR += py-taglib
|
||||
SUBDIR += py-tagpy
|
||||
SUBDIR += py-vorbis
|
||||
|
30
audio/py-speex/Makefile
Normal file
30
audio/py-speex/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# New ports collection makefile for: py-speex
|
||||
# Date created: 3 March 2007
|
||||
# Whom: Carl Johan Gustavsson <cjg@bsdmail.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= speex
|
||||
PORTVERSION= 0.2
|
||||
CATEGORIES= audio python
|
||||
MASTER_SITES= http://www.freenet.org.nz/python/pySpeex/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= pySpeex-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
||||
DIST_SUBDIR= python
|
||||
|
||||
MAINTAINER= cjg@bsdmail.org
|
||||
COMMENT= Python bindings for the Speex compressor/decompressor audio codec
|
||||
|
||||
BUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex
|
||||
LIB_DEPENDS= speex.1:${PORTSDIR}/audio/speex
|
||||
|
||||
PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/speex.so
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS=yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
3
audio/py-speex/distinfo
Normal file
3
audio/py-speex/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (python/pySpeex-0.2.tar.gz) = 5f6837cd74568fb58bb15d43fe2406ea
|
||||
SHA256 (python/pySpeex-0.2.tar.gz) = aca41ca9650765b58de0e1c0a6676658564a8009dd544aeec08087f6c3dc6bd6
|
||||
SIZE (python/pySpeex-0.2.tar.gz) = 17665
|
14
audio/py-speex/files/patch-setup.py
Normal file
14
audio/py-speex/files/patch-setup.py
Normal file
@ -0,0 +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 @@
|
||||
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
|
20
audio/py-speex/files/patch-speex.pyx
Normal file
20
audio/py-speex/files/patch-speex.pyx
Normal file
@ -0,0 +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 @@
|
||||
bufOut[bufOutSiz] = nBytes % 256
|
||||
bufOut[bufOutSiz+1] = nBytes / 256
|
||||
bufOutSiz = bufOutSiz + 2
|
||||
- memcpy(bufOut+bufOutSiz, cbits, nBytes)
|
||||
+ memcpy(bufOut+bufOutSiz, <void *> cbits, nBytes)
|
||||
# printf("ok5\n")
|
||||
bufOutSiz = bufOutSiz + nBytes
|
||||
# printf("ok6\n")
|
||||
@@ -522,7 +522,7 @@
|
||||
|
||||
# Copy from float to short (16 bits) for output
|
||||
for i from 0 <= i < self.encFramesPerBlock:
|
||||
- decShorts1[i] = decFloats1[i]
|
||||
+ decShorts1[i] = <short> decFloats1[i]
|
||||
|
||||
self.decPhase = 0 # back to awaiting LSB of count header
|
||||
self.decNumBytes = 0
|
4
audio/py-speex/pkg-descr
Normal file
4
audio/py-speex/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
py-speex is a Python module that provides bindings for the Speex audio
|
||||
compressor/decompressor codec.
|
||||
|
||||
WWW: http://www.freenet.org.nz/python/pySpeex/
|
Loading…
Reference in New Issue
Block a user