blob: a9a60b4ea3e3d7f3e5be74b4e7976649da3f76fe [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
Pau Espin Pedroleb708462018-09-07 14:49:59 +02006DEPENDS = "libosmocore libosmo-netif"
Pau Espin Pedrolb4eb9712017-09-26 14:28:49 +02007
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +01008INC_PR="r3.${META_TELEPHONY_OSMO_INC}"
Pau Espin Pedrolb4eb9712017-09-26 14:28:49 +02009
10inherit autotools pkgconfig systemd
11
Pau Espin Pedrolf1bacc02018-09-14 14:41:23 +020012PACKAGECONFIG ??= "\
13 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
14 "
15PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
Pau Espin Pedrolb4eb9712017-09-26 14:28:49 +020016
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010017# StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340):
18do_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 Pedroleb708462018-09-07 14:49:59 +020023PACKAGES =+ "libosmo-mgcp libosmo-mgcp-dev libosmo-mgcp-client libosmo-mgcp-client-dev"
Pau Espin Pedrolcb1bb2b2017-11-10 12:08:36 +010024SYSTEMD_SERVICE_osmo-mgw = "osmo-mgw.service"
Pau Espin Pedrolcb1bb2b2017-11-10 12:08:36 +010025
26FILES_libosmo-mgcp = "${libdir}/libosmo-mgcp${SOLIBS}"
27FILES_libosmo-mgcp-dev = " \
28 ${includedir}/osmocom/mgcp \
29 ${libdir}/pkgconfig/libosmo-mgcp.pc \
30 ${libdir}/libosmo-mgcp${SOLIBSDEV} \
31 "
32
33FILES_libosmo-mgcp-client = "${libdir}/libosmo-mgcp-client${SOLIBS}"
34FILES_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 Pedrolcb1bb2b2017-11-10 12:08:36 +010040CONFFILES_osmo-mgw = "${sysconfdir}/osmocom/osmo-mgw.cfg"