Browse Source

oggfwd: add new package

A basic icecast client that is very simple but also very useful for video streaming.

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Nicolas Thill 9 years ago
parent
commit
731dfa63d7
1 changed files with 50 additions and 0 deletions
  1. 50
    0
      multimedia/oggfwd/Makefile

+ 50
- 0
multimedia/oggfwd/Makefile View File

@@ -0,0 +1,50 @@
1
+#
2
+# Copyright (C) 2015 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=oggfwd
11
+PKG_REV:=506088e5066abd086efc951670906187c120e9a3
12
+PKG_VERSION:=20150412
13
+PKG_RELEASE:=1
14
+
15
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
+PKG_SOURCE_URL:=git://r-w-x.org/oggfwd.git
17
+PKG_SOURCE_PROTO:=git
18
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19
+PKG_SOURCE_VERSION:=$(PKG_REV)
20
+
21
+PKG_LICENSE:=GPL-2.0
22
+PKG_LICENSE_FILES:=LICENSE
23
+PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
24
+
25
+include $(INCLUDE_DIR)/package.mk
26
+
27
+define Package/oggfwd
28
+  SECTION:=multimedia
29
+  CATEGORY:=Multimedia
30
+  SUBMENU:=Streaming
31
+  TITLE:=Pipe media into icecast
32
+  URL:=http://www.v2v.cc/~j/oggfwd
33
+  DEPENDS:=+libpthread +libshout
34
+endef
35
+
36
+define Package/oggfwd/description
37
+ A basic icecast client that is very simple but also very useful for video
38
+ streaming.
39
+endef
40
+
41
+MAKE_FLAGS += \
42
+	INCLUDEFLAGS="$(TARGET_LDFLAGS)" \
43
+	LINKFLAGS="$(TARGET_LDFLAGS) -lshout" \
44
+
45
+define Package/oggfwd/install
46
+	$(INSTALL_DIR) $(1)/usr/bin
47
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/oggfwd $(1)/usr/bin/
48
+endef
49
+
50
+$(eval $(call BuildPackage,oggfwd))