Makefile 966 B

12345678910111213141516171819202122232425262728293031323334
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=jsonfilter
  3. PKG_VERSION:=2016-07-02
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL=$(LEDE_GIT)/project/jsonpath.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=dea067ad67d977c247c300c06676a06adf21e0c7
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  10. PKG_MIRROR_MD5SUM:=44c6c1eeaf7adb5f08e6770d5f6c4dfd43b55e1590f90b972be64125a4ae5db0
  11. CMAKE_INSTALL:=1
  12. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  13. PKG_LICENSE:=ISC
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/jsonfilter
  17. SECTION:=base
  18. CATEGORY:=Base system
  19. DEPENDS:=+libubox +libjson-c
  20. TITLE:=OpenWrt JSON filter utility
  21. URL:=http://git.openwrt.org/?p=project/jsonpath.git
  22. endef
  23. define Package/jsonfilter/install
  24. $(INSTALL_DIR) $(1)/usr/bin
  25. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jsonpath $(1)/usr/bin/jsonfilter
  26. endef
  27. $(eval $(call BuildPackage,jsonfilter))