From: Florian Fainelli Date: Sat, 8 Dec 2012 17:05:57 +0000 (+0000) Subject: libqmi: helper library and utils to talk to QMI enabled modems X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=226f6b278649dba53c0339e05722c1416a271c48;p=openwrt%2Fsvn-archive%2Fpackages.git libqmi: helper library and utils to talk to QMI enabled modems Based on work of Aleksander Morgado. [florian: stage libqmi-glib headers] Signed-off-by: Cezary Jackiewicz Signed-off-by: Florian Fainelli SVN-Revision: 34579 --- diff --git a/libs/libqmi/Makefile b/libs/libqmi/Makefile new file mode 100644 index 000000000..d49b43edb --- /dev/null +++ b/libs/libqmi/Makefile @@ -0,0 +1,53 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=libqmi +PKG_VERSION:=1.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=libqmi-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@GNOME/libqmi/1.0/ +PKG_MD5SUM:=1e00d300616efc1bf8d3e8e541a69f73 + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/libqmi + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+glib2 +zlib +kmod-usb-net-qmi-wwan + TITLE:=Helper library and utils to talk to QMI enabled modems +endef + +define Package/libqmi/description + Helper library and utils to talk to QMI enabled modems +endef + +CONFIGURE_VARS+= CFLAGS="$$$$CFLAGS -DMESSAGE_ENABLE_TRACE" + +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/*.{so*,a,la} \ + $(1)/usr/lib/ +endef + +define Package/libqmi/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/*.so* \ + $(1)/usr/lib/ + + $(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/ +endef + +$(eval $(call BuildPackage,libqmi))