[packages] lsqlite3: actually link against libsqlite3, fixes segfault when accessing...
[openwrt/svn-archive/archive.git] / lang / lsqlite3 / Makefile
index 3a0ab5d..b5e15d3 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2009-2010 OpenWrt.org
+# Copyright (C) 2009-2011 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lsqlite3
-PKG_VERSION:=6
-PKG_RELEASE:=1
+PKG_VERSION:=7
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2565
-PKG_MD5SUM:=368da52fc52b9c5ba122f8f348db332b
+PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/4472
+PKG_MD5SUM:=ef7afdd3ea7a29333daa951cda3175bb
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -35,17 +35,15 @@ endef
 
 TARGET_CFLAGS += $(FPIC) $(TARGET_CPPFLAGS) -std=c99
 
-TARGET_LDFLAGS += -llua
+TARGET_LDFLAGS += -llua -lsqlite3
 
-define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               CC="$(TARGET_CC)" \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               INCS="$(TARGET_CPPFLAGS)" \
-               LIBS="$(TARGET_LDFLAGS)" \
-               SHFLAGS="-shared" \
-               UNAME="Linux" 
-endef
+MAKE_FLAGS += \
+       CC="$(TARGET_CC)" \
+       CFLAGS="$(TARGET_CFLAGS)" \
+       INCS="$(TARGET_CPPFLAGS)" \
+       LIBS="$(TARGET_LDFLAGS)" \
+       SHFLAGS="-shared" \
+       UNAME="Linux"
 
 define Package/lsqlite3/install
        $(INSTALL_DIR) $(1)/usr/lib/lua