forked from ports/contrib
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Description: PHP Version 4.
|
|
# URL: http://www.php.net
|
|
# Maintainer: Jose V Beneyto, joberui at ei dot upv dot es
|
|
# Packager: Jose V Beneyto, joberui at ei dot upv dot es
|
|
# Depends on: bzip2,libpcre,libpng,libxml2,openssl
|
|
|
|
name=php4
|
|
version=4.4.7
|
|
release=2
|
|
source=(http://php.net/distributions/php-${version}.tar.bz2)
|
|
|
|
build() {
|
|
cd php-${version}
|
|
./configure --prefix=/usr \
|
|
--with-bz2 \
|
|
--with-pic \
|
|
--with-openssl \
|
|
--with-png \
|
|
--with-iconv \
|
|
--with-pcre-regex=/usr \
|
|
--with-config-file-path=/etc \
|
|
--with-zlib-dir=/usr/lib \
|
|
--enable-shared=yes \
|
|
--enable-sockets \
|
|
--enable-shmop \
|
|
--enable-sysvsem \
|
|
--enable-sysvshm \
|
|
--enable-regex=pcre \
|
|
--enable-sigchild \
|
|
--disable-static \
|
|
--disable-pdo
|
|
make
|
|
make INSTALL_ROOT=${PKG} install
|
|
install -D -m 0644 php.ini-dist ${PKG}/etc/php.ini
|
|
rm -rf ${PKG}/usr/lib/php/{test,doc}
|
|
}
|