patdie421 / mea-edomus

Automatically exported from code.google.com/p/mea-edomus
0 stars 0 forks source link

MEA-EDOMUS : récupération et compilation de php version light par l'intermédiaire du makefile #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
make -f Makefile.<os> phplight

avec <os> = linux ou macosx

Original issue reported on code.google.com by patrice....@gmail.com on 1 Sep 2014 at 12:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
script testé et OK :

BUILDDIR=$SOURCES/complements/php
mkdir -p $BUILDDIR
cd $BUILDDIR
curl -silent -L http://fr2.php.net/get/php-5.5.16.tar.bz2/from/this/mirror -o 
php5.tar.bz2
bzip2 -dc php5.tar.bz2 | tar xvf -
cd php-5.5.16
./configure --prefix=/usr/local/php --disable-all --enable-session --enable-pdo 
--with-sqlite3 --with-pdo-sqlite --enable-json
make
mkdir -p $SOURCE/build/bin
cp sapi/cgi/php-cgi $SOURCE/build/bin/php-cgi

rm $BUILDDIR/php5.tar.bz2

Original comment by patrice....@gmail.com on 3 Sep 2014 at 12:07

GoogleCodeExporter commented 9 years ago
// Règles pour Makefile. Faire un makefile séparé dans le répertoire 
"complements"
// à faire aussi pour xpllib
// ($SOURCE et $BUILD sont fournis par le make file précédent ou en 
paramètre et sont obligatoires)

PHP=$SOURCE/complements/php
DOWNLOADS=$SOURCE/complements/downloads

all: $PHP/php-5.5.16/sapi/cgi/php-cgi

$PHP/php-5.5.16/sapi/cgi/php-cgi: $PHP/Makefile
   cd $PHP/php-5.5.16
   make

$PHP/Makefile: $PHP/php-5.5.16
   cd $PHP/php-5.5.16
   ./configure --prefix=/usr/local/php --disable-all --enable-session --enable-pdo --with-sqlite3 --with-pdo-sqlite --enable-json

$PHP/php-5.5.16: $DOWNLOAD/php5.tar.bz
   @mkdir -p $PHP
   cd $PHP
   bzip2 -dc $DOWNLOADS/php5.tar.bz | tar xvf -

$DOWNLOAD/php5.tar.bz2:
   @mkdir -p $DOWNLOADS
   curl -silent -L http://fr2.php.net/get/php-5.5.16.tar.bz2/from/this/mirror -o $DOWNLOADS/php5.tar.bz2

install: $PHP/php-5.5.16/sapi/cgi/php-cgi
   mkdir -p $BUILD/bin
   cp $PHP/php-5.5.16/sapi/cgi/php-cgi $BUILD/bin

clean:
   cd $PHP/php-5.5.16
   make clean

Original comment by patrice....@gmail.com on 3 Sep 2014 at 12:35

GoogleCodeExporter commented 9 years ago
Terminé !

Original comment by patrice....@gmail.com on 4 Sep 2014 at 9:35