uqmi: Add proper IPv6 support
[openwrt/openwrt.git] / package / network / utils / uqmi / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=uqmi
4 PKG_VERSION:=2015-08-13
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/uqmi.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=8a97586e9445a60e355dea13aa87885ab3dcb277
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 PKG_MAINTAINER:=Matti Laakso <malaakso@elisanet.fi>
13 # PKG_MIRROR_MD5SUM:=
14 # CMAKE_INSTALL:=1
15
16 PKG_LICENSE:=GPL-2.0
17 PKG_LICENSE_FILES:=
18
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/uqmi
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libubox +libblobmsg-json +kmod-usb-net +kmod-usb-net-qmi-wwan +wwan
28 TITLE:=Control utility for mobile broadband modems
29 endef
30
31 define Package/uqmi/description
32 uqmi is a command line tool for controlling mobile broadband modems using
33 the QMI-protocol.
34 endef
35
36 TARGET_CFLAGS += \
37 -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
38
39 TARGET_LDFLAGS += -Wl,--gc-sections
40
41 CMAKE_OPTIONS += \
42 -DDEBUG=1
43
44 define Package/uqmi/install
45 $(INSTALL_DIR) $(1)/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi $(1)/sbin/
47 $(CP) ./files/* $(1)/
48 endef
49
50 $(eval $(call BuildPackage,uqmi))