blob: 0f1f28da83824f903d98f52a5450dcb038afa7e6 [file] [log] [blame]
Pau Espin Pedrol587f6ac2017-09-29 13:43:18 +02001DESCRIPTION = "An utility library for Open Source Mobile Communications"
Harald Welteec8c4f62016-06-23 21:22:13 +02002DEPENDS = "libosmocore libosmo-netif"
Pau Espin Pedrold7e9e0e2017-09-27 12:17:43 +02003HOMEPAGE = "https://osmocom.org/projects/libosmo-sccp"
Holger Hans Peter Freytherd24c97d2012-05-30 17:50:06 +08004LICENSE = "AGPLv3"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08005
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +01006INC_PR="r2.${META_TELEPHONY_OSMO_INC}"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08007
8LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
9
Pau Espin Pedrold7e9e0e2017-09-27 12:17:43 +020010inherit autotools pkgconfig systemd
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080011
Pau Espin Pedrol501f34e2018-09-14 13:28:34 +020012PACKAGECONFIG ??= "\
13 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
14 "
15PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
16
Pau Espin Pedrol745ab772018-05-06 22:59:37 +020017# we require the tests to link to the static libosmo-sigtran library to
18# access symbols not starting with osmo_*
19EXTRA_OECONF_remove = "--disable-static"
20
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010021# StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340):
22do_install_append() {
23 sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/osmo-stp.service"
24 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/osmo-stp.service"
25}
26
Pau Espin Pedrol745ab772018-05-06 22:59:37 +020027PACKAGES =+ "osmo-stp"
28SYSTEMD_PACKAGES = "osmo-stp"
29SYSTEMD_SERVICE_osmo-stp = "osmo-stp.service"
30
Pau Espin Pedrol745ab772018-05-06 22:59:37 +020031FILES_osmo-stp = " \
32 ${bindir}/osmo-stp \
33 ${sysconfdir}/osmocom/osmo-stp.cfg \
34 "
35CONFFILES_osmo-stp = "${sysconfdir}/osmocom/osmo-stp.cfg"
36
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080037ALLOW_EMPTY_libosmo-sccp = "1"