mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-22 14:10:39 +01:00
swig.mk: Detect PHP major version with php-config
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
989200f584
commit
ca3db118fe
1 changed files with 2 additions and 1 deletions
|
|
@ -4,7 +4,8 @@ ifeq ($(SWIG_TARGET),php)
|
||||||
|
|
||||||
SWIG_LANG ?= php
|
SWIG_LANG ?= php
|
||||||
SWIG_TARGET_EXT ?= php
|
SWIG_TARGET_EXT ?= php
|
||||||
PHP ?= php7
|
PHP_MAJOR := $(shell php-config --version | cut -d. -f1)
|
||||||
|
PHP ?= php$(PHP_MAJOR)
|
||||||
#PHP ?= $(firstword $(notdir $(wildcard /usr/share/php*)))
|
#PHP ?= $(firstword $(notdir $(wildcard /usr/share/php*)))
|
||||||
SWIG_OPTS ?= -$(PHP)
|
SWIG_OPTS ?= -$(PHP)
|
||||||
SWIG_MODULE_TARGET_DIR = $(ENV_PREFIX)/usr/share/$(PHP)
|
SWIG_MODULE_TARGET_DIR = $(ENV_PREFIX)/usr/share/$(PHP)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue