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.

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