Merge pull request #15740 from neheb/moreut
[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.4
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_HASH:=49b5979f9f614140b6a38046154203ee28218d8fc549888596a683ad604e4d44
15
16 PKG_MAINTAINER:=André Gaul <andre@gaul.io>, \
17 Ted Hess <thess@kitschensync.net>
18
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:icecast:icecast
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:= 1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28
29 define Package/icecast
30 SECTION:=multimedia
31 CATEGORY:=Multimedia
32 DEPENDS:=+libcurl +libxml2 +libxslt +libogg +libvorbisidec $(ICONV_DEPENDS)
33 TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
34 USERID:=icecast=87:icecast=87
35 URL:=https://icecast.org/
36 endef
37
38 define Package/icecast/description
39 Icecast is a streaming media server which currently supports Ogg
40 Vorbis and MP3 audio streams. It can be used to create an Internet
41 radio station or a privately running jukebox and many things in
42 between. It is very versatile in that new formats can be added
43 relatively easily and supports open standards for commuincation and
44 interaction.
45 endef
46
47 CONFIGURE_ARGS+= \
48 --enable-yp \
49 --with-openssl="no" \
50 --with-curl="yes" \
51 --with-curl-config="$(STAGING_DIR)/usr/bin/curl-config" \
52 --with-ogg="$(STAGING_DIR)/usr" \
53 --with-speex="no" \
54 --with-theora="no" \
55 --with-vorbis="$(STAGING_DIR)/usr" \
56 --with-xslt-config="$(STAGING_DIR)/usr/bin/xslt-config"
57
58
59 # Manually edit configure in case both vorbis and tremor host packages are installed
60 define Build/Configure
61 $(SED) 's,-lvorbis -lm,-lvorbisidec -logg ,g' $(PKG_BUILD_DIR)/configure
62 $(call Build/Configure/Default)
63 endef
64
65 define Package/icecast/install
66 $(INSTALL_DIR) $(1)/etc
67 $(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(1)/etc/
68 $(INSTALL_DIR) $(1)/etc/init.d
69 $(INSTALL_BIN) ./files/icecast.init $(1)/etc/init.d/icecast
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
72 $(INSTALL_DIR) $(1)/usr/share/icecast
73 $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(1)/usr/share/icecast/
74 $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/web $(1)/usr/share/icecast/
75 endef
76
77 define Package/icecast/conffiles
78 /etc/icecast.xml
79 endef
80
81 $(eval $(call BuildPackage,icecast))