2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://luaforge.net
/frs
/download.php
/2565
16 PKG_MD5SUM
:=368da52fc52b9c5ba122f8f348db332b
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/lsqlite3
25 URL
:=http
://luasqlite.luaforge.net
/lsqlite3.html
26 DEPENDS
:=+lua
+libsqlite3
29 define Package
/lsqlite3
/description
30 LuaSQLite
3 is a thin wrapper around the public domain SQLite3 database engine.
33 define Build
/Configure
36 TARGET_CFLAGS
+= $(FPIC
) $(TARGET_CPPFLAGS
) -std
=c99
38 TARGET_LDFLAGS
+= -llua
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 CFLAGS
="$(TARGET_CFLAGS)" \
44 INCS
="$(TARGET_CPPFLAGS)" \
45 LIBS
="$(TARGET_LDFLAGS)" \
50 define Package
/lsqlite3
/install
51 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
52 $(CP
) $(PKG_BUILD_DIR
)/lsqlite3.so
$(1)/usr
/lib
/lua
/
55 $(eval
$(call BuildPackage
,lsqlite3
))