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.

68 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2008-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libshout
  9. PKG_VERSION:=2.3.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/libshout/
  13. PKG_MD5SUM:=11765b2592e7ea623ccd93d3f8df172c
  14. PKG_LICENSE:=LGPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libshout
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Library which can be used to write a source client like ices
  24. URL:=http://www.icecast.org/download.php
  25. DEPENDS:= +libspeex +libtheora +libvorbis +libvorbisidec +libpthread
  26. endef
  27. define Package/libshout/description
  28. libshout allows applications to easily communicate and broadcast
  29. to an Icecast streaming media server. It handles the socket connections,
  30. metadata communication, and data streaming for the calling application,
  31. and lets developers focus on feature sets instead of implementation
  32. details.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --enable-shared \
  36. --enable-static \
  37. CONFIGURE_VARS += \
  38. VORBIS_CFLAGS="-I$(STAGING_DIR)/usr/include/tremor/" \
  39. VORBIS_LIBS="$(TARGET_LDFLAGS) -lvorbis -lvorbisidec" \
  40. TARGET_CFLAGS += $(FPIC) -Wl,-rpath-link="$(STAGING_DIR)/usr/lib"
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/shout $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.{a,so*} $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/
  48. $(SED) 's| -I/usr/include||' $(1)/usr/lib/pkgconfig/shout.pc
  49. endef
  50. define Package/libshout/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.so.* $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,libshout))