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.

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