123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- set -e
- program=libogg
- version=1.3.5
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://ftp.osuosl.org/pub/xiph/releases/ogg/$tarname
- description="
- File structure for the Ogg bitstream format.
- The libogg package contains the Ogg file structure. This is useful for
- creating (encoding) or playing (decoding) a single physical bit stream.
- "
- homepage=https://www.xiph.org/ogg/
- license="BSD-license inplementation of the public domain Ogg bitstream format"
- docs="AUTHORS CHANGES COPYING README.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure \
- CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" 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"
- }
|