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.

74 lines
2.1 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.3
  8. PKG_RELEASE:=3
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://downloads.xiph.org/releases/icecast/
  11. PKG_MD5SUM:=83d7d34dbe22f0f8fc119d2c9839efc0
  12. PKG_HASH:=c85ca48c765d61007573ee1406a797ae6cb31fb5961a42e7f1c87adb45ddc592
  13. PKG_MAINTAINER:=André Gaul <andre@gaul.io>, \
  14. Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  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:=http://www.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. define Package/icecast/install
  47. $(INSTALL_DIR) $(1)/etc
  48. $(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(1)/etc/
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/icecast.init $(1)/etc/init.d/icecast
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
  53. $(INSTALL_DIR) $(1)/usr/share/icecast
  54. $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(1)/usr/share/icecast/
  55. $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/web $(1)/usr/share/icecast/
  56. endef
  57. define Package/icecast/conffiles
  58. /etc/icecast.xml
  59. endef
  60. $(eval $(call BuildPackage,icecast))