Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. # 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))