blob: e7eaf0392165831adb03c984b8d5e5d66b252ad2 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "Interactive Connectivity Establishment library"
2DESCRIPTION = "Libnice is an implementation of the IETF's draft Interactive Connectivity Establishment standard (ICE)."
3HOMEPAGE = "http://nice.freedesktop.org/wiki/"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004
Andrew Geissler9aee5002022-03-30 16:27:02 +00005LICENSE = "LGPL-2.1-only & MPL-1.1"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08006LIC_FILES_CHKSUM = "file://COPYING;md5=9c42325015702feda4f4d2f19a55b767 \
7 file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
8 file://COPYING.MPL;md5=3c617710e51cdbe0fc00716f056dfb1a \
9"
10
Brad Bishop7e36d532019-09-16 07:44:26 -040011SRC_URI = "http://nice.freedesktop.org/releases/libnice-${PV}.tar.gz"
Andrew Geissler32b11992021-03-31 13:37:05 -050012SRC_URI[sha256sum] = "5eabd25ba2b54e817699832826269241abaa1cf78f9b240d1435f936569273f4"
Brad Bishop7e36d532019-09-16 07:44:26 -040013
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014DEPENDS = "glib-2.0 gnutls"
15
Andrew Geissler32b11992021-03-31 13:37:05 -050016PACKAGECONFIG[gupnp] = "-Dgupnp=enabled,-Dgupnp=disabled,gupnp"
17PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0"
18PACKAGECONFIG[introspection] = "-Dintrospection=enabled,-Dintrospection=disabled,"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019
Andrew Geissler32b11992021-03-31 13:37:05 -050020EXTRA_OEMESON = "-Dgstreamer=disabled"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021
Andrew Geissler32b11992021-03-31 13:37:05 -050022GTKDOC_MESON_OPTION = "gtk_doc"
23GTKDOC_MESON_ENABLE_FLAG = "enabled"
24GTKDOC_MESON_DISABLE_FLAG = "disabled"
25
26inherit meson gtk-doc gobject-introspection
Brad Bishop19323692019-04-05 15:28:33 -040027
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
29FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
30FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
31FILES:${PN}-dbg += "${libdir}/gstreamer-1.0/.debug"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080032
Patrick Williams213cb262021-08-07 19:21:33 -050033do_configure:prepend() {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034 mkdir ${S}/m4 || true
35}
36
Patrick Williams213cb262021-08-07 19:21:33 -050037do_compile:append() {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038 for i in $(find ${B} -name "*.pc") ; do
39 sed -i -e s:${STAGING_DIR_TARGET}::g \
40 -e s:/${TARGET_SYS}::g \
41 $i
42 done
43}