summaryrefslogtreecommitdiff
path: root/skip/x264.xibuild
blob: 4fdd0f6c80c8880808e794db693c48815caa6326 (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
#!/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.163_git20210613
gitrev=master
SOURCE="https://code.videolan.org/videolan/x264/-/archive/$gitrev/x264-$gitrev.tar.gz"

build () {
    ./configure \
        --prefix=/usr
        --bindir=/usr/bin \
        --sysconfdir=/etc \
        --disable-static \
        --enable-shared \
        --enable-pic \
        --extra-cflags=-fno-agressive-loop-optimizations
    make
}

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