x264: cross build and dbg support.
This commit is contained in:
parent
516304d08b
commit
288ab04b63
|
@ -3,10 +3,10 @@ pkgname=x264
|
||||||
_snap_date=20120126
|
_snap_date=20120126
|
||||||
_snap_rev=2245
|
_snap_rev=2245
|
||||||
version="${_snap_date}.${_snap_rev}"
|
version="${_snap_date}.${_snap_rev}"
|
||||||
revision=2
|
revision=3
|
||||||
subpackages="x264-devel"
|
subpackages="x264-devel"
|
||||||
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
|
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
|
||||||
makedepends="yasm"
|
hostmakedepends="yasm"
|
||||||
short_desc="Free library for encoding H264/AVC video streams"
|
short_desc="Free library for encoding H264/AVC video streams"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.videolan.org/developers/x264.html"
|
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."
|
Stable snapshot version of x264, a high quality H.264 codec."
|
||||||
|
|
||||||
do_configure() {
|
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() {
|
do_build() {
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
# Template file for 'x264-devel'.
|
# Template file for 'x264-devel'.
|
||||||
#
|
#
|
||||||
noarch=yes
|
depends="x264>=${version}"
|
||||||
depends="glibc-devel x264>=${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
|
||||||
vmove usr/lib/pkgconfig usr/lib
|
vmove usr/lib/pkgconfig usr/lib
|
||||||
|
vmove "usr/lib/*.a" usr/lib
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue