blob: 53af4ba54fa52b776caa1bd17a42e39545f773f4 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2009-2014 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libdbi
11PKG_VERSION:=0.9.0
12PKG_RELEASE:=5
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/libdbi
16PKG_HASH:=dafb6cdca524c628df832b6dd0bf8fabceb103248edb21762c02d3068fca4503
17
18PKG_MAINTAINER:=
19PKG_LICENSE:=LGPL-2.1-or-later
20PKG_LICENSE_FILES:=COPYING
21
22PKG_INSTALL:=1
23PKG_BUILD_PARALLEL:=1
24
25include $(INCLUDE_DIR)/package.mk
26
27define Package/libdbi
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=Database Independent Abstraction Layer library
31 URL:=http://libdbi.sourceforge.net/
32endef
33
34define Package/libdbi/description
35 This package provides a database-independent abstraction layer library in C.
36endef
37
38CONFIGURE_ARGS += \
39 --enable-shared \
40 --enable-static \
41 --disable-docs
42
43define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include
45 $(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.{a,so*} $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbi.pc $(1)/usr/lib/pkgconfig/
50endef
51
52define Package/libdbi/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.so.* $(1)/usr/lib/
55endef
56
57$(eval $(call BuildPackage,libdbi))