mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/x264 to 142.20140311-3
This commit is contained in:
parent
851e0fe052
commit
6a34ac1621
1 changed files with 37 additions and 10 deletions
|
@ -7,19 +7,23 @@
|
|||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - configure needs --disable-asm to build on ARM
|
||||
|
||||
pkgname=x264
|
||||
pkgname=('x264' 'x264-10bit' 'x264-dev')
|
||||
pkgver=142.20140311
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
epoch=1
|
||||
pkgdesc='Library for encoding H264/AVC video streams'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://www.videolan.org/developers/x264.html'
|
||||
license=('GPL')
|
||||
depends=('glibc')
|
||||
makedepends=('yasm' 'git')
|
||||
source=(git://git.videolan.org/x264.git#commit=aff928d2)
|
||||
source=(git://git.videolan.org/x264.git#commit=b7a50c16)
|
||||
md5sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
sed -i 's/install-lib-dev$//g' $pkgname/Makefile
|
||||
cp -r $pkgname $pkgname-10bit
|
||||
}
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3)
|
||||
|
@ -30,15 +34,38 @@ pkgver() {
|
|||
|
||||
build() {
|
||||
cd $pkgname
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--enable-pic \
|
||||
--disable-asm
|
||||
--enable-shared --enable-pic --disable-asm
|
||||
make
|
||||
|
||||
cd ../$pkgname-10bit
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared --enable-pic \
|
||||
--bit-depth=10 --disable-asm
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C $pkgname DESTDIR="$pkgdir" install
|
||||
package_x264() {
|
||||
pkgdesc='Library for encoding H264/AVC video streams'
|
||||
depends=('glibc')
|
||||
|
||||
install -d "$pkgdir"/usr/lib
|
||||
make -C $pkgname DESTDIR="$pkgdir" install-cli install-lib-shared
|
||||
}
|
||||
|
||||
package_x264-10bit() {
|
||||
pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.'
|
||||
depends=('glibc')
|
||||
provides=('x264')
|
||||
conflicts=('x264')
|
||||
|
||||
install -d "$pkgdir"/usr/lib
|
||||
make -C $pkgname DESTDIR="$pkgdir" install-cli install-lib-shared
|
||||
}
|
||||
|
||||
package_x264-dev() {
|
||||
pkgdesc='Development files for library for encoding H264/AVC video streams'
|
||||
depends=('x264')
|
||||
|
||||
make -C $pkgbase DESTDIR="$pkgdir" install-lib-dev
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue