php-geoip.mk 833 B

12345678910111213141516171819202122232425
  1. ################################################################################
  2. #
  3. # php-geoip
  4. #
  5. ################################################################################
  6. PHP_GEOIP_VERSION = ebb68228ad94298a305710f701b2ade9acff985d
  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-3.01
  13. PHP_GEOIP_LICENSE_FILES = geoip.c
  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))