diff options
author | Danomi Manchego <danomimanchego123@gmail.com> | 2012-07-15 23:00:27 -0400 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-07-17 23:30:43 +0200 |
commit | 7d8434630b397dab7da3739c9f737fc2fbf0e97d (patch) | |
tree | e6d6a3b5e8fec1e8cd1bad7e5e434f8bd760e9c5 /package/luacjson/luacjson.mk | |
parent | 198bc9631aff65f5fe90db068cb1936850736910 (diff) | |
download | buildroot-novena-7d8434630b397dab7da3739c9f737fc2fbf0e97d.tar.gz buildroot-novena-7d8434630b397dab7da3739c9f737fc2fbf0e97d.zip |
new package: luacjson
Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/luacjson/luacjson.mk')
-rw-r--r-- | package/luacjson/luacjson.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/luacjson/luacjson.mk b/package/luacjson/luacjson.mk new file mode 100644 index 000000000..fe92f1603 --- /dev/null +++ b/package/luacjson/luacjson.mk @@ -0,0 +1,32 @@ +############################################################# +# +# luacjson +# +############################################################# +LUACJSON_VERSION = 2.1.0 +LUACJSON_SOURCE = lua-cjson-$(LUACJSON_VERSION).tar.gz +LUACJSON_SITE = http://www.kyne.com.au/~mark/software/download +LUACJSON_DEPENDENCIES = lua + +define LUACJSON_BUILD_CMDS + $(MAKE) -C $(@D) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ + CC="$(TARGET_CC)" \ + LD="$(TARGET_LD)" \ + PREFIX=$(STAGING_DIR)/usr +endef + +define LUACJSON_INSTALL_TARGET_CMDS + install -D -m 0644 $(@D)/cjson.so $(TARGET_DIR)/usr/lib/lua/cjson.so +endef + +define LUACJSON_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef + +define LUACJSON_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/usr/lib/lua/cjson.so +endef + +$(eval $(generic-package)) |