diff options
author | Justin Patrin <papercrane@gmail.com> | 2005-10-14 23:15:24 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-10-14 23:15:24 +0000 |
commit | 95a077b81c3c9aeb9c227256f635e2c45d4119bf (patch) | |
tree | 6533a97294401837d815c83b90bd488f964b3834 | |
parent | f687aaf52e963b3d08265af788c31b404b4cbdbc (diff) |
appweb: Make v2.0.4 compile with php 5.0.5 (this is hard-coded for now)
-rw-r--r-- | packages/appweb/appweb-2.0.4/libdb.patch | 10 | ||||
-rw-r--r-- | packages/appweb/appweb_2.0.4.bb | 13 |
2 files changed, 21 insertions, 2 deletions
diff --git a/packages/appweb/appweb-2.0.4/libdb.patch b/packages/appweb/appweb-2.0.4/libdb.patch new file mode 100644 index 0000000000..73d6361dfc --- /dev/null +++ b/packages/appweb/appweb-2.0.4/libdb.patch @@ -0,0 +1,10 @@ +--- appWeb-2.0.4/http/package/LINUX/http.files~ 2005-09-09 14:19:18.000000000 -0700 ++++ appWeb-2.0.4/http/package/LINUX/http.files 2005-10-14 15:48:10.000000000 -0700 +@@ -152,7 +152,4 @@ + then + cpmod ${BLD_TOP}/${BLD_PHP5_DIR}/libphp5.so "${DestD}" 755 + stripFile "${DestD}/libphp5.so" +- name=`ls -l /usr/lib/libdb.so | awk '{ print $11 }'` +- name=${name:-/usr/lib/libdb.so} +- cpmod /usr/lib/$name "${DestD}" 755 + fi diff --git a/packages/appweb/appweb_2.0.4.bb b/packages/appweb/appweb_2.0.4.bb index a559b13ef3..f740876acd 100644 --- a/packages/appweb/appweb_2.0.4.bb +++ b/packages/appweb/appweb_2.0.4.bb @@ -3,7 +3,8 @@ SECTION = "console/network" LICENSE = "GPL" SRC_URI = "http://www.mbedthis.com/software/appWeb-src-${PV}-1.tar.gz \ file://makerules.patch;patch=1 \ - file://init.d.patch;patch=1" + file://init.d.patch;patch=1 \ + file://libdb.patch;patch=1" S = "${WORKDIR}/appWeb-${PV}" APPWEB_HOST = "${@get_appweb_host(d, bb)}" @@ -82,7 +83,11 @@ EXTRA_OECONF = "--prefix=${prefix} \ --enable-config-parse \ --enable-config-save \ --enable-digest-auth \ - --without-ssl" + --without-ssl \ +--with-php5='loadable' \ +--with-php5-dir='../../php-5.0.5-r0/php-5.0.5/libs' \ +--with-php5-libs='php5 crypt expat xml2 m mysqlclient z' \ +--with-php5-iflags='-I$(BLD_TOP)/$(BLD_PHP5_DIR)/.. -I$(BLD_TOP)/$(BLD_PHP5_DIR)/../main -I$(BLD_TOP)/$(BLD_PHP5_DIR)/../Zend -I$(BLD_TOP)/$(BLD_PHP5_DIR)/../TSRM'" export IFLAGS = "${CPPFLAGS}" export CC_FOR_BUILD = "${BUILD_CC}" @@ -95,6 +100,10 @@ do_configure () { } do_compile () { + sed -i 's:MAKE_IFLAGS:MAKE_LDFLAGS = -L${STAGING_LIBDIR}\nMAKE_IFLAGS:' ${S}/http/modules/php5/Makefile +# find ${S} -type f | xargs sed -i 's:-I${STAGING_INCDIR}:-I${STAGING_INCDIR} -I../../../../../php-5.0.5-r0/php-5.0.5 -I../../../../../php-5.0.5-r0/php-5.0.5/Zend -I../../../../../php-5.0.5-r0/php-5.0.5/TSRM -I../../../../../php-5.0.5-r0/php-5.0.5/main:' +# sed -i 's:/usr/lib:${STAGING_LIBDIR}:' ${S}/http/package/LINUX/http.files +# sed -i 's:cpmod ${STAGING_LIBDIR}/:cpmod :' ${S}/http/package/LINUX/http.files oe_runmake build oe_runmake compile } |