From a43f8ae3a618debc62187c94e816a4c23e10a20f Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 24 Aug 2016 15:05:11 +0200 Subject: [PATCH] rtmpdump package (#321) --- packages/rtmpdump/Makefile.patch | 52 ++++++++++++++++++++++++++++++++ packages/rtmpdump/build.sh | 8 +++++ 2 files changed, 60 insertions(+) create mode 100644 packages/rtmpdump/Makefile.patch create mode 100644 packages/rtmpdump/build.sh diff --git a/packages/rtmpdump/Makefile.patch b/packages/rtmpdump/Makefile.patch new file mode 100644 index 000000000..4d2bfc96e --- /dev/null +++ b/packages/rtmpdump/Makefile.patch @@ -0,0 +1,52 @@ +diff --git a/Makefile b/Makefile +index 7470eb4..03dd0e9 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,10 +1,5 @@ + VERSION=v2.3 + +-prefix=/usr/local +- +-CC=$(CROSS_COMPILE)gcc +-LD=$(CROSS_COMPILE)ld +- + SYS=posix + #SYS=mingw + +@@ -20,8 +15,8 @@ CRYPTO_DEF=$(DEF_$(CRYPTO)) + + DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF) + OPT=-O2 +-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) +-LDFLAGS=-Wall $(XLDFLAGS) ++CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) ++LDFLAGS+=-Wall $(XLDFLAGS) + + bindir=$(prefix)/bin + sbindir=$(prefix)/sbin +@@ -35,7 +30,7 @@ LIBS_posix= + LIBS_mingw=-lws2_32 -lwinmm -lgdi32 + LIBS=$(CRYPTO_LIB) -lz $(LIBS_$(SYS)) $(XLIBS) + +-THREADLIB_posix=-lpthread ++THREADLIB_posix= + THREADLIB_mingw= + THREADLIB=$(THREADLIB_$(SYS)) + SLIBS=$(THREADLIB) $(LIBS) + +diff --git a/librtmp/Makefile b/librtmp/Makefile +index 6774db7..6e8d6c9 100644 +--- a/librtmp/Makefile ++++ b/librtmp/Makefile +@@ -1,11 +1,5 @@ + VERSION=v2.3 + +-prefix=/usr/local +- +-CC=$(CROSS_COMPILE)gcc +-LD=$(CROSS_COMPILE)ld +-AR=$(CROSS_COMPILE)ar +- + SYS=posix + CRYPTO=OPENSSL + #CRYPTO=GNUTLS diff --git a/packages/rtmpdump/build.sh b/packages/rtmpdump/build.sh new file mode 100644 index 000000000..37f57a880 --- /dev/null +++ b/packages/rtmpdump/build.sh @@ -0,0 +1,8 @@ +TERMUX_PKG_HOMEPAGE=https://rtmpdump.mplayerhq.hu/ +TERMUX_PKG_DESCRIPTION="Small dumper for media content streamed over the RTMP protocol" +TERMUX_PKG_VERSION=2.3 +TERMUX_PKG_SRCURL=https://rtmpdump.mplayerhq.hu/download/rtmpdump-${TERMUX_PKG_VERSION}.tgz +TERMUX_PKG_BUILD_IN_SRC=yes +TERMUX_PKG_FOLDERNAME=rtmpdump-${TERMUX_PKG_VERSION} +TERMUX_PKG_DEPENDS="openssl" +TERMUX_PKG_MAINTAINER="Pierre Rudloff "