summaryrefslogtreecommitdiff
path: root/repo/media/x264.xibuild
blob: 5c1d37550472f9c6979535894e71e89a181ebe67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

NAME="x264"
DESC="Free library for encoding H264/AVC video streams"

MAKEDEPS="make libx11 perl nasm sbase bash"
DEPS="musl "

PKG_VER=0.164.r3081.19856cc
gitrev=master
SOURCE="https://code.videolan.org/videolan/x264.git"
BRANCH=19856cc41ad11e434549fb3cc6a019e645ce1efe

ADDITIONAL="
    oclobj.h
"

prepare () {
    echo '' > ./tools/cltostr.sh
    mv oclobj.h common/oclobj.h
}

build () {
    ./configure \
        --prefix=/usr \
        --enable-shared \
        --enable-pic \
        --enable-lto \
        --disable-avs
    make
}

package () {
    make DESTDIR=$PKG_DEST bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install-lib-shared install-cli
}