1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# apr-util 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunAPR_UTIL_VERSION = 1.6.1 8*4882a593SmuzhiyunAPR_UTIL_SOURCE = apr-util-$(APR_UTIL_VERSION).tar.bz2 9*4882a593SmuzhiyunAPR_UTIL_SITE = http://archive.apache.org/dist/apr 10*4882a593SmuzhiyunAPR_UTIL_LICENSE = Apache-2.0 11*4882a593SmuzhiyunAPR_UTIL_LICENSE_FILES = LICENSE 12*4882a593SmuzhiyunAPR_UTIL_CPE_ID_VENDOR = apache 13*4882a593SmuzhiyunAPR_UTIL_CPE_ID_PRODUCT = portable_runtime_utility 14*4882a593SmuzhiyunAPR_UTIL_INSTALL_STAGING = YES 15*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES = apr expat 16*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS = \ 17*4882a593Smuzhiyun --with-apr=$(STAGING_DIR)/usr/bin/apr-1-config 18*4882a593SmuzhiyunAPR_UTIL_CONFIG_SCRIPTS = apu-1-config 19*4882a593Smuzhiyun 20*4882a593Smuzhiyunifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y) 21*4882a593Smuzhiyundefine APR_UTIL_FIX_LIBTOOL 22*4882a593Smuzhiyun $(SED) 's,$(PER_PACKAGE_DIR)/apr/,$(PER_PACKAGE_DIR)/apr-util/,g' \ 23*4882a593Smuzhiyun $(STAGING_DIR)/usr/build-1/libtool 24*4882a593Smuzhiyunendef 25*4882a593SmuzhiyunAPR_UTIL_POST_PREPARE_HOOKS += APR_UTIL_FIX_LIBTOOL 26*4882a593Smuzhiyun 27*4882a593Smuzhiyundefine APR_UTIL_FIX_RULES_MK 28*4882a593Smuzhiyun $(SED) 's,$(PER_PACKAGE_DIR)/apr/,$(PER_PACKAGE_DIR)/apr-util/,g' \ 29*4882a593Smuzhiyun $(@D)/build/rules.mk 30*4882a593Smuzhiyunendef 31*4882a593SmuzhiyunAPR_UTIL_POST_CONFIGURE_HOOKS += APR_UTIL_FIX_RULES_MK 32*4882a593Smuzhiyunendif 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun# When iconv is available, then use it to provide charset conversion 35*4882a593Smuzhiyun# features. 36*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) 37*4882a593Smuzhiyun 38*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BERKELEYDB),y) 39*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --with-dbm=db53 --with-berkeley-db="$(STAGING_DIR)/usr" 40*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += berkeleydb 41*4882a593Smuzhiyunelse 42*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-berkeley-db 43*4882a593Smuzhiyunendif 44*4882a593Smuzhiyun 45*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GDBM),y) 46*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --with-gdbm="$(STAGING_DIR)/usr" 47*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += gdbm 48*4882a593Smuzhiyunelse 49*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-gdbm 50*4882a593Smuzhiyunendif 51*4882a593Smuzhiyun 52*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_MYSQL),y) 53*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --with-mysql="$(STAGING_DIR)/usr" 54*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += mysql 55*4882a593Smuzhiyunelse 56*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-mysql 57*4882a593Smuzhiyunendif 58*4882a593Smuzhiyun 59*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SQLITE),y) 60*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --with-sqlite3="$(STAGING_DIR)/usr" 61*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += sqlite 62*4882a593Smuzhiyunelse 63*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-sqlite3 64*4882a593Smuzhiyunendif 65*4882a593Smuzhiyun 66*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENLDAP),y) 67*4882a593SmuzhiyunAPR_UTIL_CONF_ENV += ac_cv_ldap_set_rebind_proc_style=three 68*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += \ 69*4882a593Smuzhiyun --with-ldap \ 70*4882a593Smuzhiyun --with-ldap-include="$(STAGING_DIR)/usr/include/" \ 71*4882a593Smuzhiyun --with-ldap-lib="$(STAGING_DIR)/usr/lib" 72*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += openldap 73*4882a593Smuzhiyunelse 74*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-ldap 75*4882a593Smuzhiyunendif 76*4882a593Smuzhiyun 77*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y) 78*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr" 79*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += openssl 80*4882a593Smuzhiyunelse 81*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-crypto 82*4882a593Smuzhiyunendif 83*4882a593Smuzhiyun 84*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_POSTGRESQL),y) 85*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --with-pgsql="$(STAGING_DIR)/usr" 86*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += postgresql 87*4882a593Smuzhiyunelse 88*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-pgsql 89*4882a593Smuzhiyunendif 90*4882a593Smuzhiyun 91*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_UNIXODBC),y) 92*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --with-odbc="$(STAGING_DIR)/usr" 93*4882a593Smuzhiyun# avoid using target binary $(STAGING_DIR)/usr/bin/odbc_config 94*4882a593SmuzhiyunAPR_UTIL_CONF_ENV += ac_cv_path_ODBC_CONFIG="" 95*4882a593SmuzhiyunAPR_UTIL_DEPENDENCIES += unixodbc 96*4882a593Smuzhiyunelse 97*4882a593SmuzhiyunAPR_UTIL_CONF_OPTS += --without-odbc 98*4882a593Smuzhiyunendif 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun$(eval $(autotools-package)) 101