1 ################################################################################
5 ################################################################################
7 PHP_GEOIP_VERSION = 1.1.1
8 PHP_GEOIP_SOURCE = geoip-$(PHP_GEOIP_VERSION).tgz
9 PHP_GEOIP_SITE = https://pecl.php.net/get
10 PHP_GEOIP_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
11 --with-geoip=$(STAGING_DIR)/usr
12 # phpize does the autoconf magic
13 PHP_GEOIP_DEPENDENCIES = geoip php host-autoconf
14 PHP_GEOIP_LICENSE = PHP-3.01
15 PHP_GEOIP_LICENSE_FILES = geoip.c
17 define PHP_GEOIP_PHPIZE
19 PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
20 PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
21 $(STAGING_DIR)/usr/bin/phpize)
24 PHP_GEOIP_PRE_CONFIGURE_HOOKS += PHP_GEOIP_PHPIZE
26 $(eval $(autotools-package))