2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/libdbi
19 include $(INCLUDE_DIR)/package.mk
28 define Package/libdbi/description
29 SQLite is a small C library that implements a self-contained, embeddable,
30 zero-configuration SQL database engine. This package contains the SQLite
31 (v3.x) shared library, used by other programs.
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
40 define Build/InstallDev
41 mkdir -p $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.{a,so*} $(1)/usr/lib/
47 define Package/libdbi/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.so.* $(1)/usr/lib/
52 $(eval $(call BuildPackage,libdbi))