wok diff php/receipt @ rev 16079
ARM: add more *usb* support and unixODBC
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 15 05:33:56 2014 +0100 (2014-03-15) |
parents | fec9d55946a2 |
children | 76c1f14d1820 |
line diff
1.1 --- a/php/receipt Fri Dec 27 13:19:16 2013 +0000 1.2 +++ b/php/receipt Sat Mar 15 05:33:56 2014 +0100 1.3 @@ -10,6 +10,7 @@ 1.4 WEB_SITE="http://www.php.net/" 1.5 WGET_URL="http://www.php.net/distributions/$TARBALL" 1.6 PROVIDE="php:lighttpd" 1.7 +#HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="php-common lighttpd zlib libxml2 sqlite libssl" 1.10 BUILD_DEPENDS="sqlite-dev libxml2-dev zlib-dev libmysqlclient mysql-dev \ 1.11 @@ -18,56 +19,85 @@ 1.12 libldap apr-dev libmcrypt-dev curl-dev cyrus-sasl-dev perl pkg-config \ 1.13 jpeg-dev net-snmp-dev libvpx-dev apache coreutils-conditions sed re2c" 1.14 1.15 +case "$ARCH" in 1.16 + i?86) 1.17 + ARCH_ARGS="\ 1.18 + --prefix=/usr \ 1.19 + --sysconfdir=/etc \ 1.20 + --infodir=/usr/share/info \ 1.21 + --mandir=/usr/share/man \ 1.22 + --enable-mbstring \ 1.23 + --enable-sockets \ 1.24 + --enable-ftp \ 1.25 + --enable-zip \ 1.26 + --enable-calendar \ 1.27 + --enable-exif \ 1.28 + --config-cache \ 1.29 + --enable-dba=shared \ 1.30 + --with-config-file-path=/etc \ 1.31 + --with-zlib \ 1.32 + --with-gettext \ 1.33 + --with-mcrypt=shared,/usr \ 1.34 + --with-mysql=shared,/usr \ 1.35 + --with-mysqli=shared \ 1.36 + --with-mysql-sock=/var/mysql/mysql.sock \ 1.37 + --with-pdo-sqlite=shared,/usr \ 1.38 + --with-pgsql=shared,/usr \ 1.39 + --with-snmp=shared,/usr \ 1.40 + --enable-soap=shared,/usr \ 1.41 + --with-ldap=shared \ 1.42 + --with-imap=shared \ 1.43 + --with-imap-ssl \ 1.44 + --with-mhash \ 1.45 + --with-gd=shared \ 1.46 + --with-jpeg-dir=/usr \ 1.47 + --with-png-dir=/usr \ 1.48 + --with-vpx-dir=/usr \ 1.49 + --with-openssl=shared \ 1.50 + --with-unixODBC=shared,/usr \ 1.51 + --with-pear=/usr/share/php \ 1.52 + --with-pdo-mysql=shared \ 1.53 + --with-pdo-pgsql=shared \ 1.54 + --with-curl=shared \ 1.55 + --enable-sqlite-utf8 \ 1.56 + --with-sqlite3=shared,/usr \ 1.57 + --with-sqlite=shared \ 1.58 + --enable-maintainer-zts" ;; 1.59 + arm*) 1.60 + BUILD_DEPENDS="sqlite-dev libxml2-dev zlib-dev curl-dev" 1.61 + ARCH_ARGS="\ 1.62 + --prefix=/usr \ 1.63 + --sysconfdir=/etc \ 1.64 + --infodir=/usr/share/info \ 1.65 + --mandir=/usr/share/man \ 1.66 + --config-cache \ 1.67 + --enable-mbstring \ 1.68 + --enable-sockets \ 1.69 + --enable-ftp \ 1.70 + --enable-zip \ 1.71 + --enable-calendar \ 1.72 + --enable-exif \ 1.73 + --enable-dba=shared \ 1.74 + --enable-sqlite-utf8 \ 1.75 + --with-mhash \ 1.76 + --with-sqlite=shared \ 1.77 + --with-config-file-path=/etc \ 1.78 + --with-zlib \ 1.79 + --with-gettext \ 1.80 + --with-curl=shared \ 1.81 + --with-openssl=shared \ 1.82 + --with-jpeg-dir=/usr \ 1.83 + --with-png-dir=/usr \ 1.84 + --with-apxs2=/usr/bin/apxs" ;; 1.85 +esac 1.86 + 1.87 # Rules to configure and make the package. 1.88 compile_rules() 1.89 { 1.90 - cd $src 1.91 - COMMON_ARGS="\ 1.92 ---prefix=/usr \ 1.93 ---sysconfdir=/etc \ 1.94 ---infodir=/usr/share/info \ 1.95 ---mandir=/usr/share/man \ 1.96 ---enable-mbstring \ 1.97 ---enable-sockets \ 1.98 ---enable-ftp \ 1.99 ---enable-zip \ 1.100 ---enable-calendar \ 1.101 ---enable-exif \ 1.102 ---config-cache \ 1.103 ---enable-dba=shared \ 1.104 ---with-config-file-path=/etc \ 1.105 ---with-zlib \ 1.106 ---with-gettext \ 1.107 ---with-mcrypt=shared,/usr \ 1.108 ---with-mysql=shared,/usr \ 1.109 ---with-mysqli=shared \ 1.110 ---with-mysql-sock=/var/mysql/mysql.sock \ 1.111 ---with-pdo-sqlite=shared,/usr \ 1.112 ---with-pgsql=shared,/usr \ 1.113 ---with-snmp=shared,/usr \ 1.114 ---enable-soap=shared,/usr \ 1.115 ---with-ldap=shared \ 1.116 ---with-imap=shared --with-imap-ssl \ 1.117 ---with-mhash \ 1.118 ---with-gd=shared \ 1.119 ---with-jpeg-dir=/usr \ 1.120 ---with-png-dir=/usr \ 1.121 ---with-vpx-dir=/usr \ 1.122 ---with-openssl=shared \ 1.123 ---with-unixODBC=shared,/usr \ 1.124 ---with-pear=/usr/share/php \ 1.125 ---with-pdo-mysql=shared \ 1.126 ---with-pdo-pgsql=shared \ 1.127 ---with-curl=shared \ 1.128 ---enable-sqlite-utf8 \ 1.129 ---with-sqlite3=shared,/usr \ 1.130 ---with-sqlite=shared \ 1.131 ---enable-maintainer-zts \ 1.132 -" 1.133 sed -i 's/pam_start/pam_nostart/' configure 1.134 ./configure $COMMON_ARGS $CONFIGURE_ARGS && \ 1.135 make $MAKEFLAGS && make -j1 INSTALL_ROOT=$DESTDIR install 1.136 - ./configure $COMMON_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs && \ 1.137 + ./configure $ARCH_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs && \ 1.138 make $MAKEFLAGS && { 1.139 mkdir -p $DESTDIR/etc/apache 1.140 cp /etc/apache/httpd.conf $DESTDIR/etc/apache/httpd.conf