php-gnupg.mk 906 B

123456789101112131415161718192021222324252627
  1. ################################################################################
  2. #
  3. # php-gnupg
  4. #
  5. ################################################################################
  6. PHP_GNUPG_VERSION = 1.3.3
  7. PHP_GNUPG_SOURCE = gnupg-$(PHP_GNUPG_VERSION).tgz
  8. # pecl.php.net returns html with db connect failed
  9. PHP_GNUPG_SITE = http://sources.buildroot.net
  10. # phpize does the autoconf magic
  11. PHP_GNUPG_DEPENDENCIES = php libgpgme host-autoconf host-pkgconf
  12. PHP_GNUPG_CONF_OPT = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
  13. --with-gnupg=$(STAGING_DIR)/usr/include --with-gpg=/usr/bin/gpg
  14. PHP_GNUPG_LICENSE = BSD-2c
  15. PHP_GNUPG_LICENSE_FILES = LICENSE
  16. define PHP_GNUPG_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_GNUPG_PRE_CONFIGURE_HOOKS += PHP_GNUPG_PHPIZE
  23. $(eval $(autotools-package))