2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/peercast
17 PKG_MD5SUM:=4e8449cde7135ad97f788e67e1bd64ee
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/peercast
28 DEPENDS:=+libpthread +uclibcxx
29 TITLE:=P2P audio and video streaming server
31 PeerCast is a fresh new P2P streaming server. It can stream music \\\
32 and video from a broad variety of formats. Many audio players can \\\
33 listen to peercast streams, as it's been built to remain compatible \\\
34 with Nullsoft Shoutcast.
35 URL:=http://www.peercast.org/
38 define Package/peercast/conffiles
42 define Build/Configure
43 $(call Build/Configure/Default, \
46 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
47 LIBS="-nodefaultlibs -luClibc++ -lpthread -lc -lm" \
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
57 define Package/peercast/install
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/peercast $(1)/usr/sbin/
60 $(INSTALL_DIR) $(1)/usr/share/peercast/html
61 $(CP) $(PKG_INSTALL_DIR)/usr/share/peercast/html/en $(1)/usr/share/peercast/html/
62 $(INSTALL_DIR) $(1)/etc
63 $(INSTALL_DATA) ./files/peercast.ini $(1)/etc/
64 $(INSTALL_DIR) $(1)/etc/init.d
65 $(INSTALL_BIN) ./files/peercast.init $(1)/etc/init.d/peercast
68 $(eval $(call BuildPackage,peercast))