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.

63 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2010-2014 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:=libmms
  9. PKG_VERSION:=0.6.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/libmms
  13. PKG_MD5SUM:=d6b665b335a6360e000976e770da7691
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=LGPLv2.1
  16. PKG_LICENSE_FILES:=COPYING.LIB
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/libmms
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+glib2
  25. TITLE:=MMS stream protocol library
  26. URL:=http://libmms.sourceforge.net
  27. DEPENDS:=$(ICONV_DEPENDS)
  28. endef
  29. define Package/libmms/description
  30. LibMMS is a common library for parsing mms:// and mmsh:// type network streams.
  31. These are commonly used to stream Windows Media Video content over the web.
  32. LibMMS itself is only for receiving MMS stream,
  33. it doesn't handle sending at all.
  34. endef
  35. TARGET_CFLAGS += $(FPIC)
  36. TARGET_LDFLAGS += $(if $(ICONV_FULL),-liconv)
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmms $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.{a,so*} $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  43. $(INSTALL_DATA) \
  44. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  45. $(1)/usr/lib/pkgconfig
  46. endef
  47. define Package/libmms/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.so.* $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libmms))