b6f259df7b38f19fdfada97e7278f91f7bb1ae96
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / php-yaml / php-yaml.mk
1 ################################################################################
2 #
3 # php-yaml
4 #
5 ################################################################################
6
7 PHP_YAML_VERSION = 1.1.1
8 PHP_YAML_SOURCE = yaml-$(PHP_YAML_VERSION).tgz
9 # pecl.php.net returns html with db connect failed
10 PHP_YAML_SITE = http://sources.buildroot.net
11 PHP_YAML_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
12         --with-yaml=$(STAGING_DIR)/usr
13 # phpize does the autoconf magic
14 PHP_YAML_DEPENDENCIES = libyaml php host-autoconf
15 PHP_YAML_LICENSE = MIT
16 PHP_YAML_LICENSE_FILES = LICENSE
17
18 define PHP_YAML_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
25 PHP_YAML_PRE_CONFIGURE_HOOKS += PHP_YAML_PHPIZE
26
27 $(eval $(autotools-package))