contrib/php-gd/Pkgfile

28 lines
767 B
Plaintext
Raw Normal View History

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: libjpeg-turbo libpng freetype
2008-05-08 14:46:55 +02:00
name=php-gd
2013-12-05 17:27:42 +01:00
version=5.5.6
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)
# this version depends on internal libgd, as the
# old way of building it: "--with-gd=shared,/usr"
# does not work anymore
2008-05-08 14:46:55 +02:00
build() {
cd php-$version
./configure --disable-all \
--with-gd=shared \
2008-05-08 14:46:55 +02:00
--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
}