2 # Copyright (C) 2009-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
10 PKG_NAME
:=libdbi-drivers
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/libdbi-drivers
16 PKG_MD5SUM
:=9f47b960e225eede2cdeaabf7d22f59f
19 PKG_LICENSE_FILE
:=COPYING
20 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libdbi-drivers
/default
30 URL
:=http
://libdbi-drivers.sourceforge.net
/
33 define Package
/libdbi-drivers
34 $(call Package
/libdbi-drivers
/default
)
35 DEPENDS
:=libdbi
+libdbd-mysql
+libdbd-pgsql
+libdbd-sqlite3
36 TITLE
:=Database drivers for libdbi
39 define Package
/libdbd-mysql
40 $(call Package
/libdbi-drivers
/default
)
41 DEPENDS
:=libdbi
+libmysqlclient
42 TITLE
:=MySQL database server driver for libdbi
45 define Package
/libdbd-pgsql
46 $(call Package
/libdbi-drivers
/default
)
47 DEPENDS
:=libdbi
+libpq
48 TITLE
:=PostgreSQL database server driver for libdbi
51 define Package
/libdbd-sqlite3
52 $(call Package
/libdbi-drivers
/default
)
53 DEPENDS
:=libdbi
+libsqlite3
54 TITLE
:=SQLite3 database driver for libdbi
62 --with-dbi-incdir
=$(STAGING_DIR
)/usr
/include \
63 --with-dbi-libdir
=$(STAGING_DIR
)/usr
/lib
65 ifneq ($(CONFIG_PACKAGE_libdbd-mysql
),)
68 --with-mysql-incdir
=$(STAGING_DIR
)/usr
/include/mysql \
69 --with-mysql-libdir
=$(STAGING_DIR
)/usr
/lib
/mysql
71 -L
$(STAGING_DIR
)/usr
/lib
/mysql
/
73 CONFIGURE_ARGS
+= --without-mysql
76 ifneq ($(SDK
)$(CONFIG_PACKAGE_libdbd-pgsql
),)
79 --with-pgsql-incdir
=$(STAGING_DIR
)/usr
/include \
80 --with-pgsql-libdir
=$(STAGING_DIR
)/usr
/lib
82 CONFIGURE_ARGS
+= --without-pgsql
85 ifneq ($(SDK
)$(CONFIG_PACKAGE_libdbd-sqlite3
),)
88 --with-sqlite3-incdir
=$(STAGING_DIR
)/usr
/include \
89 --with-sqlite3-libdir
=$(STAGING_DIR
)/usr
/lib
91 CONFIGURE_ARGS
+= --without-sqlite3
95 define Package
/libdbd-
$(1)/install
96 $(INSTALL_DIR
) $$(1)/usr
/lib
/dbd
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dbd
/libdbd
$(1).so
$$(1)/usr
/lib
/dbd
/
99 $$(eval
$$(call BuildPackage
,libdbd-
$(1)))
102 #$(eval $(call BuildPackage,libdbi-drivers))
103 $(eval
$(call BuildPlugin
,mysql
))
104 $(eval
$(call BuildPlugin
,pgsql
))
105 $(eval
$(call BuildPlugin
,sqlite3
))