aboutsummaryrefslogtreecommitdiff
path: root/libs/libqmi
diff options
context:
space:
mode:
authorNicholas Smith <nicholas.smith@telcoantennas.com.au>2019-09-27 11:26:25 +1000
committerNicholas Smith <nicholas.smith@telcoantennas.com.au>2019-09-27 11:26:25 +1000
commitaf16743801902a2d7bbf876af3def3703cad45b1 (patch)
tree1ba4fc2e2b566dbd19e9ffc2b745000716afcb8e /libs/libqmi
parent62da1b06e04d321030e431d37cda0d1d08b8dc25 (diff)
libqmi: add libqmi to packages
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
Diffstat (limited to 'libs/libqmi')
-rw-r--r--libs/libqmi/Makefile97
1 files changed, 97 insertions, 0 deletions
diff --git a/libs/libqmi/Makefile b/libs/libqmi/Makefile
new file mode 100644
index 000000000..b2eba62af
--- /dev/null
+++ b/libs/libqmi/Makefile
@@ -0,0 +1,97 @@
+#
+# Copyright (C) 2016 Velocloud Inc.
+# Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es>
+#
+# This is free software, licensed under the GNU General Public License v2.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libqmi
+PKG_VERSION:=1.22.6
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=https://www.freedesktop.org/software/libqmi
+PKG_HASH=755bbea2a330ac16d56678fbcdd09201ddb14779059ecc895edfac388551d5de
+
+PKG_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au>
+
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libqmi
+ SECTION:=libs
+ CATEGORY:=Libraries
+ DEPENDS:=+glib2 +libmbim
+ TITLE:=Helper library to talk to QMI enabled modems
+ URL:=https://www.freedesktop.org/wiki/Software/libqmi
+ LICENSE:=LGPL-2.0-or-later
+ LICENSE_FILES:=COPYING.LIB
+endef
+
+define Package/libqmi/description
+ Helper library talk to QMI enabled modems.
+ Add qmi-utils for extra utilities.
+endef
+
+define Package/qmi-utils
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=+libqmi
+ TITLE:=Utilities to talk to QMI enabled modems
+ URL:=https://www.freedesktop.org/wiki/Software/libqmi
+ LICENSE:=GPL-2.0-or-later
+ LICENSE_FILES:=COPYING
+endef
+
+define Package/libqmi-utils/description
+ Utils to talk to QMI enabled modems
+endef
+
+CONFIGURE_ARGS += \
+ --disable-static \
+ --disable-gtk-doc \
+ --disable-gtk-doc-html \
+ --disable-gtk-doc-pdf \
+ --enable-mbim-qmux \
+ --enable-firmware-update \
+ --without-udev
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/include/libqmi-glib \
+ $(1)/usr/include/
+
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so* \
+ $(1)/usr/lib/
+
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qmi-glib.pc \
+ $(1)/usr/lib/pkgconfig
+endef
+
+define Package/libqmi/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so.* \
+ $(1)/usr/lib/
+
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/qmi-proxy $(1)/usr/lib/
+endef
+
+define Package/qmi-utils/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-firmware-update $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,libqmi))
+$(eval $(call BuildPackage,qmi-utils))