12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- set -e
- program=portaudio
- version=v190600_20161030
- release=3
- pkgcategory=libs
- tarname=pa_stable_${version}.tgz
- fetch=http://www.portaudio.com/archives/$tarname
- description="
- Portable real-time audio library.
- PortAudio is a free, cross-platform, open-source , audio I/O library.
- It lets you write simple audio programs in C or C++ that will compile
- and run on many platforms.
- "
- homepage=https://www.portaudio.com
- license=BSD
- docs="LICENSE.txt README.txt"
- docsdir="${docdir}/${program}-${version}"
- srcdir=portaudio
- jobs=1
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure \
- CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --docdir=$docsdir \
- --enable-cxx \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- strip --strip-unneeded \
- "${destdir}/usr/lib${libSuffix}"/*.so.?.* 2> /dev/null || true
- strip --strip-debug \
- "${destdir}/usr/lib${libSuffix}"/*.a 2> /dev/null || true
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|