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.3 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.26.2
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://www.freedesktop.org/software/libmbim
  13. PKG_HASH:=10c77bf5b5eb8c92ba80e9b519923ad9b898362bc8e1928e2bc9a17eeba649af
  14. PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com>
  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. --disable-silent-rules
  25. define Package/libmbim
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. DEPENDS:=+glib2
  29. TITLE:=Helper library and utils to talk to MBIM enabled modems
  30. URL:=https://www.freedesktop.org/wiki/Software/libmbim
  31. LICENSE:=LGPL-2.0-or-later
  32. LICENSE_FILES:=COPYING.LIB
  33. endef
  34. define Package/libmbim/description
  35. Helper library to talk to MBIM enabled modems.
  36. Add mbim-utils for extra utilities.
  37. endef
  38. define Package/mbim-utils
  39. SECTION:=utils
  40. CATEGORY:=Utilities
  41. DEPENDS:=+libmbim
  42. TITLE:=Utilities to talk to MBIM enabled modems
  43. URL:=https://www.freedesktop.org/wiki/Software/libmbim
  44. LICENSE:=GPL-2.0-or-later
  45. LICENSE_FILES:=COPYING
  46. endef
  47. CONFIGURE_ARGS += \
  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))