e6d8c83e14199a87f4e1ee874f405fbdb80a95c4
[openwrt/svn-archive/archive.git] / libs / libdbi / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libdbi
11 PKG_VERSION:=0.8.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/libdbi
16 PKG_MD5SUM:=
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libdbi
21 NAME:=libdbi
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE+= (library)
25 endef
26
27 define Package/libdbi/description
28 SQLite is a small C library that implements a self-contained, embeddable,
29 zero-configuration SQL database engine. This package contains the SQLite
30 (v3.x) shared library, used by other programs.
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 DESTDIR="$(PKG_INSTALL_DIR)" \
36 all install
37 endef
38
39 define Build/InstallDev
40 mkdir -p $(1)/usr/include
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/
42 mkdir -p $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.{a,so*} $(1)/usr/lib/
44 endef
45
46 define Package/libdbi/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.so.* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,libdbi))