make gdbm using libtool2 the way it requires
[openwrt/svn-archive/archive.git] / libs / libdbi / Makefile
1 #
2 # Copyright (C) 2009-2010 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:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/libdbi
16 PKG_MD5SUM:=ca66db78d479cbfa727cf3245b5864ae
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libdbi
24 NAME:=libdbi
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE+= (library)
28 URL:=http://libdbi.sourceforge.net/
29 endef
30
31 define Package/libdbi/description
32 SQLite is a small C library that implements a self-contained, embeddable,
33 zero-configuration SQL database engine. This package contains the SQLite
34 (v3.x) shared library, used by other programs.
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.{a,so*} $(1)/usr/lib/
42 endef
43
44 define Package/libdbi/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.so.* $(1)/usr/lib/
47 endef
48
49 $(eval $(call BuildPackage,libdbi))