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