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