libvpx: cross build and dbg support.
This commit is contained in:
parent
964bfa0841
commit
f275b602cd
|
@ -2,9 +2,6 @@
|
||||||
#
|
#
|
||||||
depends="libvpx>=$version"
|
depends="libvpx>=$version"
|
||||||
short_desc="${short_desc} - development files"
|
short_desc="${short_desc} - development files"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains files for development, headers, static libs, etc."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/include usr
|
vmove usr/include usr
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
# Template file for 'libvpx'
|
# Template file for 'libvpx'
|
||||||
pkgname=libvpx
|
pkgname=libvpx
|
||||||
version=1.1.0
|
version=1.1.0
|
||||||
|
revision=2
|
||||||
wrksrc="libvpx-v${version}"
|
wrksrc="libvpx-v${version}"
|
||||||
distfiles="http://webm.googlecode.com/files/${pkgname}-v${version}.tar.bz2"
|
distfiles="http://webm.googlecode.com/files/${pkgname}-v${version}.tar.bz2"
|
||||||
subpackages="$pkgname-devel"
|
subpackages="$pkgname-devel"
|
||||||
build_style=configure
|
hostmakedepends="which perl yasm"
|
||||||
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
|
|
||||||
short_desc="The VP8 Codec SDK"
|
short_desc="The VP8 Codec SDK"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.webmproject.org"
|
homepage="http://www.webmproject.org"
|
||||||
|
@ -23,6 +19,26 @@ long_desc="
|
||||||
streams compressed with the Vorbis audio codec. The WebM file structure is
|
streams compressed with the Vorbis audio codec. The WebM file structure is
|
||||||
based on the Matroska container."
|
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}
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user