php-geoip.mk 828 B

12345678910111213141516171819202122232425
  1. ################################################################################
  2. #
  3. # php-geoip
  4. #
  5. ################################################################################
  6. PHP_GEOIP_VERSION = 1fd53288458100e9e30acf5a62bc9ef8426513d3
  7. PHP_GEOIP_SITE = $(call github,php7-extensions,ext-php7-geoip,$(PHP_GEOIP_VERSION))
  8. PHP_GEOIP_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
  9. --with-geoip=$(STAGING_DIR)/usr
  10. # phpize does the autoconf magic
  11. PHP_GEOIP_DEPENDENCIES = geoip php host-autoconf
  12. PHP_GEOIP_LICENSE = PHP
  13. PHP_GEOIP_LICENSE_FILES = LICENSE
  14. define PHP_GEOIP_PHPIZE
  15. (cd $(@D); \
  16. PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
  17. PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
  18. $(STAGING_DIR)/usr/bin/phpize)
  19. endef
  20. PHP_GEOIP_PRE_CONFIGURE_HOOKS += PHP_GEOIP_PHPIZE
  21. $(eval $(autotools-package))