[package] fix urbi compilation failure on octeon (#6987)
[openwrt/svn-archive/archive.git] / multimedia / peercast / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=3
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 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/peercast
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 DEPENDS:=+libpthread +uclibcxx
27 TITLE:=P2P audio and video streaming server
28 URL:=http://www.peercast.org/
29 endef
30
31 define Package/peercast/conffiles
32 /etc/peercast.ini
33 endef
34
35 define Package/peercast/description
36 PeerCast is a fresh new P2P streaming server. It can stream music and
37 video from a broad variety of formats. Many audio players can listen to
38 peercast streams, as it's been built to remain compatible with Nullsoft
39 Shoutcast.
40 endef
41
42 CONFIGURE_ARGS += \
43 --enable-staticbin \
44
45 CONFIGURE_VARS += \
46 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
47 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
48 LIBS="-nodefaultlibs -luClibc++ -lpthread" \
49
50 define Package/peercast/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/peercast $(1)/usr/sbin/
53 $(INSTALL_DIR) $(1)/usr/share/peercast/html
54 $(CP) $(PKG_INSTALL_DIR)/usr/share/peercast/html/en $(1)/usr/share/peercast/html/
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_DATA) ./files/peercast.ini $(1)/etc/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/peercast.init $(1)/etc/init.d/peercast
59 endef
60
61 $(eval $(call BuildPackage,peercast))