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.

93 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:=2
  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. include $(INCLUDE_DIR)/nls.mk
  19. CONFIGURE_ARGS += \
  20. --disable-static \
  21. --disable-gtk-doc \
  22. --disable-gtk-doc-html \
  23. --disable-gtk-doc-pdf
  24. define Package/libmbim
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. DEPENDS:=+glib2
  28. TITLE:=Helper library and utils to talk to MBIM enabled modems
  29. URL:=https://www.freedesktop.org/wiki/Software/libmbim
  30. LICENSE:=LGPL-2.0-or-later
  31. LICENSE_FILES:=COPYING.LIB
  32. endef
  33. define Package/libmbim/description
  34. Helper library to talk to MBIM enabled modems.
  35. Add mbim-utils for extra utilities.
  36. endef
  37. define Package/mbim-utils
  38. SECTION:=utils
  39. CATEGORY:=Utilities
  40. DEPENDS:=+libmbim
  41. TITLE:=Utilities to talk to MBIM enabled modems
  42. URL:=https://www.freedesktop.org/wiki/Software/libmbim
  43. LICENSE:=GPL-2.0-or-later
  44. LICENSE_FILES:=COPYING
  45. endef
  46. CONFIGURE_ARGS += \
  47. --without-udev \
  48. --without-udev-base-dir
  49. define Build/InstallDev
  50. $(INSTALL_DIR) $(1)/usr/include
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/include/libmbim-glib \
  53. $(1)/usr/include/
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/libmbim*.so* \
  57. $(1)/usr/lib/
  58. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  59. $(CP) \
  60. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mbim-glib.pc \
  61. $(1)/usr/lib/pkgconfig
  62. endef
  63. define Package/libmbim/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) \
  66. $(PKG_INSTALL_DIR)/usr/lib/libmbim*.so.* \
  67. $(1)/usr/lib/
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mbim-proxy $(1)/usr/lib/
  69. endef
  70. define Package/mbim-utils/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbimcli $(1)/usr/bin/
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbim-network $(1)/usr/bin/
  74. endef
  75. $(eval $(call BuildPackage,libmbim))
  76. $(eval $(call BuildPackage,mbim-utils))