mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
swig.mk: Using PHP5 on ubuntu, since swig doesn't support the -php7 switch
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
e9ceaeff66
commit
59d3414550
1 changed files with 5 additions and 1 deletions
|
|
@ -4,7 +4,11 @@ ifeq ($(SWIG_TARGET),php)
|
||||||
|
|
||||||
SWIG_LANG ?= php
|
SWIG_LANG ?= php
|
||||||
SWIG_TARGET_EXT ?= php
|
SWIG_TARGET_EXT ?= php
|
||||||
PHP_MAJOR := $(shell php-config --version | cut -d. -f1)
|
ifeq ($(OS_NAME),ubuntu)
|
||||||
|
PHP_MAJOR ?= 5
|
||||||
|
else
|
||||||
|
PHP_MAJOR ?= $(shell php-config --version | cut -d. -f1)
|
||||||
|
endif
|
||||||
PHP ?= php$(PHP_MAJOR)
|
PHP ?= php$(PHP_MAJOR)
|
||||||
#PHP ?= $(firstword $(notdir $(wildcard /usr/share/php*)))
|
#PHP ?= $(firstword $(notdir $(wildcard /usr/share/php*)))
|
||||||
SWIG_OPTS ?= -$(PHP) -DJW_PHP_MAJOR=$(PHP_MAJOR)
|
SWIG_OPTS ?= -$(PHP) -DJW_PHP_MAJOR=$(PHP_MAJOR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue