From def2483db69afdf8799b86ac0234a9ba52e8debf Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 20 Dec 2016 22:03:06 -0800 Subject: usrsctp: Add recipe Signed-off-by: Khem Raj Signed-off-by: Martin Jansa --- .../0001-Use-foreign-switch-for-automake.patch | 28 ++++++++++++++++++++++ .../recipes-protocols/usrsctp/usrsctp_git.bb | 26 ++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 meta-networking/recipes-protocols/usrsctp/usrsctp/0001-Use-foreign-switch-for-automake.patch create mode 100644 meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb diff --git a/meta-networking/recipes-protocols/usrsctp/usrsctp/0001-Use-foreign-switch-for-automake.patch b/meta-networking/recipes-protocols/usrsctp/usrsctp/0001-Use-foreign-switch-for-automake.patch new file mode 100644 index 0000000000..b932ebbb4f --- /dev/null +++ b/meta-networking/recipes-protocols/usrsctp/usrsctp/0001-Use-foreign-switch-for-automake.patch @@ -0,0 +1,28 @@ +From 748bc693cf24baf42e459e12f152349e392b6737 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 20 Dec 2016 21:32:11 -0800 +Subject: [PATCH] Use foreign switch for automake + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 64cc9994..19ccd4a3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -29,7 +29,7 @@ dnl SUCH DAMAGE. + dnl + + AC_INIT([libusrsctp], [0.9.3.0]) +-AM_INIT_AUTOMAKE ++AM_INIT_AUTOMAKE([foreign]) + + AC_PROG_CC + AC_PROG_LIBTOOL +-- +2.11.0 + diff --git a/meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb b/meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb new file mode 100644 index 0000000000..99a261ec7d --- /dev/null +++ b/meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows." +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=ffcf846341f3856d79a483eafa18e2a5" + +SRCREV = "dbfc1b8c4cf1a46a4d8987ba542d5ff06bdaf14c" +SRC_URI = "git://github.com/sctplab/usrsctp;protocol=https;branch=master \ + file://0001-Use-foreign-switch-for-automake.patch \ + " + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +DEPENDS += "openssl" + +CFLAGS += "-DSCTP_USE_OPENSSL_SHA1 -fPIC" +LDFLAGS += "-lssl -lcrypto" + +PACKAGECONFIG ?= "disablewarnings" +PACKAGECONFIG[disablewarnings] = "--disable-warnings-as-errors,," + +EXTRA_OECONF += "--disable-inet \ + --disable-inet6 \ + --disable-shared \ + --disable-debug \ + " -- cgit 1.2.3-korg