summaryrefslogtreecommitdiff
path: root/packages/php/php_5.1.4.bb
blob: e639bf5acffb758d91754eed504a28453320552d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require php.inc

PR = "r3"

SRC_URI += "file://autotools.patch;patch=1"

inherit autotools

export THREADS="pthread"
export LIBS=" -lpthread "

EXTRA_OECONF = "--without-iconv \
 	        --enable-discard-path \
	        --enable-sockets \
    	        --enable-memory-limit \
    	        --enable-wddx \
    	         --with-zlib"

EXTRA_OECONF += " --without-pear --with-libxml-dir=${STAGING_BINDIR} "
# Uncomment the following two lines, and comment the above to enable PEAR
#EXTRA_OECONF += " --with-pear-php-cli=${STAGING_BINDIR_NATIVE}/php"
#DEPENDS += " php-native"

do_configure_append() {
    find ${S} -type f | xargs sed -i 's:/usr/lib:${STAGING_LIBDIR}:'
    find ${S} -type f | xargs sed -i 's:/usr/include:${STAGING_INCDIR}:'
}