Pau Espin Pedrol | b4eb971 | 2017-09-26 14:28:49 +0200 | [diff] [blame] | 1 | DESCRIPTION = "Osmocom Media Gateway (MGCP) implementation" |
| 2 | HOMEPAGE = "https://osmocom.org/projects/osmo-mgw" |
| 3 | LICENSE = "AGPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788" |
| 5 | |
| 6 | DEPENDS = "libosmocore libosmo-netif bcg729 libgsm" |
| 7 | |
Pau Espin Pedrol | 71ac7c0 | 2017-12-04 18:37:22 +0100 | [diff] [blame] | 8 | INC_PR="r1.${META_TELEPHONY_OSMO_INC}" |
Pau Espin Pedrol | b4eb971 | 2017-09-26 14:28:49 +0200 | [diff] [blame] | 9 | |
| 10 | inherit autotools pkgconfig systemd |
| 11 | |
| 12 | EXTRA_OECONF += "--enable-mgcp-transcoding --with-g729" |
| 13 | |
| 14 | do_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 Pedrol | cb1bb2b | 2017-11-10 12:08:36 +0100 | [diff] [blame] | 20 | |
| 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 Pedrol | b4eb971 | 2017-09-26 14:28:49 +0200 | [diff] [blame] | 23 | } |
| 24 | |
Pau Espin Pedrol | cb1bb2b | 2017-11-10 12:08:36 +0100 | [diff] [blame] | 25 | PACKAGES =+ " libosmo-legacy-mgcp libosmo-legacy-mgcp-dev libosmo-mgcp libosmo-mgcp-dev libosmo-mgcp-client libosmo-mgcp-client-dev osmo-bsc-mgcp" |
| 26 | SYSTEMD_SERVICE_osmo-mgw = "osmo-mgw.service" |
| 27 | SYSTEMD_SERVICE_osmo-bsc-mgcp = "osmo-bsc-mgcp.service" |
| 28 | |
| 29 | FILES_libosmo-legacy-mgcp = "${libdir}/libosmo-legacy-mgcp${SOLIBS}" |
| 30 | FILES_libosmo-legacy-mgcp-dev = " \ |
| 31 | ${includedir}/osmocom/legacy_mgcp \ |
| 32 | ${libdir}/pkgconfig/libosmo-legacy-mgcp.pc \ |
| 33 | ${libdir}/libosmo-legacy-mgcp${SOLIBSDEV} \ |
| 34 | " |
| 35 | |
| 36 | FILES_libosmo-mgcp = "${libdir}/libosmo-mgcp${SOLIBS}" |
| 37 | FILES_libosmo-mgcp-dev = " \ |
| 38 | ${includedir}/osmocom/mgcp \ |
| 39 | ${libdir}/pkgconfig/libosmo-mgcp.pc \ |
| 40 | ${libdir}/libosmo-mgcp${SOLIBSDEV} \ |
| 41 | " |
| 42 | |
| 43 | FILES_libosmo-mgcp-client = "${libdir}/libosmo-mgcp-client${SOLIBS}" |
| 44 | FILES_libosmo-mgcp-client-dev = " \ |
| 45 | ${includedir}/osmocom/mgcp_client \ |
| 46 | ${libdir}/pkgconfig/libosmo-mgcp-client.pc \ |
| 47 | ${libdir}/libosmo-mgcp-client${SOLIBSDEV} \ |
| 48 | " |
| 49 | |
| 50 | FILES_osmo-bsc-mgcp = " \ |
| 51 | ${bindir}/osmo-bsc_mgcp \ |
| 52 | ${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg \ |
| 53 | ${systemd_unitdir}/system/osmo-bsc-mgcp.service \ |
| 54 | " |
| 55 | CONFFILES_osmo-bsc-mgcp = "${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg" |
| 56 | |
| 57 | CONFFILES_osmo-mgw = "${sysconfdir}/osmocom/osmo-mgw.cfg" |