Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uqmi
  3. PKG_VERSION:=2014-05-27
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=git://nbd.name/uqmi.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=d7a56cad6d6ef3c2a5602fc604e31999eb9e78fa
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. PKG_MAINTAINER:=Matti Laakso <[email protected]>
  11. # PKG_MIRROR_MD5SUM:=
  12. # CMAKE_INSTALL:=1
  13. PKG_LICENSE:=GPLv2
  14. PKG_LICENSE_FILES:=
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/uqmi
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libubox +libblobmsg-json
  22. TITLE:=Control utility for mobile broadband modems
  23. endef
  24. define Package/uqmi/description
  25. uqmi is a command line tool for controlling mobile broadband modems using
  26. the QMI-protocol.
  27. endef
  28. TARGET_CFLAGS += \
  29. -I$(STAGING_DIR)/usr/include
  30. CMAKE_OPTIONS += \
  31. -DDEBUG=1
  32. define Package/uqmi/install
  33. $(INSTALL_DIR) $(1)/sbin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi $(1)/sbin/
  35. $(CP) ./files/* $(1)/
  36. endef
  37. $(eval $(call BuildPackage,uqmi))