blob: b083a9c1edec6c1e2fb0a6ef43bb9e040532f901 [file] [log] [blame]
Pau Espin Pedrolb4eb9712017-09-26 14:28:49 +02001DESCRIPTION = "Osmocom Media Gateway (MGCP) implementation"
2HOMEPAGE = "https://osmocom.org/projects/osmo-mgw"
3LICENSE = "AGPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
5
6DEPENDS = "libosmocore libosmo-netif bcg729 libgsm"
7
Pau Espin Pedrol599bb012018-05-06 23:01:31 +02008INC_PR="r0.${META_TELEPHONY_OSMO_INC}"
Pau Espin Pedrolb4eb9712017-09-26 14:28:49 +02009
10inherit autotools pkgconfig systemd
11
12EXTRA_OECONF += "--enable-mgcp-transcoding --with-g729"
13
14do_install_append() {
15 install -d ${D}${systemd_system_unitdir}/
16 install -d ${D}${sysconfdir}/osmocom/
17
18 install -m 0644 ${S}/doc/examples/osmo-bsc_mgcp/mgcp.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg
19 install -m 0644 ${S}/contrib/systemd/osmo-bsc-mgcp.service ${D}${systemd_system_unitdir}/
Pau Espin Pedrolcb1bb2b2017-11-10 12:08:36 +010020
21 install -m 0644 ${S}/doc/examples/osmo-mgw/osmo-mgw.cfg ${D}${sysconfdir}/osmocom/osmo-mgw.cfg
22 install -m 0644 ${S}/contrib/systemd/osmo-mgw.service ${D}${systemd_system_unitdir}/
Pau Espin Pedrolb4eb9712017-09-26 14:28:49 +020023}
24
Pau Espin Pedrolcb1bb2b2017-11-10 12:08:36 +010025PACKAGES =+ " libosmo-legacy-mgcp libosmo-legacy-mgcp-dev libosmo-mgcp libosmo-mgcp-dev libosmo-mgcp-client libosmo-mgcp-client-dev osmo-bsc-mgcp"
26SYSTEMD_SERVICE_osmo-mgw = "osmo-mgw.service"
27SYSTEMD_SERVICE_osmo-bsc-mgcp = "osmo-bsc-mgcp.service"
28
29FILES_libosmo-legacy-mgcp = "${libdir}/libosmo-legacy-mgcp${SOLIBS}"
30FILES_libosmo-legacy-mgcp-dev = " \
31 ${includedir}/osmocom/legacy_mgcp \
32 ${libdir}/pkgconfig/libosmo-legacy-mgcp.pc \
33 ${libdir}/libosmo-legacy-mgcp${SOLIBSDEV} \
34 "
35
36FILES_libosmo-mgcp = "${libdir}/libosmo-mgcp${SOLIBS}"
37FILES_libosmo-mgcp-dev = " \
38 ${includedir}/osmocom/mgcp \
39 ${libdir}/pkgconfig/libosmo-mgcp.pc \
40 ${libdir}/libosmo-mgcp${SOLIBSDEV} \
41 "
42
43FILES_libosmo-mgcp-client = "${libdir}/libosmo-mgcp-client${SOLIBS}"
44FILES_libosmo-mgcp-client-dev = " \
45 ${includedir}/osmocom/mgcp_client \
46 ${libdir}/pkgconfig/libosmo-mgcp-client.pc \
47 ${libdir}/libosmo-mgcp-client${SOLIBSDEV} \
48 "
49
50FILES_osmo-bsc-mgcp = " \
51 ${bindir}/osmo-bsc_mgcp \
52 ${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg \
53 ${systemd_unitdir}/system/osmo-bsc-mgcp.service \
54 "
55CONFFILES_osmo-bsc-mgcp = "${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg"
56
57CONFFILES_osmo-mgw = "${sysconfdir}/osmocom/osmo-mgw.cfg"