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.

119 lines
2.8 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:=libqmi
  9. PKG_VERSION:=1.30.4
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://www.freedesktop.org/software/libqmi
  13. PKG_HASH:=00d7da30a4f8d1185f37cba289cfaf1dfcd04a58f2f76d6acfdf5b85312d6ed6
  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. define Package/libqmi/config
  20. source "$(SOURCE)/Config.in"
  21. endef
  22. define Package/libqmi
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. DEPENDS:= \
  26. +glib2 \
  27. +LIBQMI_WITH_MBIM_QMUX:libmbim \
  28. +LIBQMI_WITH_QRTR_GLIB:libqrtr-glib
  29. TITLE:=Helper library to talk to QMI enabled modems
  30. URL:=https://www.freedesktop.org/wiki/Software/libqmi
  31. LICENSE:=LGPL-2.0-or-later
  32. LICENSE_FILES:=COPYING.LIB
  33. endef
  34. define Package/libqmi/description
  35. Helper library talk to QMI enabled modems.
  36. Add qmi-utils for extra utilities.
  37. endef
  38. define Package/qmi-utils
  39. SECTION:=utils
  40. CATEGORY:=Utilities
  41. DEPENDS:=+libqmi
  42. TITLE:=Utilities to talk to QMI enabled modems
  43. URL:=https://www.freedesktop.org/wiki/Software/libqmi
  44. LICENSE:=GPL-2.0-or-later
  45. LICENSE_FILES:=COPYING
  46. endef
  47. define Package/libqmi-utils/description
  48. Utils to talk to QMI enabled modems
  49. endef
  50. CONFIGURE_ARGS += \
  51. --disable-static \
  52. --disable-gtk-doc \
  53. --disable-gtk-doc-html \
  54. --disable-gtk-doc-pdf \
  55. --disable-silent-rules \
  56. --enable-firmware-update \
  57. --enable-more-warnings=yes \
  58. --without-udev \
  59. --without-udev-base-dir
  60. ifeq ($(CONFIG_LIBQMI_WITH_MBIM_QMUX),y)
  61. CONFIGURE_ARGS += --enable-mbim-qmux
  62. else
  63. CONFIGURE_ARGS += --disable-mbim-qmux
  64. endif
  65. ifeq ($(CONFIG_LIBQMI_WITH_QRTR_GLIB),y)
  66. CONFIGURE_ARGS += --enable-qrtr
  67. else
  68. CONFIGURE_ARGS += --disable-qrtr
  69. endif
  70. define Build/InstallDev
  71. $(INSTALL_DIR) $(1)/usr/include
  72. $(CP) \
  73. $(PKG_INSTALL_DIR)/usr/include/libqmi-glib \
  74. $(1)/usr/include/
  75. $(INSTALL_DIR) $(1)/usr/lib
  76. $(CP) \
  77. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so* \
  78. $(1)/usr/lib/
  79. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  80. $(CP) \
  81. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qmi-glib.pc \
  82. $(1)/usr/lib/pkgconfig
  83. endef
  84. define Package/libqmi/install
  85. $(INSTALL_DIR) $(1)/usr/lib
  86. $(CP) \
  87. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so.* \
  88. $(1)/usr/lib/
  89. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/qmi-proxy $(1)/usr/lib/
  90. endef
  91. define Package/qmi-utils/install
  92. $(INSTALL_DIR) $(1)/usr/bin
  93. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/
  94. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/
  95. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-firmware-update $(1)/usr/bin/
  96. endef
  97. $(eval $(call BuildPackage,libqmi))
  98. $(eval $(call BuildPackage,qmi-utils))