[packages] add basic sslh (SSL/SSH multiplexer), uci config support welcome :) (close...
[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 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libdbi
12 PKG_VERSION:=0.8.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/libdbi
17 PKG_MD5SUM:=
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libdbi
22 NAME:=libdbi
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE+= (library)
26 endef
27
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.
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 all install
38 endef
39
40 define Build/InstallDev
41 mkdir -p $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/
43 mkdir -p $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.{a,so*} $(1)/usr/lib/
45 endef
46
47 define Package/libdbi/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,libdbi))