2010-09-11 06:01:28 +08:00
|
|
|
#
|
2012-05-20 00:12:58 +08:00
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
2010-09-11 06:01:28 +08:00
|
|
|
#
|
2015-01-08 07:30:12 +08:00
|
|
|
# maintainer almack
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2015-12-21 05:05:39 +08:00
|
|
|
pkgname=('x264' 'libx264' 'libx264-10bit')
|
2015-01-08 07:30:12 +08:00
|
|
|
pkgver=20141218
|
2015-12-21 05:05:39 +08:00
|
|
|
pkgrel=2
|
2012-12-07 09:07:14 +08:00
|
|
|
arch=('x86_64')
|
2010-03-14 23:48:48 +08:00
|
|
|
url="http://www.videolan.org/developers/x264.html"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('glibc')
|
2015-12-21 05:05:39 +08:00
|
|
|
makedepends=('yasm' 'ffmpeg' 'libvpx>=1.1.0')
|
2012-12-07 09:07:14 +08:00
|
|
|
source=("ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-$pkgver-2245-stable.tar.bz2")
|
2015-01-08 07:30:12 +08:00
|
|
|
md5sums=('f82e4f39453ba8f25a9b614a96741ee3')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2015-12-21 05:05:39 +08:00
|
|
|
prepare() {
|
|
|
|
cp -r "$srcdir/$pkgname-snapshot-$pkgver-2245-stable" $pkgbase
|
|
|
|
cp -r $pkgbase $pkgbase-10bit
|
|
|
|
}
|
|
|
|
|
2010-03-14 23:48:48 +08:00
|
|
|
build() {
|
2015-12-21 05:05:39 +08:00
|
|
|
cd $pkgbase
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-shared --enable-pic
|
|
|
|
make
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2015-12-21 05:05:39 +08:00
|
|
|
cd ../$pkgbase-10bit
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-shared --enable-pic \
|
|
|
|
--bit-depth=10
|
|
|
|
make
|
2012-02-13 08:02:59 +08:00
|
|
|
}
|
|
|
|
|
2015-12-21 05:05:39 +08:00
|
|
|
package_x264() {
|
|
|
|
pkgdesc='CLI tools for encoding H264/AVC video streams'
|
|
|
|
depends=('ffmpeg' 'libvpx' 'libx264')
|
|
|
|
optdepends=('libx264-10bit: Library for encoding H264/AVC video streams. 10bit-depth.')
|
|
|
|
|
|
|
|
make -C $pkgbase DESTDIR="$pkgdir" install-cli
|
|
|
|
install -Dm755 $pkgbase-10bit/x264 "$pkgdir"/usr/bin/x264-10bit
|
2012-08-29 21:41:07 +08:00
|
|
|
}
|
2013-11-10 21:58:11 +08:00
|
|
|
|
2015-12-21 05:05:39 +08:00
|
|
|
package_libx264() {
|
|
|
|
pkgdesc='Library for encoding H264/AVC video streams'
|
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/lib
|
|
|
|
make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libx264-10bit() {
|
|
|
|
pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.'
|
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/lib
|
|
|
|
make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared
|
|
|
|
}
|