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.

88 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2016 Velocloud Inc.
  3. # Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libmbim
  9. PKG_VERSION:=1.20.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://www.freedesktop.org/software/libmbim
  13. PKG_HASH=2cf7c6c7aa9e962a589f61bff2766035b61792ef961131a21fcbbe043f91a866
  14. PKG_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au>
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. CONFIGURE_ARGS += \
  19. --disable-static \
  20. --disable-gtk-doc \
  21. --disable-gtk-doc-html \
  22. --disable-gtk-doc-pdf
  23. define Package/libmbim
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+glib2
  27. TITLE:=Helper library and utils to talk to MBIM enabled modems
  28. URL:=https://www.freedesktop.org/wiki/Software/libmbim
  29. LICENSE:=LGPL-2.0-or-later
  30. LICENSE_FILES:=COPYING.LIB
  31. endef
  32. define Package/libmbim/description
  33. Helper library to talk to MBIM enabled modems.
  34. Add mbim-utils for extra utilities.
  35. endef
  36. define Package/mbim-utils
  37. SECTION:=utils
  38. CATEGORY:=Utilities
  39. DEPENDS:=+libmbim
  40. TITLE:=Utilities to talk to MBIM enabled modems
  41. URL:=https://www.freedesktop.org/wiki/Software/libmbim
  42. LICENSE:=GPL-2.0-or-later
  43. LICENSE_FILES:=COPYING
  44. endef
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/include/libmbim-glib \
  49. $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libmbim*.so* \
  53. $(1)/usr/lib/
  54. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mbim-glib.pc \
  57. $(1)/usr/lib/pkgconfig
  58. endef
  59. define Package/libmbim/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/libmbim*.so.* \
  63. $(1)/usr/lib/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mbim-proxy $(1)/usr/lib/
  65. endef
  66. define Package/mbim-utils/install
  67. $(INSTALL_DIR) $(1)/usr/bin
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbimcli $(1)/usr/bin/
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbim-network $(1)/usr/bin/
  70. endef
  71. $(eval $(call BuildPackage,libmbim))
  72. $(eval $(call BuildPackage,mbim-utils))