void-packages/srcpkgs/libvpx/template
2013-04-03 14:24:29 +04:00

43 lines
1.3 KiB
Text

# Template file for 'libvpx'
pkgname=libvpx
version=1.1.0
revision=3
wrksrc="libvpx-v${version}"
subpackages="$pkgname-devel"
hostmakedepends="which perl yasm"
short_desc="The VP8 Codec SDK"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.webmproject.org"
license="BSD"
distfiles="http://webm.googlecode.com/files/${pkgname}-v${version}.tar.bz2"
checksum=9ce074cf4b3bcd9a49ff93e05485b71c273bfc3685a305e55a0e7fa51beb72c5
long_desc="
WebM is an open, royalty-free, media file format designed for the web.
WebM defines the file container structure, video and audio formats. WebM
files consist of video streams compressed with the VP8 video codec and audio
streams compressed with the Vorbis audio codec. The WebM file structure is
based on the Matroska container."
do_configure() {
export LD="$CC" AS=
if [ "$XBPS_CROSS_BUILD" ]; then
sed -e "s,generic-gnu,$XBPS_CROSS_TRIPLET," -i configure
_cross="--target=$XBPS_CROSS_TRIPLET"
fi
./configure --enable-vp8 --enable-runtime-cpu-detect --enable-shared \
--enable-postproc --enable-pic --disable-install-docs \
--disable-install-srcs --as=yasm ${_cross}
}
do_build() {
make ${makejobs}
}
do_install() {
make DIST_DIR=${DESTDIR}/usr install
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}