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