# SHORT DESC: Portable cross-platform Audio API # LONG DESC: PortAudio is a free, cross platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' that will compile and run on many platforms including Windows, Macintosh (8,9,X), Unix (OSS), SGI, and BeOS. PortAudio is intended to promote the exchange of audio synthesis software between developers on different platforms. PortAudio provides a very simple API for recording and/or playing sound using a simple callback function. # Things are very likely to change in a newer version of PortAudio, so we'll # just hard-code the versions we know about for now. if [ "${pkgver}" = "18.1" ]; then echo 'prefix = @prefix@' > Makefile.in.1 echo 'exec_prefix = @exec_prefix@' >> Makefile.in.1 echo 'libdir = @libdir@' >> Makefile.in.1 cat Makefile.in | fromdos | sed 's@$(PREFIX)/lib@$(libdir)@g;s@^install:.*@install:@' >> Makefile.in.1 mv Makefile.in.1 Makefile.in rm -f configure config.guess config.sub cp /usr/share/automake-*/config.guess . cp /usr/share/automake-*/config.sub . autoconf # Build the static library without any PIC parameters and save it. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" && \ make mkdir TMP cp lib/libportaudio.a TMP make clean CFLAGS="${CFLAGS} -fPIC -DPIC" export CFLAGS fi ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" && \ make || exit 1 if [ -f TMP/libportaudio.a ]; then rm -f lib/libportaudio.a cp TMP/libportaudio.a lib/ touch lib/libportaudio.a fi touch lib/libportaudio.so* make install || exit 1 |