summaryrefslogtreecommitdiffstats
path: root/extra/php/Pkgfile
blob: 9f4ab9bb4c680fb94bb1ad971105b5b77b4be6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Description: module PHP5 module pour le serveur  apache 2.0.x HTTP  
# URL:         http://www.php.net
# Maintainer:  NuTyX core team
# Packager: thierryn1 at hispeed dot net
# Depends on:  mysql, apache, libxml2, libpng

name=php
version=5.3.3
release=1
source=(http://www.php.net/distributions/php-$version.tar.bz2) 

build () {
    cd php-$version
    sed -i "s/-i -a/-i/" configure
    ./configure --prefix=/usr \
    --mandir=/usr/share/man \
    --sysconfdir=/etc \
    --with-apxs2=/usr/sbin/apxs \
    --enable-force-cgi-redirect \
    --enable-discard-path \
    --with-config-file-path=/etc \
    --with-zlib \
    --enable-bcmath \
    --with-bz2 \
    --enable-calendar \
    --enable-exif \
    --enable-ftp \
    --with-gettext \
    --enable-mbstring \
    --with-ncurses \
    --with-readline \
    --with-mysql=/usr \
    --with-mysql-sock=/var/run/mysql \
    --with-gd
     
    make
    make INSTALL_ROOT=$PKG install
    rm -r $PKG/etc/apache
#    sed -i "/^extension_dir/s|\./|/usr/lib/php/extensions|" php.ini-dist
    install -D -m 644 php.ini-production $PKG/etc/php.ini
}