void-packages/srcpkgs/libvpx/template

55 lines
1.2 KiB
Plaintext
Raw Normal View History

# Template file for 'libvpx'
pkgname=libvpx
2014-03-18 22:15:33 +01:00
version=1.3.0
revision=1
wrksrc="${pkgname}-v${version}"
2013-03-24 16:41:58 +01:00
hostmakedepends="which perl yasm"
short_desc="The VP8 Codec"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-08-10 12:00:37 +02:00
homepage="http://www.webmproject.org"
license="BSD"
2013-03-24 16:49:10 +01:00
distfiles="http://webm.googlecode.com/files/${pkgname}-v${version}.tar.bz2"
2014-03-18 22:15:33 +01:00
checksum=d3dcc8d84af51c6c382b214397c62402e37a799e8ebcda6f4217aef0010451a9
2013-03-24 16:41:58 +01:00
do_configure() {
2013-04-03 12:14:41 +02:00
export LD="$CC" AS=
if [ "$CROSS_BUILD" ]; then
2013-03-24 16:41:58 +01:00
sed -e "s,generic-gnu,$XBPS_CROSS_TRIPLET," -i configure
_cross="--target=$XBPS_CROSS_TRIPLET"
fi
CFLAGS+=" -fPIC"
2013-03-24 16:41:58 +01:00
./configure --enable-vp8 --enable-runtime-cpu-detect --enable-shared \
--enable-postproc --enable-pic --disable-install-docs \
2013-03-30 12:26:23 +01:00
--disable-install-srcs --as=yasm ${_cross}
2013-03-24 16:41:58 +01:00
}
do_build() {
make ${makejobs}
}
do_install() {
make DIST_DIR=${DESTDIR}/usr install
2011-08-10 12:00:37 +02:00
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}
libvpx-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
}
}
libvpx-devel_package() {
depends="libvpx>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}