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.

107 lines
2.6 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.26.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://www.freedesktop.org/software/libqmi
  13. PKG_HASH:=a71963bb1097a42665287e40a9a36f95b8f9d6d6a4b7a5de22d660328af97cb9
  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. TITLE:=Helper library to talk to QMI enabled modems
  29. URL:=https://www.freedesktop.org/wiki/Software/libqmi
  30. LICENSE:=LGPL-2.0-or-later
  31. LICENSE_FILES:=COPYING.LIB
  32. endef
  33. define Package/libqmi/description
  34. Helper library talk to QMI enabled modems.
  35. Add qmi-utils for extra utilities.
  36. endef
  37. define Package/qmi-utils
  38. SECTION:=utils
  39. CATEGORY:=Utilities
  40. DEPENDS:=+libqmi
  41. TITLE:=Utilities to talk to QMI enabled modems
  42. URL:=https://www.freedesktop.org/wiki/Software/libqmi
  43. LICENSE:=GPL-2.0-or-later
  44. LICENSE_FILES:=COPYING
  45. endef
  46. define Package/libqmi-utils/description
  47. Utils to talk to QMI enabled modems
  48. endef
  49. CONFIGURE_ARGS += \
  50. --disable-static \
  51. --disable-gtk-doc \
  52. --disable-gtk-doc-html \
  53. --disable-gtk-doc-pdf \
  54. --disable-silent-rules \
  55. --enable-firmware-update \
  56. --$(if $(LIBQMI_WITH_MBIM_QMUX),en,dis)able-mbim-qmux \
  57. --enable-more-warnings=yes \
  58. --without-udev \
  59. --without-udev-base-dir
  60. define Build/InstallDev
  61. $(INSTALL_DIR) $(1)/usr/include
  62. $(CP) \
  63. $(PKG_INSTALL_DIR)/usr/include/libqmi-glib \
  64. $(1)/usr/include/
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) \
  67. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so* \
  68. $(1)/usr/lib/
  69. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  70. $(CP) \
  71. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qmi-glib.pc \
  72. $(1)/usr/lib/pkgconfig
  73. endef
  74. define Package/libqmi/install
  75. $(INSTALL_DIR) $(1)/usr/lib
  76. $(CP) \
  77. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so.* \
  78. $(1)/usr/lib/
  79. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/qmi-proxy $(1)/usr/lib/
  80. endef
  81. define Package/qmi-utils/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/
  84. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-firmware-update $(1)/usr/bin/
  86. endef
  87. $(eval $(call BuildPackage,libqmi))
  88. $(eval $(call BuildPackage,qmi-utils))