2008-05-08 14:46:55 +02:00
|
|
|
# Description: GD module for PHP
|
|
|
|
# URL: http://www.php.net
|
|
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
|
|
# Depends on: libgd
|
|
|
|
|
|
|
|
name=php-gd
|
2009-06-23 20:20:52 +02:00
|
|
|
version=5.2.10
|
2008-12-05 12:54:46 +01:00
|
|
|
release=1
|
2008-05-08 14:46:55 +02:00
|
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd php-$version
|
|
|
|
|
|
|
|
./configure --disable-all \
|
|
|
|
--with-gd=shared,/usr \
|
|
|
|
--with-png-dir=/usr \
|
|
|
|
--with-jpeg-dir=/usr \
|
2008-06-02 17:19:59 +02:00
|
|
|
--with-freetype-dir=/usr \
|
2008-05-08 14:46:55 +02:00
|
|
|
--enable-gd-native-ttf
|
|
|
|
make build-modules
|
|
|
|
|
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
|
|
install -m 755 modules/gd.so $PKG/usr/lib/php/extensions
|
|
|
|
echo "extension=gd.so" > $PKG/etc/php/conf.d/gd.ini
|
|
|
|
}
|