summaryrefslogtreecommitdiff
path: root/repo/media/opus/opus.xibuild
blob: 0ec56246da21547b8dc54d9e8848757bdf30a7a0 (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
#!/bin/sh

MAKEDEPS="make"
DEPS="musl"

DESC="Totally open, royalty-free, highly versatile audio codec"

PKG_VER=1.3.1
SOURCE=https://archive.mozilla.org/pub/opus/opus-$PKG_VER.tar.gz

build () {
    CFLAGS="$(echo "$CFLAGS" | sed 's/-Os/-O2/g')" ./configure --prefix=/usr    \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-custom-modes

    make
}

package () {
    make DESTDIR=$PKG_DEST install
}