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