libmms: update to 0.6.4 (they moved to sourceforge)

This commit is contained in:
François Revol
2019-03-27 02:03:40 +01:00
parent f2b2398208
commit 1a65ea33da
3 changed files with 74 additions and 36 deletions

View File

@@ -3,12 +3,12 @@ DESCRIPTION="LibMMS is a common library for parsing mms:// and mmsh:// type \
network streams. These are commonly used to stream Windows Media Video \
content over the web. LibMMS itself is only for receiving MMS stream, it \
doesn't handle sending at all."
HOMEPAGE="https://launchpad.net/libmms"
HOMEPAGE="https://sourceforge.net/projects/libmms/"
COPYRIGHT="2009 Xine project"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://launchpad.net/libmms/trunk/$portVersion/+download/libmms-$portVersion.tar.gz"
CHECKSUM_SHA256="02d9ca2b16b1517b84edb6c1c378a1f447679a831ba708a0396b30852aa6f091"
SOURCE_URI="https://downloads.sourceforge.net/libmms/libmms-$portVersion.tar.gz"
CHECKSUM_SHA256="3c05e05aebcbfcc044d9e8c2d4646cd8359be39a3f0ba8ce4e72a9094bee704f"
PATCHES="libmms-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"

View File

@@ -1,33 +0,0 @@
From addfcb224c6fae59bca353c0261d60b006454269 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 30 Apr 2017 16:59:12 +0200
Subject: fix unknown type name 'fd_set'
diff --git a/src/mms.c b/src/mms.c
index 0884f6a..4946dfa 100644
--- a/src/mms.c
+++ b/src/mms.c
@@ -44,6 +44,7 @@
#include <errno.h>
#include <stdlib.h>
#include <time.h>
+#include <sys/select.h>
#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_CODESET)
#define USE_ICONV
diff --git a/src/mmsh.c b/src/mmsh.c
index cd5ef9b..0a26746 100644
--- a/src/mmsh.c
+++ b/src/mmsh.c
@@ -48,6 +48,7 @@
#include <stdlib.h>
#include <time.h>
#include <assert.h>
+#include <sys/select.h>
#define LOG_MODULE "mmsh"
#define LOG_VERBOSE
--
2.7.0

View File

@@ -0,0 +1,71 @@
From 9d7fd73efaf1c5a0a0fdc085af7015fd2978d495 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 30 Apr 2017 16:59:12 +0200
Subject: [PATCH] Add check for <sys/select.h> and use it
POSIX says it's required for 'fd_set', and Haiku needs it.
---
config.h.in | 3 +++
configure.in | 2 +-
src/mms.c | 3 +++
src/mmsh.c | 3 +++
4 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/config.h.in b/config.h.in
index 8a8fc8f..7cf91ce 100644
--- a/config.h.in
+++ b/config.h.in
@@ -30,6 +30,9 @@
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
+/* Define to 1 if you have the <sys/select.h> header file. */
+#undef HAVE_SYS_SELECT_H
+
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
diff --git a/configure.in b/configure.in
index 86b0e08..9dccc63 100755
--- a/configure.in
+++ b/configure.in
@@ -13,7 +13,7 @@ AC_PROG_LIBTOOL
AC_PROG_INSTALL
dnl Checks for header files.
-AC_CHECK_HEADERS([sys/socket.h netinet/in.h netdb.h windows.h winsock2.h])
+AC_CHECK_HEADERS([sys/select.h sys/socket.h netinet/in.h netdb.h windows.h winsock2.h])
case $host in
*beos*)
diff --git a/src/mms.c b/src/mms.c
index c1dbc29..1a0aff7 100644
--- a/src/mms.c
+++ b/src/mms.c
@@ -52,6 +52,9 @@
#endif
#include <string.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
diff --git a/src/mmsh.c b/src/mmsh.c
index a019f05..6562ce2 100755
--- a/src/mmsh.c
+++ b/src/mmsh.c
@@ -55,6 +55,9 @@
#endif
#include <string.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
--
2.19.1