kumquat-buildroot/package/luasql-sqlite3/luasql-sqlite3.mk
Francois Perrad 63058f8b02 luasql-sqlite3: renamed like with LuaRocks
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[yann.morin.1998@free.fr: select BR2_PACKAGE_SQLITE]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-01-13 23:18:11 +01:00

34 lines
950 B
Makefile

################################################################################
#
# luasql-sqlite3
#
################################################################################
LUASQL_SQLITE3_VERSION = v2.3.0
LUASQL_SQLITE3_SITE = https://github.com/keplerproject/luasql/tarball/$(LUASQL_SQLITE3_VERSION)
LUASQL_SQLITE3_LICENSE = MIT
LUASQL_SQLITE3_LICENSE_FILES = README
LUASQL_SQLITE3_DEPENDENCIES = luainterpreter sqlite
LUASQL_SQLITE3_MAKE_FLAGS = \
CC="$(TARGET_CC)" \
LD="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -fPIC" \
T="sqlite3" \
DRIVER_LIBS="-L$(STAGING_DIR)/usr/lib -lsqlite3"
define LUASQL_SQLITE3_BUILD_CMDS
$(MAKE) -C $(@D) $(LUASQL_SQLITE3_MAKE_FLAGS)
endef
define LUASQL_SQLITE3_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) $(LUASQL_SQLITE3_MAKE_FLAGS) \
PREFIX="$(TARGET_DIR)/usr" install
endef
define LUASQL_SQLITE3_UNINSTALL_TARGET_CMDS
rm -rf $(TARGET_DIR)/usr/lib/lua/5.1/luasql
endef
$(eval $(generic-package))