libvpx: cross build and dbg support.

This commit is contained in:
Juan RP 2013-03-24 16:41:58 +01:00
parent 964bfa0841
commit f275b602cd
2 changed files with 23 additions and 10 deletions

View File

@ -2,9 +2,6 @@
#
depends="libvpx>=$version"
short_desc="${short_desc} - development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
do_install() {
vmove usr/include usr

View File

@ -1,15 +1,11 @@
# Template file for 'libvpx'
pkgname=libvpx
version=1.1.0
revision=2
wrksrc="libvpx-v${version}"
distfiles="http://webm.googlecode.com/files/${pkgname}-v${version}.tar.bz2"
subpackages="$pkgname-devel"
build_style=configure
configure_args="--enable-vp8 --enable-runtime-cpu-detect --enable-shared
--enable-postproc --enable-pic --disable-install-docs --disable-install-srcs"
make_install_target="DIST_DIR=${XBPS_DESTDIR}/${pkgname}-${version}/usr install"
makedepends="which perl>=0 yasm"
revision=1
hostmakedepends="which perl yasm"
short_desc="The VP8 Codec SDK"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.webmproject.org"
@ -23,6 +19,26 @@ long_desc="
streams compressed with the Vorbis audio codec. The WebM file structure is
based on the Matroska container."
post_install() {
disable_as_needed=yes
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}
}