aboutsummaryrefslogtreecommitdiffstats
path: root/community/x264
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-11-20 17:29:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-20 17:30:26 +0000
commitd38cbd0a5e7979430ea6ea15b4a2bb802f64f346 (patch)
tree51b2253383830a4a0ec2de92ce8b5c4f739954f3 /community/x264
parent33e9de0bb1e2ef6666284ce78d037f1b3ae7dd17 (diff)
downloadaports-d38cbd0a5e7979430ea6ea15b4a2bb802f64f346.tar.bz2
aports-d38cbd0a5e7979430ea6ea15b4a2bb802f64f346.tar.xz
community/x264: move from main
nothin uses it in main so we can move it
Diffstat (limited to 'community/x264')
-rw-r--r--community/x264/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/x264/APKBUILD b/community/x264/APKBUILD
new file mode 100644
index 0000000000..0ee865e6a3
--- /dev/null
+++ b/community/x264/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=x264
+pkgver=20191119
+pkgrel=0
+pkgdesc="Free library for encoding H264/AVC video streams"
+url="http://www.videolan.org/developers/x264.html"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="libx11-dev bash nasm coreutils perl"
+subpackages="$pkgname-dev $pkgname-libs"
+source="https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-$pkgver-2245-stable.tar.bz2"
+builddir="$srcdir/$pkgname-snapshot-$pkgver-2245-stable"
+
+build() {
+ cd "$builddir"
+
+ local asmopts=
+ case "$CARCH" in
+ # x86 assembly contains TEXTRELs
+ # arm neon assembly contains TEXTRELs
+ x86 | arm*) asmopts="--disable-asm"
+ esac
+
+ # note: not autotools
+ CFLAGS="${CFLAGS/-Os/}" ./configure \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-shared \
+ --enable-static \
+ $asmopts \
+ --enable-pic \
+ --extra-cflags=-fno-aggressive-loop-optimizations
+ make
+}
+
+check() {
+ cd "$builddir"
+
+ ./x264 --version
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" \
+ bindir=/usr/bin libdir=/usr/lib includedir=/usr/include \
+ install
+}
+
+sha512sums="972a9a2a939a275b087c10af511f3d737fbfc3daff49cd175f28406da6ebafaa4696ee362d3b84dd8ae04275812189da6929f9d987c5aa8bb216c9324cf8f55e x264-snapshot-20191119-2245-stable.tar.bz2"