Makefile 840 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (C) 2015 Superglue
  3. #
  4. include $(TOPDIR)/rules.mk
  5. SOURCE_ROOT_DIR:=$(TOPDIR)/..
  6. PKG_NAME:=jshon
  7. PKG_VERSION:=0.1
  8. PKG_RELEASE:=1
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  10. PKG_BUILD_PARALLEL:=1
  11. PKG_BUILD_DEPENDS:=jansson
  12. include $(INCLUDE_DIR)/package.mk
  13. # Custom variable in order to copy straight from source tree into build tree
  14. PKG_LOCAL_SOURCE_DIR:=$(TOPDIR)/../jshon/
  15. PKG_UNPACK:=$(CP) -r $(PKG_LOCAL_SOURCE_DIR)/* $(PKG_BUILD_DIR)
  16. define Package/jshon
  17. SECTION:=jshon
  18. CATEGORY:=Superglue
  19. TITLE:=jshon
  20. DEPENDS:=+jansson
  21. MAINTAINER:=Superglue
  22. endef
  23. define Package/jshon/description
  24. jshon - parses, reads and creates JSON
  25. endef
  26. define Package/jshon/install
  27. $(INSTALL_DIR) $(1)/usr/bin/
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/jshon $(1)/usr/bin/
  29. endef
  30. $(eval $(call BuildPackage,jshon,+jansson))