123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- set -e
- program=audiofile
- version=0.3.6
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://audiofile.68k.org/$tarname
- description="
- Audio file library.
- The Audio File Library is a C-based library for reading and writing
- audio files in many common formats.
- The Audio File Library provides a uniform API which abstracts away
- details of file formats and data formats. The same calls for opening
- a file, accessing and manipulating audio metadata (e.g. sample rate,
- sample format, textual information, MIDI parameters), and reading and
- writing sample data will work with any supported audio file format.
- The Audio File Library lets you work with audio data in whatever
- format is most convenient for you.
- "
- homepage=https://audiofile.68k.org
- license="LGPLv2.1, GPLv2+"
- docs="ACKNOWLEDGEMENTS AUTHORS COPYING* ChangeLog NEWS NOTES README TODO"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- cp -f "${worktree}/archive/common/config.guess" config.guess
- cp -f "${worktree}/archive/common/config.sub" config.sub
-
- while read -r line
- do
- patch -Np1 -i "${worktree}/patches/audiofile/${line}"
- done < "${worktree}/patches/audiofile/series"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" \
- LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-shared=yes \
- --enable-static=yes \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|