1 include $(TOPDIR
)/rules.mk
7 include $(INCLUDE_DIR
)/package.mk
13 TITLE
:=JSON SHell Notation
16 define Package
/jshn
/description
17 Library for parsing and generating JSON from
shell scripts
20 PKG_BUILD_DEPENDS
+= libubox
21 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include --std
=gnu99
24 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/jshn src
/jshn.c
$(TARGET_LDFLAGS
) -ljson
27 define Package
/jshn
/install
28 $(INSTALL_DIR
) $(1)/bin
$(1)/lib
/functions
29 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/jshn
$(1)/bin
30 $(INSTALL_DATA
) .
/files
/jshn.sh
$(1)/lib
/functions
33 $(eval
$(call BuildPackage
,jshn
))