summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/Makefile.php
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/deb/Makefile.php')
-rw-r--r--pkg/deb/Makefile.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/deb/Makefile.php b/pkg/deb/Makefile.php
index 305bd970..492e88fd 100644
--- a/pkg/deb/Makefile.php
+++ b/pkg/deb/Makefile.php
@@ -14,15 +14,17 @@ MODULE_SOURCES_php= unit.example-php-app \
unit.example-php-config
ifneq (,$(findstring $(CODENAME),trusty jessie))
-BUILD_DEPENDS+= php5-dev libphp5-embed
+BUILD_DEPENDS_php= php5-dev libphp5-embed
MODULE_BUILD_DEPENDS_php=,php5-dev,libphp5-embed
MODULE_DEPENDS_php=,libphp5-embed
else
-BUILD_DEPENDS+= php-dev libphp-embed
+BUILD_DEPENDS_php= php-dev libphp-embed
MODULE_BUILD_DEPENDS_php=,php-dev,libphp-embed
MODULE_DEPENDS_php=,libphp-embed
endif
+BUILD_DEPENDS+= $(BUILD_DEPENDS_php)
+
define MODULE_PREINSTALL_php
mkdir -p debian/unit-php/usr/share/doc/unit-php/examples/phpinfo-app
install -m 644 -p debian/unit.example-php-app debian/unit-php/usr/share/doc/unit-php/examples/phpinfo-app/index.php