b43: fix reloading config settings after channel changes or hostapd restart (#8033)
[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 PKG_BUILD_DEPENDS += libubox
21 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include --std=gnu99
22
23 define Build/Compile
24 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/jshn src/jshn.c $(TARGET_LDFLAGS) -ljson
25 endef
26
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
31 endef
32
33 $(eval $(call BuildPackage,jshn))
This page took 0.040264 seconds and 5 git commands to generate.