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.

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