buildout.cfg 4.82 KB
Newer Older
1 2 3
[buildout]
parts = apache-php

4
extends =
5
  ../apache/buildout.cfg
6
  ../bzip2/buildout.cfg
7
  ../cclient/buildout.cfg
8
  ../curl/buildout.cfg
9 10 11 12 13
  ../freetype/buildout.cfg
  ../gettext/buildout.cfg
  ../libiconv/buildout.cfg
  ../libjpeg/buildout.cfg
  ../libpng/buildout.cfg
14
  ../libtool/buildout.cfg
15 16 17
  ../mariadb/buildout.cfg
  ../openldap/buildout.cfg
  ../pkgconfig/buildout.cfg
18 19
  ../zlib/buildout.cfg

20

21 22 23
# ftp://ftp.cygwinports.org/pub/cygwinports/release-2/PHP/php/apache2-mod_php5/apache2-mod_php5-5.4.11-1.tar.bz2#af3ad35877d9de0a8a91f125aba3b395
# ftp://ftp.cygwinports.org/pub/cygwinports/release-2/PHP/php/php-5.4.11-1-src.tar.bz2#7e6578ae50dc779440bd603fef3f20b5
# ftp://ftp.cygwinports.org/pub/cygwinports/release-2/PHP/php/php-5.4.11-1.tar.bz2#c459a2997d9035ac3d4112141650e97a
24 25
[apache-php]
# Note: Shall react on each build of apache and reinstall itself
26
recipe = slapos.recipe.cmmi
27 28
depends =
  ${mariadb:version}
29 30
url = http://fr2.php.net/distributions/php-5.4.12.tar.bz2
md5sum = 5c7b614242ae12e9cacca21c8ab84818
31 32

[x86-linux-apache-php]
33 34 35
configure-options =
  --with-apxs2=${apache:location}/bin/apxs
  --with-libxml-dir=${libxml2:location}
36
  --with-mysql=${mariadb:location}
37
  --with-zlib-dir=${zlib:location}
38
  --with-bz2=${bzip2:location}
39
  --with-mcrypt=${libmcrypt:location}
40
  --with-gd
41 42 43 44 45 46 47
  --with-jpeg-dir=${libjpeg:location}
  --with-png-dir=${libpng:location}
  --enable-gd-native-ttf
  --with-freetype-dir=${freetype:location}
  --with-pdo-mysql=mysqlnd
  --with-mysqli=mysqlnd
  --with-curl=${curl:location}
48
  --with-imap=${cclient:location}
49 50 51 52 53 54
  --with-iconv-dir=${libiconv:location}
  --with-gettext=${gettext:location}
  --with-ldap=${openldap:location}
  --with-imap-ssl
  --with-openssl=${openssl:location}
  --enable-libxml
55
  --enable-mbstring
56
  --enable-session
57 58 59
  --enable-exif
  --enable-zip
  --enable-ftp
60

Marco Mariani's avatar
Marco Mariani committed
61 62 63 64
# Changing TMPDIR is required for PEAR installation.
# It will create a pear/temp directory under the SR instead of a shared /tmp/pear/temp.
# XXX we could mkdir tmp there

65
environment =
66
  PKG_CONFIG_PATH=${libxml2:location}/lib/pkgconfig:${openssl:location}/lib/pkgconfig
67 68
  PATH=${pkgconfig:location}/bin:${bzip2:location}/bin:${libxml2:location}/bin:%(PATH)s
  LDFLAGS =-L${bzip2:location}/lib -Wl,-rpath -Wl,${bzip2:location}/lib -L${libtool:location}/lib -Wl,-rpath -Wl,${libtool:location}/lib -L${mariadb:location}/lib -Wl,-rpath -Wl,${mariadb:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -L${libmcrypt:location}/lib -Wl,-rpath -Wl,${libmcrypt:location}/libblkid
69
  TMPDIR=${buildout:parts-directory}/${:_buildout_section_name_}
70
  HOME=${apache:location}
71

72 73 74 75 76
[x86-cygwin-apache-php]
url = ftp://ftp.cygwinports.org/pub/cygwinports/release-2/PHP/php/php-5.4.11-1-src.tar.bz2
configure-command = cygport ${buildout:parts-directory}/${:_buildout_section_name_}__compile__ compile
configure-options =
share = /
77

78
[apache-php-postgres]
79 80 81 82 83 84
# Note: Shall react on each build of apache and reinstall itself
recipe = hexagonit.recipe.cmmi
depends =
   ${postgresql:url}
url = http://fr2.php.net/distributions/php-5.4.12.tar.bz2
md5sum = 5c7b614242ae12e9cacca21c8ab84818
85 86 87 88
configure-options =
  --with-apxs2=${apache:location}/bin/apxs
  --with-libxml-dir=${libxml2:location}
  --with-zlib-dir=${zlib:location}
89
  --with-bz2=${bzip2:location}
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
  --with-mcrypt=${libmcrypt:location}
  --with-gd
  --with-jpeg-dir=${libjpeg:location}
  --with-png-dir=${libpng:location}
  --enable-gd-native-ttf
  --with-freetype-dir=${freetype:location}
  --with-curl=${curl:location}
  --with-imap=${cclient:location}
  --with-iconv-dir=${libiconv:location}
  --with-gettext=${gettext:location}
  --with-ldap=${openldap:location}
  --with-imap-ssl
  --with-openssl=${openssl:location}
  --enable-libxml
  --enable-mbstring
  --enable-session
  --enable-exif
  --enable-zip
  --enable-ftp
109
  --with-pgsql=${postgresql:location}
110

111 112 113 114 115 116 117 118 119 120 121
# Changing TMPDIR is required for PEAR installation.
# It will create a pear/temp directory under the SR instead of a shared /tmp/pear/temp.
# XXX we could mkdir tmp there

environment =
  PKG_CONFIG_PATH=${libxml2:location}/lib/pkgconfig:${openssl:location}/lib/pkgconfig
  PATH=${pkgconfig:location}/bin:${bzip2:location}/bin:${libxml2:location}/bin:%(PATH)s
  LDFLAGS =-L${bzip2:location}/lib -Wl,-rpath -Wl,${bzip2:location}/lib -L${libtool:location}/lib -Wl,-rpath -Wl,${libtool:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -L${libmcrypt:location}/lib -Wl,-rpath -Wl,${libmcrypt:location}/libblkid
  TMPDIR=${buildout:parts-directory}/${:_buildout_section_name_}
  HOME=${apache:location}

122 123 124 125 126 127 128
[libmcrypt]
recipe = hexagonit.recipe.cmmi
url = http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.bz2/download
md5sum = c4f491dd411a09e9de3b8702ea6f73eb

[xml-rpc]
recipe = hexagonit.recipe.cmmi
129
url = http://downloads.sourceforge.net/project/phpxmlrpc/phpxmlrpc/2.2.2/xmlrpc-2.2.2.tar.gz
130
md5sum = 59a644c636c6d98267d0c99b406ae9e8