[package] update gstreamer to 0.10.25 (#6301)
[openwrt/svn-archive/archive.git] / multimedia / peercast / Makefile
1 #
2 # Copyright (C) 2006 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:=peercast
11 PKG_VERSION:=0.1214
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/peercast
16 PKG_MD5SUM:=4e8449cde7135ad97f788e67e1bd64ee
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/peercast
21 SECTION:=multimedia
22 CATEGORY:=Multimedia
23 DEPENDS:=+libpthread +uclibcxx
24 TITLE:=P2P audio and video streaming server
25 URL:=http://www.peercast.org/
26 endef
27
28 define Package/peercast/conffiles
29 /etc/peercast.ini
30 endef
31
32 define Package/peercast/description
33 PeerCast is a fresh new P2P streaming server. It can stream music and
34 video from a broad variety of formats. Many audio players can listen to
35 peercast streams, as it's been built to remain compatible with Nullsoft
36 Shoutcast.
37 endef
38
39 CONFIGURE_ARGS += \
40 --enable-staticbin \
41
42 CONFIGURE_VARS += \
43 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
44 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
45 LIBS="-nodefaultlibs -luClibc++ -lpthread" \
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/peercast/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/peercast $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/usr/share/peercast/html
57 $(CP) $(PKG_INSTALL_DIR)/usr/share/peercast/html/en $(1)/usr/share/peercast/html/
58 $(INSTALL_DIR) $(1)/etc
59 $(INSTALL_DATA) ./files/peercast.ini $(1)/etc/
60 $(INSTALL_DIR) $(1)/etc/init.d
61 $(INSTALL_BIN) ./files/peercast.init $(1)/etc/init.d/peercast
62 endef
63
64 $(eval $(call BuildPackage,peercast))