xref: /OK3568_Linux_fs/buildroot/package/php-gnupg/php-gnupg.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# php-gnupg
4#
5################################################################################
6
7PHP_GNUPG_VERSION = 1.5.0
8PHP_GNUPG_SOURCE = gnupg-$(PHP_GNUPG_VERSION).tgz
9PHP_GNUPG_SITE = https://pecl.php.net/get
10# phpize does the autoconf magic
11PHP_GNUPG_DEPENDENCIES = php libgpgme host-autoconf host-pkgconf
12PHP_GNUPG_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
13	--with-gnupg=$(STAGING_DIR)/usr --with-gpg=/usr/bin/gpg
14PHP_GNUPG_LICENSE = BSD-2-Clause
15PHP_GNUPG_LICENSE_FILES = LICENSE
16
17define PHP_GNUPG_PHPIZE
18	(cd $(@D); \
19		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
20		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
21		$(STAGING_DIR)/usr/bin/phpize)
22endef
23
24PHP_GNUPG_PRE_CONFIGURE_HOOKS += PHP_GNUPG_PHPIZE
25
26$(eval $(autotools-package))
27