blob: 44ad90d83736dc0805e5d1f1ba83a99b145bf048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
################################################################################
#
# luasql
#
################################################################################
LUASQL_VERSION = v2.3.0
LUASQL_SITE = $(call github,keplerproject,luasql,$(LUASQL_VERSION))
LUASQL_LICENSE = MIT
LUASQL_LICENSE_FILES = README
LUASQL_DEPENDENCIES = lua
LUASQL_MAKE_FLAGS = \
CC="$(TARGET_CC)" \
LD="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -fPIC"
ifeq ($(BR2_PACKAGE_LUASQL_DRIVER_SQLITE3),y)
LUASQL_DEPENDENCIES += sqlite
LUASQL_MAKE_FLAGS += \
T="sqlite3" \
DRIVER_LIBS="-L$(STAGING_DIR)/usr/lib -lsqlite3"
endif
define LUASQL_BUILD_CMDS
$(MAKE) -C $(@D) $(LUASQL_MAKE_FLAGS)
endef
define LUASQL_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) $(LUASQL_MAKE_FLAGS) PREFIX=/usr \
LUA_DIR="$(TARGET_DIR)/usr/share/lua" \
LUA_LIBDIR="$(TARGET_DIR)/usr/lib/lua" install
endef
$(eval $(generic-package))
|