forked from ports/contrib
22 lines
546 B
Plaintext
22 lines
546 B
Plaintext
# Description: PostgreSQL module for PHP
|
|
# URL: http://www.php.net
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
# Depends on: postgresql
|
|
|
|
name=php-postgresql
|
|
version=5.5.6
|
|
release=1
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2)
|
|
|
|
build() {
|
|
cd php-$version
|
|
|
|
./configure --disable-all \
|
|
--with-pgsql=shared,/usr
|
|
make build-modules
|
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
install -m 755 modules/pgsql.so $PKG/usr/lib/php/extensions
|
|
echo "extension=pgsql.so" > $PKG/etc/php/conf.d/pgsql.ini
|
|
}
|