pure-audio is a digital audio interface for the Pure programming language.

It currently includes wrappers for PortAudio, FFTW3, libsndfile and
libsamplerate, as well as a realtime module which gives Pure scripts access
to realtime scheduling on systems which have a pthreads library with the
POSIX realtime threads extension.

WWW:	http://docs.pure-lang.googlecode.com/hg/pure-audio.html

PR:		ports/156291
Submitted by:	Zhihao Yuan <lichray at gmail.com>
This commit is contained in:
Martin Wilke 2011-07-02 07:11:53 +00:00
parent ccdc9513c8
commit 38a9d61e96
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276821
5 changed files with 67 additions and 0 deletions

View file

@ -613,6 +613,7 @@
SUBDIR += prokyon3
SUBDIR += puddletag
SUBDIR += pulseaudio
SUBDIR += pure-audio
SUBDIR += py-ao
SUBDIR += py-apetag
SUBDIR += py-cddb

46
audio/pure-audio/Makefile Normal file
View file

@ -0,0 +1,46 @@
# New ports collection makefile for: pure-gtk
# Date created: 2011-03-18
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-audio
PORTVERSION= 0.4
CATEGORIES= audio
MASTER_SITES= http://pure-lang.googlecode.com/files/
MAINTAINER= lichray@gmail.com
COMMENT= A digital audio interface for the Pure language
LIB_DEPENDS+= pure.7:${PORTSDIR}/lang/pure \
portaudio.2:${PORTSDIR}/audio/portaudio2 \
samplerate.1:${PORTSDIR}/audio/libsamplerate \
sndfile.1:${PORTSDIR}/audio/libsndfile \
fftw3:${PORTSDIR}/math/fftw3
#RUN_DEPENDS+= ${LOCALBASE}/lib/pure/ffi.pure:${PORTSDIR}/devel/pure-ffi
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GMAKE= yes
MAKE_ARGS+= prefix=${PREFIX} CPPFLAGS+=-I${LOCALBASE}/include LDFLAGS+=-L${LOCALBASE}/lib CFLAGS="${CFLAGS}"
post-patch:
${REINPLACE_CMD} \
-e "s|-lportaudio|-I${LOCALBASE}/include/portaudio2 -L${LOCALBASE}/lib/portaudio2 -lportaudio|" \
-e "s|portaudio.h|portaudio2/portaudio.h|g" \
${WRKSRC}/Makefile
PORTEXAMPLES= *
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
SHA256 (pure-audio-0.4.tar.gz) = f6d96436415805778fb138fb7efe7588c9460e4f5bf26b50e2ec9b73d2564d38
SIZE (pure-audio-0.4.tar.gz) = 38730

View file

@ -0,0 +1,7 @@
pure-audio is a digital audio interface for the Pure programming language.
It currently includes wrappers for PortAudio, FFTW3, libsndfile and
libsamplerate, as well as a realtime module which gives Pure scripts access
to realtime scheduling on systems which have a pthreads library with the
POSIX realtime threads extension.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-audio.html

View file

@ -0,0 +1,11 @@
lib/pure/audio.pure
lib/pure/audio.so
lib/pure/fftw.pure
lib/pure/fftw.so
lib/pure/portaudio.pure
lib/pure/realtime.pure
lib/pure/realtime.so
lib/pure/samplerate.pure
lib/pure/sfinfo.so
lib/pure/sndfile.pure
lib/pure/srcprocess.so