2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.tildeslash.com
/libzdb
/dist/
17 PKG_MD5SUM
:=3bb9efff10a1f3ebc5b76c1055c48635
22 PKG_BUILD_DEPENDS
:=libzdb
/host
24 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=A thread-safe multi database connection pool library
30 MAINTAINER
:=Gergely Kiss
<mail.gery@gmail.com
>
31 URL
:=http
://www.tildeslash.com
/libzdb
/
32 DEPENDS
:=+libsqlite3
+libpq
+libmysqlclient
+zlib
+libpthread
+libopenssl
35 define Package
/libzdb
/description
36 zdb is a database library with thread-safe connection pooling. The library can connect
37 transparently to multiple database systems. It has zero runtime configuration and connections
38 are specified via a URL scheme. A modern object-oriented API is provided.
39 zdb supports MySQL
, PostgreSQL
, SQLite
, and Oracle.
40 NOTE
: This package does not
include Oracle support.
43 CONFIGURE_ARGS
+= --disable-profiling \
48 --enable-sqliteunlock \
51 TARGET_CPPFLAGS
+= -std
=c99
53 include $(INCLUDE_DIR
)/host-build.mk
55 define Hooks
/HostConfigure
/Pre
62 $(HOSTCC
) $(HOST_BUILD_DIR
)/tools
/filterh
/lex.yy.c
-o
$(HOST_BUILD_DIR
)/tools
/bin
/filterh
66 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
67 $(CP
) $(HOST_BUILD_DIR
)/tools
/bin
/filterh
$(STAGING_DIR_HOST
)/bin
/
70 $(eval
$(call HostBuild
))
73 $(call Build
/Compile
/Default
)
76 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/include/zdb
78 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/zdb
/ $(1)/usr
/include/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libzdb
* $(1)/usr
/lib
/
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/zdb.
pc $(1)/usr
/lib
/pkgconfig
84 define Package
/libzdb
/install
85 $(INSTALL_DIR
) $(1)/usr
/lib
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libzdb.so
* $(1)/usr
/lib
/
89 $(eval
$(call BuildPackage
,libzdb
))