appweb: Make v2.0.4 compile with php 5.0.5 (this is hard-coded for now)
authorJustin Patrin <papercrane@gmail.com>
Fri, 14 Oct 2005 23:15:24 +0000 (23:15 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 14 Oct 2005 23:15:24 +0000 (23:15 +0000)
packages/appweb/appweb-2.0.4/libdb.patch [new file with mode: 0644]
packages/appweb/appweb_2.0.4.bb

diff --git a/packages/appweb/appweb-2.0.4/libdb.patch b/packages/appweb/appweb-2.0.4/libdb.patch
new file mode 100644 (file)
index 0000000..73d6361
--- /dev/null
@@ -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
index a559b13..f740876 100644 (file)
@@ -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
 }