2009-12-30 22:49:11 +01:00
|
|
|
# Template file for 'x264'
|
|
|
|
pkgname=x264
|
2012-01-27 11:36:57 +01:00
|
|
|
_snap_date=20120126
|
2009-12-30 22:49:11 +01:00
|
|
|
_snap_rev=2245
|
|
|
|
version="${_snap_date}.${_snap_rev}"
|
2013-03-24 16:26:55 +01:00
|
|
|
revision=3
|
2012-09-25 12:31:00 +02:00
|
|
|
subpackages="x264-devel"
|
2011-08-11 23:06:30 +02:00
|
|
|
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
|
2013-03-24 16:26:55 +01:00
|
|
|
hostmakedepends="yasm"
|
2009-12-30 22:49:11 +01:00
|
|
|
short_desc="Free library for encoding H264/AVC video streams"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-11 23:06:30 +02:00
|
|
|
homepage="http://www.videolan.org/developers/x264.html"
|
|
|
|
license="GPL-2"
|
2012-09-25 12:31:00 +02:00
|
|
|
distfiles="http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${_snap_date}-${_snap_rev}-stable.tar.bz2"
|
2012-01-27 11:36:57 +01:00
|
|
|
checksum=6270fcc6e2ef133e4db2b2e0f4f22b5dbdd9a637e979b5697014b698f0d56baa
|
2009-12-30 22:49:11 +01:00
|
|
|
long_desc="
|
2011-08-11 23:06:30 +02:00
|
|
|
Stable snapshot version of x264, a high quality H.264 codec."
|
2009-12-30 22:49:11 +01:00
|
|
|
|
2012-01-27 11:36:57 +01:00
|
|
|
do_configure() {
|
2013-03-24 16:26:55 +01:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" != "i686" -o "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
|
|
|
|
_disable_asm="--disable-asm"
|
|
|
|
fi
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-24 16:26:55 +01:00
|
|
|
_cross="--host=$XBPS_CROSS_TRIPLET"
|
|
|
|
fi
|
|
|
|
./configure --disable-swscale --enable-static --enable-pic \
|
|
|
|
--enable-shared ${_disable_asm} ${_cross}
|
2011-08-11 23:06:30 +02:00
|
|
|
}
|
|
|
|
|
2012-01-27 11:36:57 +01:00
|
|
|
do_build() {
|
2011-08-11 23:06:30 +02:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
2012-01-27 11:36:57 +01:00
|
|
|
do_install() {
|
2011-08-11 23:06:30 +02:00
|
|
|
make DESTDIR=${DESTDIR} \
|
|
|
|
bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install
|
2012-09-25 12:31:00 +02:00
|
|
|
# Set version as 0.120.0 in pkg-config file.
|
|
|
|
sed -i -e "s|0.120.x|0.120.0|g" ${DESTDIR}/usr/lib/pkgconfig/x264.pc
|
2011-08-11 23:06:30 +02:00
|
|
|
}
|