kumquat-buildroot/package/luasec/luasec.mk
Assaf Inbal 61cdd3c760 luasec: New package
LuaSec is a Lua binding for OpenSSL library to provide TLS/SSL
communication.

[Thomas: adjust header in .mk file, add missing 'mkdir -p' before
installation, remove useless quotes.]

Signed-off-by: Assaf Inbal <shmuelzon@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2013-08-12 10:12:13 +02:00

34 lines
937 B
Makefile

################################################################################
#
# luasec
#
################################################################################
LUASEC_VERSION = 0.4.1
LUASEC_SITE = http://www.inf.puc-rio.br/~brunoos/luasec/download/
LUASEC_LICENSE = MIT
LUASEC_LICENSE_FILES = LICENSE
LUASEC_DEPENDENCIES = lua openssl
define LUASEC_BUILD_CMDS
$(MAKE) -C $(@D) CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -fPIC" \
LDFLAGS="$(TARGET_LDFLAGS) -shared" linux
endef
define LUASEC_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/usr/share/lua
mkdir -p $(TARGET_DIR)/usr/lib/lua
$(MAKE) -C $(@D) \
LUAPATH="$(TARGET_DIR)/usr/share/lua" \
LUACPATH="$(TARGET_DIR)/usr/lib/lua" install
endef
define LUASEC_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/lib/lua/ssl.so
rm -rf $(TARGET_DIR)/usr/share/lua/ssl
rm -f $(TARGET_DIR)/usr/share/lua/ssl.lua
endef
$(eval $(generic-package))