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.

103 lines
2.5 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.24.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:=4ae4e476f960dbc0d04b1c0368776eb78edffd4421f3e4c074bb2bfb6375b282
  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. define Package/libqmi
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libmbim
  24. TITLE:=Helper library to talk to QMI enabled modems
  25. URL:=https://www.freedesktop.org/wiki/Software/libqmi
  26. LICENSE:=LGPL-2.0-or-later
  27. LICENSE_FILES:=COPYING.LIB
  28. endef
  29. define Package/libqmi/description
  30. Helper library talk to QMI enabled modems.
  31. Add qmi-utils for extra utilities.
  32. endef
  33. define Package/qmi-utils
  34. SECTION:=utils
  35. CATEGORY:=Utilities
  36. DEPENDS:=+libqmi
  37. TITLE:=Utilities to talk to QMI enabled modems
  38. URL:=https://www.freedesktop.org/wiki/Software/libqmi
  39. LICENSE:=GPL-2.0-or-later
  40. LICENSE_FILES:=COPYING
  41. endef
  42. define Package/libqmi-utils/description
  43. Utils to talk to QMI enabled modems
  44. endef
  45. CONFIGURE_ARGS += \
  46. --disable-static \
  47. --disable-gtk-doc \
  48. --disable-gtk-doc-html \
  49. --disable-gtk-doc-pdf \
  50. --disable-silent-rules \
  51. --enable-firmware-update \
  52. --enable-mbim-qmux \
  53. --enable-more-warnings=yes \
  54. --without-udev \
  55. --without-udev-base-dir
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(1)/usr/include
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/include/libqmi-glib \
  60. $(1)/usr/include/
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) \
  63. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so* \
  64. $(1)/usr/lib/
  65. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  66. $(CP) \
  67. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qmi-glib.pc \
  68. $(1)/usr/lib/pkgconfig
  69. endef
  70. define Package/libqmi/install
  71. $(INSTALL_DIR) $(1)/usr/lib
  72. $(CP) \
  73. $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so.* \
  74. $(1)/usr/lib/
  75. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/qmi-proxy $(1)/usr/lib/
  76. endef
  77. define Package/qmi-utils/install
  78. $(INSTALL_DIR) $(1)/usr/bin
  79. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/
  81. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-firmware-update $(1)/usr/bin/
  82. endef
  83. $(eval $(call BuildPackage,libqmi))
  84. $(eval $(call BuildPackage,qmi-utils))