derle.sh 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. export M4=m4
  2. patch -p0 -i ${SRC}/php-apache.patch
  3. patch -p0 -i ${SRC}/php-fpm.patch
  4. patch -p0 -i ${SRC}/php.ini.patch
  5. patch -p0 -i ${SRC}/enchant-2.patch
  6. autoconf
  7. rm tests/output/stream_isatty_*.phpt
  8. cd $SRC
  9. CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
  10. _phpconfig="--srcdir=../${isim}-${surum} \
  11. --config-cache \
  12. --prefix=/usr \
  13. --sbindir=/usr/bin \
  14. --sysconfdir=/etc/php \
  15. --localstatedir=/var \
  16. --with-layout=GNU \
  17. --with-config-file-path=/etc/php \
  18. --with-config-file-scan-dir=/etc/php/conf.d \
  19. --disable-rpath \
  20. --mandir=/usr/share/man \
  21. "
  22. _phpextensions="\
  23. --enable-bcmath=shared \
  24. --enable-calendar=shared \
  25. --enable-dba=shared \
  26. --enable-exif=shared \
  27. --enable-ftp=shared \
  28. --enable-gd=shared \
  29. --enable-intl=shared \
  30. --enable-mbstring \
  31. --enable-pcntl \
  32. --enable-shmop=shared \
  33. --enable-soap=shared \
  34. --enable-sockets=shared \
  35. --enable-sysvmsg=shared \
  36. --enable-sysvsem=shared \
  37. --enable-sysvshm=shared \
  38. --with-bz2=shared \
  39. --with-curl=shared \
  40. --with-db4=/usr \
  41. --with-enchant=shared \
  42. --with-external-gd \
  43. --with-external-pcre \
  44. --with-ffi=shared \
  45. --with-gdbm \
  46. --with-gettext=shared \
  47. --with-gmp=shared \
  48. --with-iconv=shared \
  49. --with-kerberos \
  50. --with-ldap=shared \
  51. --with-ldap-sasl \
  52. --with-mhash \
  53. --with-mysql-sock=/run/mysqld/mysqld.sock \
  54. --with-mysqli=shared,mysqlnd \
  55. --with-openssl \
  56. --with-pdo-dblib=shared,/usr \
  57. --with-pdo-mysql=shared,mysqlnd \
  58. --with-pdo-odbc=shared,unixODBC,/usr \
  59. --with-pdo-pgsql=shared \
  60. --with-pdo-sqlite=shared \
  61. --with-pgsql=shared \
  62. --with-readline \
  63. --with-snmp=shared \
  64. --with-sodium=shared \
  65. --with-sqlite3=shared \
  66. --with-tidy=shared \
  67. --with-unixODBC=shared \
  68. --with-xmlrpc=shared \
  69. --with-xsl=shared \
  70. --with-zip=shared \
  71. --with-zlib \
  72. "
  73. EXTENSION_DIR=/usr/lib/php/modules
  74. export EXTENSION_DIR
  75. mkdir ${SRC}/build
  76. cd ${SRC}/build
  77. ln -s ../${isim}-${surum}/configure
  78. [ ! -f /usr/lib/pkgconfig/enchant.pc ] && \
  79. ln -sfv enchant-2.pc /usr/lib/pkgconfig/enchant.pc
  80. ./configure ${_phpconfig} \
  81. --enable-cgi \
  82. --enable-fpm \
  83. --with-fpm-acl \
  84. --with-fpm-user=www-data \
  85. --with-fpm-group=www-data \
  86. --enable-embed=shared \
  87. ${_phpextensions}
  88. LC_ALL=C make
  89. cp -a ${SRC}/build ${SRC}/build-apache
  90. cd ${SRC}/build-apache
  91. ./configure ${_phpconfig} \
  92. --with-apxs2 \
  93. ${_phpextensions}
  94. LC_ALL=C make