2011-03-09 17:49:21 +01:00
|
|
|
# Template file for 'libvpx'
|
|
|
|
pkgname=libvpx
|
2014-01-05 11:58:11 +01:00
|
|
|
version=1.2.0
|
2014-01-19 11:31:41 +01:00
|
|
|
revision=2
|
2014-01-05 11:58:11 +01:00
|
|
|
wrksrc="${pkgname}-v${version}"
|
2013-03-24 16:41:58 +01:00
|
|
|
hostmakedepends="which perl yasm"
|
2014-01-05 11:58:11 +01:00
|
|
|
short_desc="The VP8 Codec"
|
2011-03-09 17:49:21 +01:00
|
|
|
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-01-05 11:58:11 +01:00
|
|
|
checksum=5ef0c650b2daa62085eb8105a7a4273f3e987db53c5ec97fd51d1b6511e5aa06
|
2011-03-09 17:49:21 +01:00
|
|
|
|
2013-03-24 16:41:58 +01:00
|
|
|
do_configure() {
|
2013-04-03 12:14:41 +02:00
|
|
|
export LD="$CC" AS=
|
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
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
|
2014-01-19 11:31:41 +01:00
|
|
|
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}
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2014-01-05 11:58:11 +01:00
|
|
|
libvpx-tools_package() {
|
|
|
|
short_desc+=" - tools"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libvpx-devel_package() {
|
2014-01-05 11:58:11 +01:00
|
|
|
depends="libvpx>=${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-01-05 11:58:11 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|