oggfwd: add new package
authorNicolas Thill <nico@openwrt.org>
Sun, 26 Apr 2015 16:41:33 +0000 (18:41 +0200)
committerNicolas Thill <nico@openwrt.org>
Sun, 26 Apr 2015 16:57:37 +0000 (18:57 +0200)
A basic icecast client that is very simple but also very useful for video streaming.

Signed-off-by: Nicolas Thill <nico@openwrt.org>
multimedia/oggfwd/Makefile [new file with mode: 0644]

diff --git a/multimedia/oggfwd/Makefile b/multimedia/oggfwd/Makefile
new file mode 100644 (file)
index 0000000..8caf7f1
--- /dev/null
@@ -0,0 +1,50 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=oggfwd
+PKG_REV:=506088e5066abd086efc951670906187c120e9a3
+PKG_VERSION:=20150412
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=git://r-w-x.org/oggfwd.git
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=$(PKG_REV)
+
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=LICENSE
+PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/oggfwd
+  SECTION:=multimedia
+  CATEGORY:=Multimedia
+  SUBMENU:=Streaming
+  TITLE:=Pipe media into icecast
+  URL:=http://www.v2v.cc/~j/oggfwd
+  DEPENDS:=+libpthread +libshout
+endef
+
+define Package/oggfwd/description
+ A basic icecast client that is very simple but also very useful for video
+ streaming.
+endef
+
+MAKE_FLAGS += \
+       INCLUDEFLAGS="$(TARGET_LDFLAGS)" \
+       LINKFLAGS="$(TARGET_LDFLAGS) -lshout" \
+
+define Package/oggfwd/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/oggfwd $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,oggfwd))