n810 battery management: Add calibration data parser
[openwrt.git] / package / jshn / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=jshn
4 PKG_VERSION:=0.1
5 PKG_RELEASE=1
6
7 include $(INCLUDE_DIR)/package.mk
8
9 define Package/jshn
10 SECTION:=utils
11 CATEGORY:=Utilities
12 DEPENDS:=+libjson
13 TITLE:=JSON SHell Notation
14 endef
15
16 define Package/jshn/description
17 Library for parsing and generating JSON from shell scripts
18 endef
19
20 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include --std=gnu99
21
22 define Build/Compile
23 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/jshn src/jshn.c $(TARGET_LDFLAGS) -ljson
24 endef
25
26 define Package/jshn/install
27 $(INSTALL_DIR) $(1)/bin $(1)/lib/functions
28 $(INSTALL_BIN) $(PKG_BUILD_DIR)/jshn $(1)/bin
29 $(INSTALL_DATA) ./files/jshn.sh $(1)/lib/functions
30 endef
31
32 $(eval $(call BuildPackage,jshn))
This page took 0.0402 seconds and 5 git commands to generate.