summaryrefslogtreecommitdiffstats
path: root/meta-linaro/recipes-extra/hiphopvm
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-08 22:46:13 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-08 22:46:13 +0200
commit8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch)
treeeb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro/recipes-extra/hiphopvm
downloadmeta-linaro-dizzy-enea.tar.gz
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro/recipes-extra/hiphopvm')
-rw-r--r--meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch32
-rw-r--r--meta-linaro/recipes-extra/hiphopvm/hiphopvm_git.bb67
2 files changed, 99 insertions, 0 deletions
diff --git a/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch b/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch
new file mode 100644
index 0000000..bcc8352
--- /dev/null
+++ b/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch
@@ -0,0 +1,32 @@
1From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2
3We have two files named dwarf.h:
4- /usr/include/dwarf.h from elfutils
5- /usr/include/libdwarf/dwarf.h from libdwarf
6
7HHVM checks for dwarf.h and assumes that libdwarf.h is in same directory which
8is wrong for OE and probably also in RedHat based systems (Debian handles it in
9other way).
10
11Upstream-Status: pending
12
13---
14 CMake/FindLibDwarf.cmake | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17--- git.orig/CMake/FindLibDwarf.cmake
18+++ git/CMake/FindLibDwarf.cmake
19@@ -18,12 +18,12 @@ endif (LIBDWARF_LIBRARIES AND LIBDWARF_I
20
21 find_path (DWARF_INCLUDE_DIR
22 NAMES
23 dwarf.h
24 PATHS
25- /usr/include
26 /usr/include/libdwarf
27+ /usr/include
28 /usr/local/include
29 /opt/local/include
30 /sw/include
31 ENV CPATH) # PATH and INCLUDE will also work
32
diff --git a/meta-linaro/recipes-extra/hiphopvm/hiphopvm_git.bb b/meta-linaro/recipes-extra/hiphopvm/hiphopvm_git.bb
new file mode 100644
index 0000000..77cd299
--- /dev/null
+++ b/meta-linaro/recipes-extra/hiphopvm/hiphopvm_git.bb
@@ -0,0 +1,67 @@
1DEPENDS = " \
2binutils \
3bison-native \
4boost \
5bzip2 \
6cmake \
7elfutils \
8expat \
9flex-native \
10gd \
11glog \
12icu \
13libcap \
14libc-client \
15libdwarf \
16libevent-fb \
17libmcrypt \
18libmemcached \
19libunwind \
20libxml2 \
21mysql5 \
22ncurses \
23onig \
24openldap \
25openssl \
26libpam \
27pcre \
28readline \
29zlib \
30tbb \
31${EXTRA_DEPENDS} \
32"
33
34# optional (for now) dependencies:
35EXTRA_DEPENDS = "gperftools"
36EXTRA_DEPENDS_aarch64 = ""
37
38# 64-bit platforms only
39COMPATIBLE_HOST = '(x86_64.*|aarch64.*)-linux'
40
41LICENSE = "PHP Zend"
42
43LIC_FILES_CHKSUM = " \
44 file://LICENSE.PHP;md5=cb564efdf78cce8ea6e4b5a4f7c05d97 \
45 file://LICENSE.ZEND;md5=69e7a9c51846dd6692f1b946f95f6c60"
46
47SRC_URI = "git://github.com/facebook/hhvm.git \
48 file://hrw-check-for-libdwarf-in-our-place-first.patch \
49 "
50
51SRCREV = "4c4d11304aef8857dcce8524e7fd9223e00191b5"
52
53PV = "2.0.2+git${SRCPV}"
54
55S = "${WORKDIR}/git"
56
57do_configure_prepend() {
58 export HPHP_HOME="${B}"
59 export HPHP_LIB="${B}"/bin
60 export USE_HHVM=1
61 export BOOST_INCLUDEDIR=${STAGING_INCDIR}
62 export BOOST_LIBRARYDIR=${STAGING_LIBDIR}
63 export LIBGLOG_INCLUDE_DIR=${STAGING_INCDIR}
64 export LIBGLOG_LIBRARY=${STAGING_LIBDIR}
65}
66
67inherit cmake