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.

109 lines
2.7 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.28.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://www.freedesktop.org/software/libqmi
  13. PKG_HASH:=8c8c3ee719874d2529bce9b35b028fe435b36f003979a360d3ad0938449db783
  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. 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. --$(if $(LIBQMI_WITH_MBIM_QMUX),en,dis)able-mbim-qmux \
  58. --$(if $(LIBQMI_WITH_QRTR_GLIB),en,dis)able-qrtr \
  59. --enable-more-warnings=yes \
  60. --without-udev \
  61. --without-udev-base-dir
  62. define Build/InstallDev
  63. $(INSTALL_DIR) $(1)/usr/include
  64. $(CP) \
  65. $(PKG_INSTALL_DIR)/usr/include/libqmi-glib \
  66. $(1)/usr/include/
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so* \
  70. $(1)/usr/lib/
  71. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  72. $(CP) \
  73. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qmi-glib.pc \
  74. $(1)/usr/lib/pkgconfig
  75. endef
  76. define Package/libqmi/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) \
  79. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so.* \
  80. $(1)/usr/lib/
  81. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/qmi-proxy $(1)/usr/lib/
  82. endef
  83. define Package/qmi-utils/install
  84. $(INSTALL_DIR) $(1)/usr/bin
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/
  87. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-firmware-update $(1)/usr/bin/
  88. endef
  89. $(eval $(call BuildPackage,libqmi))
  90. $(eval $(call BuildPackage,qmi-utils))