kumquat-buildroot/package/lbase64/lbase64.mk
Assaf Inbal a28ec29a9e lbase64: New package
This package adds base64 encode/decode functionality for Lua

[Peter: fix file header, use TARGET_CONFIGURE_OPTS, drop quotes around paths]
Signed-off-by: Assaf Inbal <shmuelzon@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-17 23:13:36 +02:00

33 lines
820 B
Makefile

################################################################################
#
# lbase64
#
################################################################################
LBASE64_VERSION = 20100323
LBASE64_SITE = http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1
LBASE64_SOURCE = lbase64.tar.gz
LBASE64_LICENSE = Public domain
LBASE64_LICENSE_FILES = README
LBASE64_DEPENDENCIES = lua
define LBASE64_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -fPIC" so
endef
define LBASE64_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/base64.so \
$(TARGET_DIR)/usr/lib/lua/base64.so
endef
define LBASE64_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/lib/lua/base64.so
endef
define LBASE64_CLEAN_CMDS
$(MAKE) -C $(@D) clean
endef
$(eval $(generic-package))