contrib/x264/Pkgfile

46 lines
1023 B
Plaintext
Raw Normal View History

2007-06-25 07:09:34 +02:00
# Description: Library for encoding H264/AVC video streams (snapshot).
2023-01-27 23:59:54 +01:00
# URL: https://www.videolan.org/developers/x264.html
2023-08-06 19:57:16 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2008-12-20 12:04:16 +01:00
# Depends on: yasm
2007-06-25 07:09:34 +02:00
name=x264
2023-08-06 19:57:16 +02:00
version=0.164.a8b68eb
2023-01-27 23:59:54 +01:00
release=1
2023-08-06 19:57:16 +02:00
_commit=a8b68ebfaa68621b5ac8907610d3335971839d52
2023-01-27 23:59:54 +01:00
source=(https://code.videolan.org/videolan/x264/-/archive/$_commit/x264-$_commit.tar.bz2)
2007-06-25 07:09:34 +02:00
build() {
2023-08-06 19:57:16 +02:00
cp -al $name-$_commit $name-10
cd $name-10
./configure \
--prefix=/usr \
--libdir=/usr/lib/libx264-10bit \
--includedir=/usr/lib/libx264-10bit/include \
--enable-pic \
--enable-shared \
--bit-depth='10' \
--disable-cli \
--disable-interlaced \
--extra-cflags="$CFLAGS"
make
make DESTDIR=$PKG install-lib-shared
cd $SRC/$name-$_commit
./configure \
--prefix=/usr \
--enable-pic \
--enable-shared \
--bit-depth='8' \
--disable-cli \
--extra-cflags="$CFLAGS"
make
make DESTDIR=$PKG install
chmod a-x $PKG/usr/lib/*.so $PKG/usr/lib/libx264-10bit/*.so
2007-06-25 07:09:34 +02:00
}