xref: /OK3568_Linux_fs/buildroot/package/php-gnupg/php-gnupg.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# php-gnupg
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunPHP_GNUPG_VERSION = 1.5.0
8*4882a593SmuzhiyunPHP_GNUPG_SOURCE = gnupg-$(PHP_GNUPG_VERSION).tgz
9*4882a593SmuzhiyunPHP_GNUPG_SITE = https://pecl.php.net/get
10*4882a593Smuzhiyun# phpize does the autoconf magic
11*4882a593SmuzhiyunPHP_GNUPG_DEPENDENCIES = php libgpgme host-autoconf host-pkgconf
12*4882a593SmuzhiyunPHP_GNUPG_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
13*4882a593Smuzhiyun	--with-gnupg=$(STAGING_DIR)/usr --with-gpg=/usr/bin/gpg
14*4882a593SmuzhiyunPHP_GNUPG_LICENSE = BSD-2-Clause
15*4882a593SmuzhiyunPHP_GNUPG_LICENSE_FILES = LICENSE
16*4882a593Smuzhiyun
17*4882a593Smuzhiyundefine PHP_GNUPG_PHPIZE
18*4882a593Smuzhiyun	(cd $(@D); \
19*4882a593Smuzhiyun		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
20*4882a593Smuzhiyun		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
21*4882a593Smuzhiyun		$(STAGING_DIR)/usr/bin/phpize)
22*4882a593Smuzhiyunendef
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunPHP_GNUPG_PRE_CONFIGURE_HOOKS += PHP_GNUPG_PHPIZE
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun$(eval $(autotools-package))
27