X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=travis%2Fpecl%2FMakefile;h=358acca920a99027c409e71339a017f56a70ec05;hp=a338a5d42880992229dd32aaeac5b6e263c14307;hb=9d64e781a870ed359d744b4c2dbba4c6c11c44f1;hpb=8b7efa3deb0215c2af0de4a990dc97be952f7f53 diff --git a/travis/pecl/Makefile b/travis/pecl/Makefile index a338a5d..358acca 100644 --- a/travis/pecl/Makefile +++ b/travis/pecl/Makefile @@ -15,15 +15,15 @@ enable_all ?= no with_config_file_scan_dir ?= $(prefix)/etc/php.d with_php_config ?= $(bindir)/php-config -extdir = $(shell $(with_php_config) --extension-dir 2>/dev/null) +extdir = $(shell test -x $(with_php_config) && $(with_php_config) --extension-dir) PECL_MIRROR ?= http://pecl.php.net/get/ -PECL_EXTENSION ?= $(shell cut -d: -f1 <<<"$(PECL)") -PECL_SONAME ?= $(if $(shell cut -d: -f2 <<<"$(PECL)"),$(shell cut -d: -f2 <<<"$(PECL)"),$(PECL_EXTENSION)) -PECL_VERSION ?= $(shell cut -d: -f3 -s <<<"$(PECL)") +PECL_EXTENSION ?= $(shell echo $(PECL) | cut -d: -f1) +PECL_SONAME ?= $(if $(shell echo $(PECL) | cut -d: -f2),$(shell echo $(PECL) | cut -d: -f2),$(PECL_EXTENSION)) +PECL_VERSION ?= $(shell echo $(PECL) | cut -d: -f3 -s) PECL_INI = $(with_config_file_scan_dir)/pecl.ini -PHP_VERSION ?= $(shell php $(srcdir)/php-version.php $(PHP) < php-versions.json) +PHP_VERSION ?= $(shell test -e $(srcdir)/php-versions.json && cat $(srcdir)/php-versions.json | php $(srcdir)/php-version.php $(PHP)) .PHONY: all php check clean reconf pecl ext test .SUFFIXES: