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.

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