x264: cross build and dbg support.

This commit is contained in:
Juan RP 2013-03-24 16:26:55 +01:00
parent 516304d08b
commit 288ab04b63
2 changed files with 13 additions and 9 deletions

View File

@ -3,10 +3,10 @@ pkgname=x264
_snap_date=20120126
_snap_rev=2245
version="${_snap_date}.${_snap_rev}"
revision=2
revision=3
subpackages="x264-devel"
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
makedepends="yasm"
hostmakedepends="yasm"
short_desc="Free library for encoding H264/AVC video streams"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.videolan.org/developers/x264.html"
@ -17,7 +17,14 @@ long_desc="
Stable snapshot version of x264, a high quality H.264 codec."
do_configure() {
./configure --disable-swscale --enable-pic --enable-shared
if [ "$XBPS_TARGET_MACHINE" != "i686" -o "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
_disable_asm="--disable-asm"
fi
if [ "$XBPS_CROSS_BUILD" ]; then
_cross="--host=$XBPS_CROSS_TRIPLET"
fi
./configure --disable-swscale --enable-static --enable-pic \
--enable-shared ${_disable_asm} ${_cross}
}
do_build() {

View File

@ -1,13 +1,10 @@
# Template file for 'x264-devel'.
#
noarch=yes
depends="glibc-devel x264>=${version}"
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
depends="x264>=${version}"
short_desc="${short_desc} -- development files"
do_install() {
vmove usr/include usr
vmove usr/lib/pkgconfig usr/lib
vmove "usr/lib/*.a" usr/lib
}