package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / apr-util / apr-util.mk
blobbc0572e1109ab6699be661648222a8384a1510f1
1 ################################################################################
3 # apr-util
5 ################################################################################
7 APR_UTIL_VERSION = 1.5.4
8 APR_UTIL_SITE = http://archive.apache.org/dist/apr
9 APR_UTIL_LICENSE = Apache-2.0
10 APR_UTIL_LICENSE_FILES = LICENSE
11 APR_UTIL_INSTALL_STAGING = YES
12 APR_UTIL_DEPENDENCIES = apr expat
13 APR_UTIL_CONF_OPTS = \
14 --with-apr=$(STAGING_DIR)/usr/bin/apr-1-config
15 APR_UTIL_CONFIG_SCRIPTS = apu-1-config
17 # When iconv is available, then use it to provide charset conversion
18 # features.
19 APR_UTIL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
21 ifeq ($(BR2_PACKAGE_BERKELEYDB),y)
22 APR_UTIL_CONF_OPTS += --with-dbm=db53 --with-berkeley-db="$(STAGING_DIR)/usr"
23 APR_UTIL_DEPENDENCIES += berkeleydb
24 else
25 APR_UTIL_CONF_OPTS += --without-berkeley-db
26 endif
28 ifeq ($(BR2_PACKAGE_GDBM),y)
29 APR_UTIL_CONF_OPTS += --with-gdbm="$(STAGING_DIR)/usr"
30 APR_UTIL_DEPENDENCIES += gdbm
31 else
32 APR_UTIL_CONF_OPTS += --without-gdbm
33 endif
35 ifeq ($(BR2_PACKAGE_MYSQL),y)
36 APR_UTIL_CONF_OPTS += --with-mysql="$(STAGING_DIR)/usr"
37 APR_UTIL_DEPENDENCIES += mysql
38 else
39 APR_UTIL_CONF_OPTS += --without-mysql
40 endif
42 ifeq ($(BR2_PACKAGE_SQLITE),y)
43 APR_UTIL_CONF_OPTS += --with-sqlite3="$(STAGING_DIR)/usr"
44 APR_UTIL_DEPENDENCIES += sqlite
45 else
46 APR_UTIL_CONF_OPTS += --without-sqlite3
47 endif
49 ifeq ($(BR2_PACKAGE_OPENSSL),y)
50 APR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr"
51 APR_UTIL_DEPENDENCIES += openssl
52 else
53 APR_UTIL_CONF_OPTS += --without-crypto
54 endif
56 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
57 APR_UTIL_CONF_OPTS += --with-odbc="$(STAGING_DIR)/usr"
58 # avoid using target binary $(STAGING_DIR)/usr/bin/odbc_config
59 APR_UTIL_CONF_ENV += ac_cv_path_ODBC_CONFIG=""
60 APR_UTIL_DEPENDENCIES += unixodbc
61 else
62 APR_UTIL_CONF_OPTS += --without-odbc
63 endif
65 $(eval $(autotools-package))