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.

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