Makefile 890 B

123456789101112131415161718192021222324252627282930313233
  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=$(OPENWRT_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.gz
  10. CMAKE_INSTALL:=1
  11. PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
  12. PKG_LICENSE:=ISC
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/jsonfilter
  16. SECTION:=base
  17. CATEGORY:=Base system
  18. DEPENDS:=+libubox +libjson-c
  19. TITLE:=OpenWrt JSON filter utility
  20. URL:=http://git.openwrt.org/?p=project/jsonpath.git
  21. endef
  22. define Package/jsonfilter/install
  23. $(INSTALL_DIR) $(1)/usr/bin
  24. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jsonpath $(1)/usr/bin/jsonfilter
  25. endef
  26. $(eval $(call BuildPackage,jsonfilter))