php-geoip.mk 855 B

123456789101112131415161718192021222324252627
  1. ################################################################################
  2. #
  3. # php-geoip
  4. #
  5. ################################################################################
  6. PHP_GEOIP_VERSION = 1.1.0
  7. PHP_GEOIP_SOURCE = geoip-$(PHP_GEOIP_VERSION).tgz
  8. # pecl.php.net returns html with db connect failed
  9. PHP_GEOIP_SITE = http://sources.buildroot.net
  10. PHP_GEOIP_CONF_OPT = --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
  15. PHP_GEOIP_LICENSE_FILES = LICENSE
  16. define PHP_GEOIP_PHPIZE
  17. (cd $(@D); \
  18. PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
  19. PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
  20. $(STAGING_DIR)/usr/bin/phpize)
  21. endef
  22. PHP_GEOIP_PRE_CONFIGURE_HOOKS += PHP_GEOIP_PHPIZE
  23. $(eval $(autotools-package))