aboutsummaryrefslogtreecommitdiffstats
path: root/main/sofia-sip/APKBUILD
blob: 0b5b241dafdfed02db0935e126cd07c274981882 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sofia-sip
pkgver=1.13.2
pkgrel=0
pkgdesc="RFC3261 compliant SIP User-Agent library"
url="https://github.com/freeswitch/sofia-sip"
arch="all"
license="LGPL-2.1-only"
options="!check" #tests are broken
makedepends="automake autoconf libtool m4
glib-dev openssl-dev lksctp-tools-dev"
checkdepends="check-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/freeswitch/sofia-sip/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	sh autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--with-openssl \
		--enable-sctp \
		--enable-static=no \
		--disable-rpath
	make
}

check() {
	TPORT_DEBUG=9 TPORT_TEST_HOST=0.0.0.0 make check
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	make doxygen
}
sha512sums="55d1f9d3310685047f4464d382d190f58b101c99c8ff1f648af76cae16016924a8b0165a734ad2e61108e553e83080f3b7677f5cccf21b28885e4bf74a58adb9  sofia-sip-1.13.2.tar.gz"