2 # Copyright (C) 2009-2011 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
/4472
16 PKG_MD5SUM
:=ef7afdd3ea7a29333daa951cda3175bb
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
-lsqlite3
42 CFLAGS
="$(TARGET_CFLAGS)" \
43 INCS
="$(TARGET_CPPFLAGS)" \
44 LIBS
="$(TARGET_LDFLAGS)" \
48 define Package
/lsqlite3
/install
49 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
50 $(CP
) $(PKG_BUILD_DIR
)/lsqlite3.so
$(1)/usr
/lib
/lua
/
53 $(eval
$(call BuildPackage
,lsqlite3
))