[PATCH 0/3] Haiku port
This patchset adds support building on Haiku. - we need -lnetwork - we have pthread already in libroot - we declare fd_set in <sys/select.h> as per POSIX For the record, the HaikuPorts recipe is at: https://github.com/haikuports/haikuports/tree/master/media-video/rtmpdump François.
--- Makefile | 3 +++ librtmp/Makefile | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/Makefile b/Makefile index a1595a8..857080d 100644 --- a/Makefile +++ b/Makefile @@ -35,12 +35,14 @@ MANDIR=$(DESTDIR)$(mandir) LIBS_posix= LIBS_darwin= LIBS_mingw=-lws2_32 -lwinmm -lgdi32 +LIBS_haiku=-lnetwork LIB_RTMP=-Llibrtmp -lrtmp LIBS=$(LIB_RTMP) $(CRYPTO_LIB) $(LIBS_$(SYS)) $(XLIBS) THREADLIB_posix=-lpthread THREADLIB_darwin=-lpthread THREADLIB_mingw= +THREADLIB_haiku= THREADLIB=$(THREADLIB_$(SYS)) SLIBS=$(THREADLIB) $(LIBS) @@ -50,6 +52,7 @@ INCRTMP=librtmp/rtmp_sys.h librtmp/rtmp.h librtmp/log.h librtmp/amf.h EXT_posix= EXT_darwin= EXT_mingw=.exe +EXT_haiku= EXT=$(EXT_$(SYS)) PROGS=rtmpdump rtmpgw rtmpsrv rtmpsuck diff --git a/librtmp/Makefile b/librtmp/Makefile index 2c1c790..f81851d 100644 --- a/librtmp/Makefile +++ b/librtmp/Makefile @@ -29,6 +29,7 @@ LIBZ=-lz LIBS_posix= LIBS_darwin= LIBS_mingw=-lws2_32 -lwinmm -lgdi32 +LIBS_haiku= LIB_GNUTLS=-lgnutls -lhogweed -lnettle -lgmp $(LIBZ) LIB_OPENSSL=-lssl -lcrypto $(LIBZ) LIB_POLARSSL=-lpolarssl $(LIBZ) @@ -42,26 +43,31 @@ SO_VERSION=1 SOX_posix=so SOX_darwin=dylib SOX_mingw=dll +SOX_haiku=so SOX=$(SOX_$(SYS)) SO_posix=.$(SOX).$(SO_VERSION) SO_darwin=.$(SO_VERSION).$(SOX) SO_mingw=-$(SO_VERSION).$(SOX) +SO_haiku=.$(SO_VERSION).$(SOX) SO_EXT=$(SO_$(SYS)) SODIR_posix=$(LIBDIR) SODIR_darwin=$(LIBDIR) SODIR_mingw=$(BINDIR) +SODIR_haiku=$(LIBDIR) SODIR=$(SODIR_$(SYS)) SO_LDFLAGS_posix=-shared -Wl,-soname,$@ SO_LDFLAGS_darwin=-dynamiclib -twolevel_namespace -undefined dynamic_lookup \ -fno-common -headerpad_max_install_names -install_name $(libdir)/$@ SO_LDFLAGS_mingw=-shared -Wl,--out-implib,librtmp.dll.a +SO_LDFLAGS_haiku=-shared -Wl,-soname,$@ SO_LDFLAGS=$(SO_LDFLAGS_$(SYS)) INSTALL_IMPLIB_posix= INSTALL_IMPLIB_darwin= INSTALL_IMPLIB_mingw=cp librtmp.dll.a $(LIBDIR) +INSTALL_IMPLIB_haiku= INSTALL_IMPLIB=$(INSTALL_IMPLIB_$(SYS)) SHARED=yes -- 2.7.0
--- rtmpgw.c | 1 + rtmpsrv.c | 1 + rtmpsuck.c | 1 + 3 files changed, 3 insertions(+) diff --git a/rtmpgw.c b/rtmpgw.c index 3e47602..2745723 100644 --- a/rtmpgw.c +++ b/rtmpgw.c @@ -26,6 +26,7 @@ #include <signal.h> #include <getopt.h> +#include <sys/select.h> #include <assert.h> diff --git a/rtmpsrv.c b/rtmpsrv.c index 5df4d3a..2e78dcc 100644 --- a/rtmpsrv.c +++ b/rtmpsrv.c @@ -31,6 +31,7 @@ #include <signal.h> #include <getopt.h> +#include <sys/select.h> #include <assert.h> diff --git a/rtmpsuck.c b/rtmpsuck.c index e886179..990b477 100644 --- a/rtmpsuck.c +++ b/rtmpsuck.c @@ -31,6 +31,7 @@ #include <signal.h> #include <getopt.h> +#include <sys/select.h> #include <assert.h> -- 2.7.0
--- README | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README b/README index dcf5f52..306bc80 100644 --- a/README +++ b/README @@ -19,7 +19,11 @@ for MacOSX or $ make SYS=mingw -for Windows. +for Windows or + + $ make SYS=haiku + +for Haiku. You can cross-compile for other platforms using the CROSS_COMPILE variable: -- 2.7.0
Ping, On 12/01/2016 21:36, François Revol wrote:
This patchset adds support building on Haiku.
- we need -lnetwork - we have pthread already in libroot - we declare fd_set in <sys/select.h> as per POSIX
For the record, the HaikuPorts recipe is at:
https://github.com/haikuports/haikuports/tree/master/media-video/rtmpdump
Anyone cares to apply these? I actually got mails on this list about commits I never got from the git remote. Is it still git.ffmpeg.org/rtmpdmup ?? François.
On 25/07/2016 14:55, François Revol wrote:
Ping,
Pong. François.
On 12/01/2016 21:36, François Revol wrote:
This patchset adds support building on Haiku.
- we need -lnetwork - we have pthread already in libroot - we declare fd_set in <sys/select.h> as per POSIX
For the record, the HaikuPorts recipe is at:
https://github.com/haikuports/haikuports/tree/master/media-video/rtmpdump
Anyone cares to apply these?
I actually got mails on this list about commits I never got from the git remote. Is it still git.ffmpeg.org/rtmpdmup ??
François. _______________________________________________ rtmpdump mailing list rtmpdump@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
On Thu, 9 Mar 2017 14:28:23 +0100, François Revol <revol@free.fr> wrote:
On 25/07/2016 14:55, François Revol wrote:
Ping,
Pong.
François.
On 12/01/2016 21:36, François Revol wrote:
This patchset adds support building on Haiku.
- we need -lnetwork - we have pthread already in libroot - we declare fd_set in <sys/select.h> as per POSIX
For the record, the HaikuPorts recipe is at:
https://github.com/haikuports/haikuports/tree/master/media-video/rtmpdump
Anyone cares to apply these?
i wonder if hyc is still around? might be time to add some developers into the project.
I actually got mails on this list about commits I never got from the git remote. Is it still git.ffmpeg.org/rtmpdmup ??
should be. there are other fork repos out there as well. -compn
On 10/03/2017 14:06, Compn wrote:
On Thu, 9 Mar 2017 14:28:23 +0100, François Revol <revol@free.fr> wrote:
On 25/07/2016 14:55, François Revol wrote:
Ping,
Pong.
François.
On 12/01/2016 21:36, François Revol wrote:
This patchset adds support building on Haiku.
- we need -lnetwork - we have pthread already in libroot
Oh btw, I think we now have an empty libpthread.a for stubbing as it's actually mandated by some stupid norm... Oh yes, so you can skip this one.
- we declare fd_set in <sys/select.h> as per POSIX
For the record, the HaikuPorts recipe is at:
https://github.com/haikuports/haikuports/tree/master/media-video/rtmpdump
Anyone cares to apply these?
i wonder if hyc is still around? might be time to add some developers into the project.
I'm afraid I'm already way too busy to help you there :p François.
François Revol wrote:
On 10/03/2017 14:06, Compn wrote:
On Thu, 9 Mar 2017 14:28:23 +0100, François Revol <revol@free.fr> wrote:
On 25/07/2016 14:55, François Revol wrote:
Ping,
Pong.
François.
On 12/01/2016 21:36, François Revol wrote:
This patchset adds support building on Haiku.
- we need -lnetwork - we have pthread already in libroot
Oh btw, I think we now have an empty libpthread.a for stubbing as it's actually mandated by some stupid norm... Oh yes, so you can skip this one.
- we declare fd_set in <sys/select.h> as per POSIX
For the record, the HaikuPorts recipe is at:
https://github.com/haikuports/haikuports/tree/master/media-video/rtmpdump
Anyone cares to apply these?
i wonder if hyc is still around?
I peek in once in a while. Not much time to pay attention though.
might be time to add some developers into the project.
I'm afraid I'm already way too busy to help you there :p
François.
participants (3)
-
Compn -
François Revol -
Howard Chu