File move-build-directory-under-datadir.patch of Package php56

From: Michal Kubecek <mkubecek@suse.cz>
Date: Sun, 25 Aug 2013 14:32:57 +0200
Subject: move build directory under datadir

Files installed into "build" directory are not architecture
dependent so that there is no reason to install them under
libdir.
---
 scripts/Makefile.frag | 2 +-
 scripts/phpize.in     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/Makefile.frag b/scripts/Makefile.frag
index 7cd78fa..97a1209 100644
--- a/scripts/Makefile.frag
+++ b/scripts/Makefile.frag
@@ -4,7 +4,7 @@
 #
 
 phpincludedir = $(includedir)/php
-phpbuilddir = $(libdir)/build
+phpbuilddir = $(datadir)/build
 
 BUILD_FILES = \
 	scripts/phpize.m4 \
diff --git a/scripts/phpize.in b/scripts/phpize.in
index 43cd8d3..2fae17e 100644
--- a/scripts/phpize.in
+++ b/scripts/phpize.in
@@ -4,7 +4,7 @@
 prefix='@prefix@'
 datarootdir='@datarootdir@'
 exec_prefix="`eval echo @exec_prefix@`"
-phpdir="`eval echo @libdir@`/build"
+phpdir="`eval echo @datadir@`/build"
 includedir="`eval echo @includedir@`/php"
 builddir="`pwd`"
 SED="@SED@"
-- 
1.8.1.4

openSUSE Build Service is sponsored by