php-memcached.mk 1009 B

1234567891011121314151617181920212223242526272829
  1. ################################################################################
  2. #
  3. # php-memcached
  4. #
  5. ################################################################################
  6. PHP_MEMCACHED_VERSION = 2.2.0
  7. PHP_MEMCACHED_SOURCE = memcached-$(PHP_MEMCACHED_VERSION).tgz
  8. # pecl.php.net returns html with db connect failed
  9. PHP_MEMCACHED_SITE = http://sources.buildroot.net
  10. PHP_MEMCACHED_CONF_OPT = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
  11. --disable-memcached-sasl \
  12. --with-libmemcached-dir=$(STAGING_DIR)/usr \
  13. --with-zlib-dir=$(STAGING_DIR)/usr
  14. # phpize does the autoconf magic
  15. PHP_MEMCACHED_DEPENDENCIES = libmemcached php zlib host-autoconf host-pkgconf
  16. PHP_MEMCACHED_LICENSE = MIT
  17. PHP_MEMCACHED_LICENSE_FILES = LICENSE
  18. define PHP_MEMCACHED_PHPIZE
  19. (cd $(@D); \
  20. PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
  21. PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
  22. $(STAGING_DIR)/usr/bin/phpize)
  23. endef
  24. PHP_MEMCACHED_PRE_CONFIGURE_HOOKS += PHP_MEMCACHED_PHPIZE
  25. $(eval $(autotools-package))