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 | |
Pau Espin Pedrol | eb70846 | 2018-09-07 14:49:59 +0200 | [diff] [blame] | 6 | DEPENDS = "libosmocore libosmo-netif" |
Pau Espin Pedrol | b4eb971 | 2017-09-26 14:28:49 +0200 | [diff] [blame] | 7 | |
Pau Espin Pedrol | df5ac43 | 2023-02-17 14:57:14 +0100 | [diff] [blame] | 8 | INC_PR="r3.${META_TELEPHONY_OSMO_INC}" |
Pau Espin Pedrol | b4eb971 | 2017-09-26 14:28:49 +0200 | [diff] [blame] | 9 | |
| 10 | inherit autotools pkgconfig systemd |
| 11 | |
Pau Espin Pedrol | f1bacc0 | 2018-09-14 14:41:23 +0200 | [diff] [blame] | 12 | PACKAGECONFIG ??= "\ |
| 13 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 14 | " |
| 15 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" |
Pau Espin Pedrol | b4eb971 | 2017-09-26 14:28:49 +0200 | [diff] [blame] | 16 | |
Pau Espin Pedrol | df5ac43 | 2023-02-17 14:57:14 +0100 | [diff] [blame] | 17 | # StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340): |
| 18 | do_install_append() { |
| 19 | sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service" |
| 20 | sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service" |
| 21 | } |
| 22 | |
Pau Espin Pedrol | eb70846 | 2018-09-07 14:49:59 +0200 | [diff] [blame] | 23 | PACKAGES =+ "libosmo-mgcp libosmo-mgcp-dev libosmo-mgcp-client libosmo-mgcp-client-dev" |
Pau Espin Pedrol | cb1bb2b | 2017-11-10 12:08:36 +0100 | [diff] [blame] | 24 | SYSTEMD_SERVICE_osmo-mgw = "osmo-mgw.service" |
Pau Espin Pedrol | cb1bb2b | 2017-11-10 12:08:36 +0100 | [diff] [blame] | 25 | |
| 26 | FILES_libosmo-mgcp = "${libdir}/libosmo-mgcp${SOLIBS}" |
| 27 | FILES_libosmo-mgcp-dev = " \ |
| 28 | ${includedir}/osmocom/mgcp \ |
| 29 | ${libdir}/pkgconfig/libosmo-mgcp.pc \ |
| 30 | ${libdir}/libosmo-mgcp${SOLIBSDEV} \ |
| 31 | " |
| 32 | |
| 33 | FILES_libosmo-mgcp-client = "${libdir}/libosmo-mgcp-client${SOLIBS}" |
| 34 | FILES_libosmo-mgcp-client-dev = " \ |
| 35 | ${includedir}/osmocom/mgcp_client \ |
| 36 | ${libdir}/pkgconfig/libosmo-mgcp-client.pc \ |
| 37 | ${libdir}/libosmo-mgcp-client${SOLIBSDEV} \ |
| 38 | " |
| 39 | |
Pau Espin Pedrol | cb1bb2b | 2017-11-10 12:08:36 +0100 | [diff] [blame] | 40 | CONFFILES_osmo-mgw = "${sysconfdir}/osmocom/osmo-mgw.cfg" |