aboutsummaryrefslogtreecommitdiffstats
path: root/testing/janus-gateway/APKBUILD
blob: dcf8158f3c896696e5908f570b14c02962a17962 (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=janus-gateway
pkgver=0.10.10
pkgrel=0
pkgdesc="Janus WebRTC Server"
url="https://janus.conf.meetecho.com/"
arch="all !mips !mips64" # nodejs / npm missing
license="GPL-3.0-only"
install="$pkgname.pre-install"
makedepends="autoconf automake libtool gengetopt lua5.3-dev cmake libsrtp-dev
	libnice-dev jansson-dev libconfig-dev libusrsctp-dev libmicrohttpd-dev
	libwebsockets-dev rabbitmq-c-dev curl-dev libogg-dev libopusenc-dev
	lua duktape-dev npm doxygen graphviz ffmpeg-dev zlib-dev libogg-dev
	libuv-dev sofia-sip-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/meetecho/janus-gateway/archive/v$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	"
subpackages="$pkgname-doc $pkgname-openrc"
options="!check" # missing aiortc

# nanomsg not available on armv7
case "$CARCH" in
	arm*)
		;;
	*)
		makedepends="$makedepends nanomsg-dev"
		;;
esac

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--runstatedir=/run \
		--enable-sample-event-handler \
		--enable-rest \
		--enable-javascript-es-module \
		--enable-all-js-modules \
		--enable-post-processing \
		--enable-json-logger \
		--enable-plugin-lua \
		--enable-plugin-sip \
		--enable-plugin-duktape \
		--enable-docs \
		--disable-aes-gcm
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="ec5f15fee793d7b2be19a605fef068d3aebac12cc259a0f27f45a4c585558b294fcc192f8cffc2405db81d135c51148ca86e65449c0723342111e092fce74dc8  janus-gateway-0.10.10.tar.gz
942d8566219a426671d78b962f1584a910137995a2dbfc9af2a5c2901f30dc8992bbc749543d149d9f3d24bd751090abc226fca405276450ef84acff1cd74cc1  janus-gateway.initd
f442a419a435f5d1adab673011b7689a5680064f32f712e5e4668c486ce10f1442822c60cb302ee850ddc576a9e9f610a0863f02204e56f1fc68aa3ee312ebe0  janus-gateway.confd"