Branch oldpackages for 14.07
[14.07/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:=autoreconf
19 PKG_REMOVE_FILES:=aclocal.m4 acinclude.m4
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/uclibc++.mk
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/peercast
27   SECTION:=multimedia
28   CATEGORY:=Multimedia
29   DEPENDS:=+libpthread $(CXX_DEPENDS)
30   TITLE:=P2P audio and video streaming server
31   URL:=http://www.peercast.org/
32 endef
33
34 define Package/peercast/conffiles
35 /etc/peercast.ini
36 endef
37
38 define Package/peercast/description
39  PeerCast is a fresh new P2P streaming server. It can stream music and
40  video from a broad variety of formats. Many audio players can listen to
41  peercast streams, as it's been built to remain compatible with Nullsoft
42  Shoutcast.
43 endef
44
45 CONFIGURE_ARGS += \
46         --enable-staticbin \
47
48 CONFIGURE_VARS += \
49         LIBS="-lpthread"
50
51 TARGET_CFLAGS += -fpermissive
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))