[package] add lsqlite3 (#5783)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17795 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
fb20e03199
commit
5688e29669
56
lang/lsqlite3/Makefile
Normal file
56
lang/lsqlite3/Makefile
Normal file
@ -0,0 +1,56 @@
|
||||
#
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lsqlite3
|
||||
PKG_VERSION:=6
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2565
|
||||
PKG_MD5SUM:=368da52fc52b9c5ba122f8f348db332b
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lsqlite3
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=LuaSQLite3
|
||||
URL:=http://luasqlite.luaforge.net/lsqlite3.html
|
||||
DEPENDS:=+lua +libsqlite3
|
||||
endef
|
||||
|
||||
define Package/lsqlite3/description
|
||||
LuaSQLite 3 is a thin wrapper around the public domain SQLite3 database engine.
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC) $(TARGET_CPPFLAGS)
|
||||
|
||||
TARGET_LDFLAGS += -llua
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
SQLITE3INC="$(STAGING_DIR)/usr/include/" \
|
||||
SQLITE3LIB="$(STAGING_DIR)/usr/lib/" \
|
||||
LUAINC="$(TARGET_CPPFLAGS)" \
|
||||
LUALIB="$(TARGET_LDFLAGS)" \
|
||||
LIBS="-shared $(TARGET_LDFLAGS)" \
|
||||
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
||||
LD="$(TARGET_CROSS)ld -shared"
|
||||
endef
|
||||
|
||||
define Package/lsqlite3/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(CP) $(PKG_BUILD_DIR)/lsqlite3.so $(1)/usr/lib/lua/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,lsqlite3))
|
Loading…
x
Reference in New Issue
Block a user