aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-osmocom/osmo-mgw/osmo-mgw.inc
blob: c00f998f12eb69e4baa181961b8bb839171a8f23 (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
34
DESCRIPTION = "Osmocom Media Gateway (MGCP) implementation"
HOMEPAGE = "https://osmocom.org/projects/osmo-mgw"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"

DEPENDS = "libosmocore libosmo-netif"

INC_PR="r2.${META_TELEPHONY_OSMO_INC}"

inherit autotools pkgconfig systemd

PACKAGECONFIG ??= "\
    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
    "
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"

PACKAGES =+ "libosmo-mgcp libosmo-mgcp-dev libosmo-mgcp-client libosmo-mgcp-client-dev"
SYSTEMD_SERVICE_osmo-mgw = "osmo-mgw.service"

FILES_libosmo-mgcp = "${libdir}/libosmo-mgcp${SOLIBS}"
FILES_libosmo-mgcp-dev = " \
			 ${includedir}/osmocom/mgcp \
			 ${libdir}/pkgconfig/libosmo-mgcp.pc \
			 ${libdir}/libosmo-mgcp${SOLIBSDEV} \
			 "

FILES_libosmo-mgcp-client = "${libdir}/libosmo-mgcp-client${SOLIBS}"
FILES_libosmo-mgcp-client-dev = " \
				${includedir}/osmocom/mgcp_client \
				${libdir}/pkgconfig/libosmo-mgcp-client.pc \
				${libdir}/libosmo-mgcp-client${SOLIBSDEV} \
				"

CONFFILES_osmo-mgw = "${sysconfdir}/osmocom/osmo-mgw.cfg"