1 ################################################################################
5 ################################################################################
7 PHP_GEOIP_VERSION = 1.1.0
8 PHP_GEOIP_SOURCE = geoip-$(PHP_GEOIP_VERSION).tgz
9 # pecl.php.net returns html with db connect failed
10 PHP_GEOIP_SITE = http://sources.buildroot.net
11 PHP_GEOIP_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
12 --with-geoip=$(STAGING_DIR)/usr
13 # phpize does the autoconf magic
14 PHP_GEOIP_DEPENDENCIES = geoip php host-autoconf
15 PHP_GEOIP_LICENSE = PHP
16 PHP_GEOIP_LICENSE_FILES = LICENSE
18 define PHP_GEOIP_PHPIZE
20 PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
21 PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
22 $(STAGING_DIR)/usr/bin/phpize)
25 PHP_GEOIP_PRE_CONFIGURE_HOOKS += PHP_GEOIP_PHPIZE
27 $(eval $(autotools-package))