ulogd: moved to github
[openwrt.org/packages.git] / libs / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=libdbi-drivers
PKG_VERSION:=0.9.0
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/libdbi-drivers
PKG_MD5SUM:=9f47b960e225eede2cdeaabf7d22f59f
 
PKG_FIXUP:=autoreconf
 
include $(INCLUDE_DIR)/package.mk
 
define Package/libdbi-drivers/default
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=libdbi-drivers
  URL:=http://libdbi-drivers.sourceforge.net/
endef
 
define Package/libdbi-drivers/default/description
       libdbi-drivers project provides the database-specific drivers
for the libdbi framework
endef
 
define Package/libdbi-drivers-mysql
$(call Package/libdbi-drivers/default)
  DEPENDS:=libdbi +PACKAGE_libdbi-drivers-mysql:libmysqlclient
  TITLE:= libdbi-drivers-mysql
endef
 
define Package/libdbi-drivers-mysql2/description
       libdbi-driver for mysql
endef
 
define Package/libdbi-drivers-pgsql
$(call Package/libdbi-drivers/default)
  DEPENDS:=libdbi +PACKAGE_libdbi-drivers-pgsql:libpq
  TITLE:= libdbi-drivers-pgsql
endef
 
define Package/libdbi-drivers-pgsql/description
       libdbi-driver for pgsql
endef
 
define Package/libdbi-drivers-sqlite2
$(call Package/libdbi-drivers/default)
  DEPENDS:=libdbi +PACKAGE_libdbi-drivers-sqlite2:libsqlite2
  TITLE:= libdbi-drivers-sqlite2
endef
 
define Package/libdbi-drivers-sqlite2/description
       libdbi-driver for sqlite2
endef
 
define Package/libdbi-drivers-sqlite3
$(call Package/libdbi-drivers/default)
  DEPENDS:=libdbi +PACKAGE_libdbi-drivers-sqlite3:libsqlite3
  TITLE:= libdbi-drivers-sqlite3
endef
 
define Package/libdbi-drivers-sqlite3/description
       libdbi-driver for sqlite3
endef
 
CONFIGURE_ARGS += \
                  --enable-shared \
                  --disable-static \
                  --disable-rpath \
                  --disable-docs \
                  --with-dbi-incdir=$(STAGING_DIR)/usr/include \
                  --with-dbi-libdir=$(STAGING_DIR)/usr/lib
 
ifneq ($(CONFIG_PACKAGE_libdbi-drivers-mysql),)
CONFIGURE_ARGS += \
                  --with-mysql \
                  --with-mysql-incdir=$(STAGING_DIR)/usr/include/mysql \
                  --with-mysql-libdir=$(STAGING_DIR)/usr/lib/mysql
TARGET_LDFLAGS += \
                  -L$(STAGING_DIR)/usr/lib/mysql/
endif
 
ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-pgsql),)
CONFIGURE_ARGS += \
                  --with-pgsql \
                  --with-pgsql-incdir=$(STAGING_DIR)/usr/include \
                  --with-pgsql-libdir=$(STAGING_DIR)/usr/lib
endif
 
ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-sqlite2),)
CONFIGURE_ARGS += \
                  --with-sqlite \
                  --with-sqlite-incdir=$(STAGING_DIR)/usr/include \
                  --with-sqlite-libdir=$(STAGING_DIR)/usr/lib
endif
 
ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-sqlite3),)
CONFIGURE_ARGS += \
                  --with-sqlite3 \
                  --with-sqlite3-incdir=$(STAGING_DIR)/usr/include \
                  --with-sqlite3-libdir=$(STAGING_DIR)/usr/lib
endif
 
define Package/libdbi-drivers-mysql/install
        $(INSTALL_DIR) $(1)/usr/lib/dbd
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/mysql/.libs/libdbdmysql.so $(1)/usr/lib/dbd
endef
 
define Package/libdbi-drivers-pgsql/install
        $(INSTALL_DIR) $(1)/usr/lib/dbd
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/pgsql/.libs/libdbdpgsql.so $(1)/usr/lib/dbd
endef
 
define Package/libdbi-drivers-sqlite2/install
        $(INSTALL_DIR) $(1)/usr/lib/dbd
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/sqlite/.libs/libdbdsqlite.so $(1)/usr/lib/dbd
endef
 
define Package/libdbi-drivers-sqlite3/install
        $(INSTALL_DIR) $(1)/usr/lib/dbd
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/sqlite3/.libs/libdbdsqlite3.so $(1)/usr/lib/dbd
endef
 
 
#$(eval $(call BuildPackage,libdbi-drivers))
$(eval $(call BuildPackage,libdbi-drivers-mysql))
$(eval $(call BuildPackage,libdbi-drivers-pgsql))
$(eval $(call BuildPackage,libdbi-drivers-sqlite2))
$(eval $(call BuildPackage,libdbi-drivers-sqlite3))
 
comments