OCaml 4.14.0 rebuild
[arch-packages.git] / x265 / repos / extra-x86_64 / PKGBUILD
blobda6f8d81b4b4de4caae317b6f64b45ee8ae8a41a
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: kfgz <kfgz@interia.pl>
5 pkgname=x265
6 pkgver=3.5
7 pkgrel=3
8 pkgdesc='Open Source H265/HEVC video encoder'
9 arch=(x86_64)
10 url=https://bitbucket.org/multicoreware/x265_git
11 license=(GPL)
12 depends=(gcc-libs)
13 makedepends=(
14   cmake
15   git
16   nasm
17   ninja
19 provides=(libx265.so)
20 _tag=f0c1022b6be121a753ff02853fbe33da71988656
21 source=(git+https://bitbucket.org/multicoreware/x265_git#tag=${_tag})
22 sha256sums=(SKIP)
24 pkgver() {
25   cd x265_git
27   git describe --tags
30 build() {
31   cmake -S x265_git/source -B build-12 -G Ninja \
32     -DCMAKE_INSTALL_PREFIX=/usr \
33     -DHIGH_BIT_DEPTH=TRUE \
34     -DMAIN12=TRUE \
35     -DEXPORT_C_API=FALSE \
36     -DENABLE_CLI=FALSE \
37     -DENABLE_SHARED=FALSE \
38     -Wno-dev
39   ninja -C build-12
41   cmake -S x265_git/source -B build-10 -G Ninja \
42     -DCMAKE_INSTALL_PREFIX=/usr \
43     -DHIGH_BIT_DEPTH=TRUE \
44     -DEXPORT_C_API=FALSE \
45     -DENABLE_CLI=FALSE \
46     -DENABLE_SHARED=FALSE \
47     -Wno-dev
48   ninja -C build-10
50   cmake -S x265_git/source -B build -G Ninja \
51     -DCMAKE_INSTALL_PREFIX=/usr \
52     -DENABLE_SHARED=TRUE \
53     -DENABLE_HDR10_PLUS=TRUE \
54     -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
55     -DEXTRA_LINK_FLAGS='-L .' \
56     -DLINKED_10BIT=TRUE \
57     -DLINKED_12BIT=TRUE \
58     -Wno-dev
59   ln -s ../build-10/libx265.a build/libx265_main10.a
60   ln -s ../build-12/libx265.a build/libx265_main12.a
61   ninja -C build
64 package() {
65   DESTDIR="${pkgdir}" ninja -C build install
68 # vim: ts=2 sw=2 et: