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.7 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/Configure
  38. (cd $(PKG_BUILD_DIR); ./autogen.sh );
  39. $(call Build/Configure/Default)
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmms $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.{a,so*} $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  49. $(1)/usr/lib/pkgconfig
  50. endef
  51. define Package/libmms/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.so.* $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libmms))