void-packages/srcpkgs/libvpx/template
2013-03-24 16:49:10 +01:00

42 lines
1.2 KiB
Text

# Template file for 'libvpx'
pkgname=libvpx
version=1.1.0
revision=2
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"
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 ${_cross}
}
do_build() {
make ${makejobs}
}
do_install() {
make DIST_DIR=${DESTDIR}/usr install
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}