noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / multimedia / icecast / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=icecast
9 PKG_VERSION:=2.4.3
10 PKG_RELEASE:=3
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://downloads.xiph.org/releases/icecast/
14 PKG_MD5SUM:=83d7d34dbe22f0f8fc119d2c9839efc0
15 PKG_HASH:=c85ca48c765d61007573ee1406a797ae6cb31fb5961a42e7f1c87adb45ddc592
16
17 PKG_MAINTAINER:=André Gaul <andre@gaul.io>, \
18 Ted Hess <thess@kitschensync.net>
19
20 PKG_LICENSE:=GPL-2.0
21 PKG_LICENSE_FILES:=COPYING
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:= 1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/icecast
29 SECTION:=multimedia
30 CATEGORY:=Multimedia
31 DEPENDS:=+libcurl +libxml2 +libxslt +libogg +libvorbisidec
32 TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
33 USERID:=icecast=87:icecast=87
34 URL:=http://www.icecast.org/
35 endef
36
37 define Package/icecast/description
38 Icecast is a streaming media server which currently supports Ogg
39 Vorbis and MP3 audio streams. It can be used to create an Internet
40 radio station or a privately running jukebox and many things in
41 between. It is very versatile in that new formats can be added
42 relatively easily and supports open standards for commuincation and
43 interaction.
44 endef
45
46 CONFIGURE_ARGS+= \
47 --enable-yp \
48 --with-openssl="no" \
49 --with-curl="yes" \
50 --with-curl-config="$(STAGING_DIR)/usr/bin/curl-config" \
51 --with-ogg="$(STAGING_DIR)/usr" \
52 --with-speex="no" \
53 --with-theora="no" \
54 --with-vorbis="$(STAGING_DIR)/usr" \
55 --with-xslt-config="$(STAGING_DIR)/usr/bin/xslt-config"
56
57
58 # Manually edit configure in case both vorbis and tremor host packages are installed
59 define Build/Configure
60 $(SED) 's,-lvorbis -lm,-lvorbisidec -logg ,g' $(PKG_BUILD_DIR)/configure
61 $(call Build/Configure/Default)
62 endef
63
64 define Package/icecast/install
65 $(INSTALL_DIR) $(1)/etc
66 $(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(1)/etc/
67 $(INSTALL_DIR) $(1)/etc/init.d
68 $(INSTALL_BIN) ./files/icecast.init $(1)/etc/init.d/icecast
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
71 $(INSTALL_DIR) $(1)/usr/share/icecast
72 $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(1)/usr/share/icecast/
73 $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/web $(1)/usr/share/icecast/
74 endef
75
76 define Package/icecast/conffiles
77 /etc/icecast.xml
78 endef
79
80 $(eval $(call BuildPackage,icecast))