openwrt_archive/libs/libqmi/Makefile
Hauke Mehrtens 35c34e3cb7 libqmi: update to 1.8.0
libqmi is now hosted on Freedesktop

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>


SVN-Revision: 39536
2014-02-08 17:01:28 +00:00

58 lines
1.3 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=libqmi
PKG_VERSION:=1.8.0
PKG_RELEASE:=1
PKG_SOURCE:=libqmi-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.freedesktop.org/software/libqmi
PKG_MD5SUM:=1c4c64c0894f691632727363abec32b8
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
URL:=http://www.freedesktop.org/wiki/Software/libqmi
endef
define Package/libqmi/description
Helper library and utils to talk to QMI enabled modems
endef
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/
$(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/*.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))