26 lines
627 B
Plaintext
26 lines
627 B
Plaintext
# Description: GD module for PHP
|
|
# URL: http://www.php.net
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
# Depends on: libgd
|
|
|
|
name=php-gd
|
|
version=5.2.11
|
|
release=1
|
|
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 \
|
|
--with-freetype-dir=/usr \
|
|
--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
|
|
}
|