Root/package/jshn/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=jshn
4PKG_VERSION:=0.1
5PKG_RELEASE=1
6
7include $(INCLUDE_DIR)/package.mk
8
9define Package/jshn
10  SECTION:=utils
11  CATEGORY:=Utilities
12  DEPENDS:=+libjson
13  TITLE:=JSON SHell Notation
14endef
15
16define Package/jshn/description
17  Library for parsing and generating JSON from shell scripts
18endef
19
20PKG_BUILD_DEPENDS += libubox
21TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include --std=gnu99
22
23define Build/Compile
24    $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/jshn src/jshn.c $(TARGET_LDFLAGS) -ljson
25endef
26
27define 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
31endef
32
33$(eval $(call BuildPackage,jshn))
34

Archive Download this file



interactive