b961e3fb5abbd5891e1c2822504b112e9cfc3f6a
[openwrt/openwrt.git] / package / network / utils / uqmi / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=uqmi
4 PKG_VERSION:=2014-10-02
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:=23d6efc49cc349425d36800a4bf46d544e2ed7ef
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:=GPLv2
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
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))