You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.3 KiB

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