summaryrefslogtreecommitdiff
path: root/repo/libnice/libnice.xibuild
blob: def2558ca34cb8b3059c90a7c85460dd2404a893 (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
#!/bin/sh

NAME="libnice"
DESC="GLib ICE implementation"

MAKEDEPS="glib gnutls gstreamer gobject-introspection gtk2 meson"

PKG_VER=0.1.19
SOURCE="https://nice.freedesktop.org/releases/libnice-$PKG_VER.tar.gz"

ADDITIONAL="
libnice-meson-0.58.patch
"

prepare () {
    apply_patches
}

build() {
	meson --prefix=/usr \
		-Dgtk_doc=disabled \
		-Dtests=disabled \
		-Dexamples=disabled \
		-Dintrospection=enabled \
		-Dcrypto-library=gnutls \
		-Dgstreamer=enabled \
		-Dgupnp=disabled builddir
	meson compile ${JOBS:+-j ${JOBS}} -C builddir
}

package() {
	DESTDIR="$PKG_DEST" meson install --no-rebuild -C builddir
}