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