2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://downloads.xiph.org
/releases
/icecast
/
14 PKG_HASH
:=49b5979f9f614140b6a38046154203ee28218d8fc549888596a683ad604e4d44
16 PKG_MAINTAINER
:=André Gaul
<andre@gaul.io
>, \
17 Ted Hess
<thess@kitschensync.net
>
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:icecast
:icecast
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
29 define Package
/icecast
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
/
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
51 --with-curl-config
="$(STAGING_DIR)/usr/bin/curl-config" \
52 --with-ogg
="$(STAGING_DIR)/usr" \
55 --with-vorbis
="$(STAGING_DIR)/usr" \
56 --with-xslt-config
="$(STAGING_DIR)/usr/bin/xslt-config"
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
)
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
/
77 define Package
/icecast
/conffiles
81 $(eval
$(call BuildPackage
,icecast
))