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.

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