void-packages/srcpkgs/libvpx/template

58 lines
1.5 KiB
Text

# Template file for 'libvpx'
pkgname=libvpx
version=1.1.0
revision=3
wrksrc="libvpx-v${version}"
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 [ "$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}
}
libvpx-devel_package() {
depends="libvpx>=$version"
short_desc="${short_desc} - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}
libvpx_package() {
pkg_install() {
vmove usr
}
}