summaryrefslogtreecommitdiff
path: root/package/rtmpdump
diff options
context:
space:
mode:
Diffstat (limited to 'package/rtmpdump')
-rw-r--r--package/rtmpdump/Makefile40
-rw-r--r--package/rtmpdump/patches/patch-Makefile28
-rw-r--r--package/rtmpdump/patches/patch-Makefile.orig28
-rw-r--r--package/rtmpdump/patches/patch-librtmp_Makefile36
4 files changed, 132 insertions, 0 deletions
diff --git a/package/rtmpdump/Makefile b/package/rtmpdump/Makefile
new file mode 100644
index 000000000..c85f823fd
--- /dev/null
+++ b/package/rtmpdump/Makefile
@@ -0,0 +1,40 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= rtmpdump
+PKG_VERSION:= 2.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 61509a2ae8987691f1fa28175461be96
+PKG_DESCR:= toolkit for RTMP streams
+PKG_DEPENDS:= librtmp zlib libopenssl
+PKG_BUILDDEP:= openssl zlib
+PKG_SECTION:= multimedia
+PKG_URL:= http://rtmpdump.mplayerhq.hu/
+PKG_SITES:= http://www.openadk.org/distfiles
+PKG_LIBNAME:= librtmp
+PKG_OPTS:= dev
+
+PKG_SUBPKGS:= RTMPDUMP LIBRTMP
+PKGSD_LIBRTMP:= library for RTMP streams
+PKGSC_LIBRTMP:= libs
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,RTMPDUMP,rtmpdump,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBRTMP,librtmp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBRTMP},${PKGSC_LIBRTMP}))
+
+CONFIG_STYLE:= manual
+
+rtmpdump-install:
+ $(INSTALL_DIR) $(IDIR_RTMPDUMP)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/rtmpdump \
+ $(IDIR_RTMPDUMP)/usr/bin
+
+librtmp-install:
+ $(INSTALL_DIR) $(IDIR_LIBRTMP)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/librtmp*so.* \
+ $(IDIR_LIBRTMP)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/rtmpdump/patches/patch-Makefile b/package/rtmpdump/patches/patch-Makefile
new file mode 100644
index 000000000..64f950750
--- /dev/null
+++ b/package/rtmpdump/patches/patch-Makefile
@@ -0,0 +1,28 @@
+--- rtmpdump-2.4.orig/Makefile 2013-12-15 14:24:48.000000000 +0100
++++ rtmpdump-2.4/Makefile 2013-12-15 15:18:27.000000000 +0100
+@@ -1,9 +1,9 @@
+ VERSION=v2.4
+
+-prefix=/usr/local
++prefix=/usr
+
+-CC=$(CROSS_COMPILE)gcc
+-LD=$(CROSS_COMPILE)ld
++CC?=$(CROSS)gcc
++LD?=$(CROSS)ld
+
+ SYS=posix
+ #SYS=mingw
+@@ -21,8 +21,10 @@ CRYPTO_DEF=$(DEF_$(CRYPTO))
+
+ DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
+ OPT=-O2
+-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
+-LDFLAGS=-Wall $(XLDFLAGS)
++CFLAGS?=
++CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF)
++LDFLAGS?=
++LDFLAGS+=-Wall $(XLDFLAGS)
+
+ bindir=$(prefix)/bin
+ sbindir=$(prefix)/sbin
diff --git a/package/rtmpdump/patches/patch-Makefile.orig b/package/rtmpdump/patches/patch-Makefile.orig
new file mode 100644
index 000000000..9b10246bb
--- /dev/null
+++ b/package/rtmpdump/patches/patch-Makefile.orig
@@ -0,0 +1,28 @@
+--- rtmpdump-2.4.orig/Makefile 2013-12-15 14:24:48.000000000 +0100
++++ rtmpdump-2.4/Makefile 2013-12-15 15:17:36.000000000 +0100
+@@ -1,9 +1,9 @@
+ VERSION=v2.4
+
+-prefix=/usr/local
++prefix=/usr
+
+-CC=$(CROSS_COMPILE)gcc
+-LD=$(CROSS_COMPILE)ld
++CC=$(CROSS)gcc
++LD=$(CROSS)ld
+
+ SYS=posix
+ #SYS=mingw
+@@ -21,8 +21,10 @@ CRYPTO_DEF=$(DEF_$(CRYPTO))
+
+ DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
+ OPT=-O2
+-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
+-LDFLAGS=-Wall $(XLDFLAGS)
++CFLAGS?=
++CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF)
++LDFLAGS?=
++LDFLAGS+=-Wall $(XLDFLAGS)
+
+ bindir=$(prefix)/bin
+ sbindir=$(prefix)/sbin
diff --git a/package/rtmpdump/patches/patch-librtmp_Makefile b/package/rtmpdump/patches/patch-librtmp_Makefile
new file mode 100644
index 000000000..8efd7ecb8
--- /dev/null
+++ b/package/rtmpdump/patches/patch-librtmp_Makefile
@@ -0,0 +1,36 @@
+--- rtmpdump-2.4.orig/librtmp/Makefile 2013-12-15 14:24:48.000000000 +0100
++++ rtmpdump-2.4/librtmp/Makefile 2013-12-15 15:20:13.000000000 +0100
+@@ -1,6 +1,6 @@
+ VERSION=v2.4
+
+-prefix=/usr/local
++prefix=/usr
+
+ incdir=$(prefix)/include/librtmp
+ bindir=$(prefix)/bin
+@@ -11,9 +11,9 @@ INCDIR=$(DESTDIR)$(incdir)
+ LIBDIR=$(DESTDIR)$(libdir)
+ MANDIR=$(DESTDIR)$(mandir)
+
+-CC=$(CROSS_COMPILE)gcc
+-LD=$(CROSS_COMPILE)ld
+-AR=$(CROSS_COMPILE)ar
++CC?=$(CROSS_COMPILE)gcc
++LD?=$(CROSS_COMPILE)ld
++AR?=$(CROSS_COMPILE)ar
+
+ SYS=posix
+ CRYPTO=OPENSSL
+@@ -74,8 +74,10 @@ SO_INST=$(SOINST_$(SHARED))
+
+ DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
+ OPT=-O2
+-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
+-LDFLAGS=$(XLDFLAGS)
++CFLAGS?=
++CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF) $(SO_DEF)
++LDFLAGS?=
++LDFLAGS+=$(XLDFLAGS)
+
+
+ OBJS=rtmp.o log.o amf.o hashswf.o parseurl.o