summaryrefslogtreecommitdiff
path: root/php-gd/Pkgfile
blob: 75493e9432fbea0e04e100cb4909d83e25bad1d4 (plain)
    1 # Description: GD module for PHP
    2 # URL: http://www.php.net
    3 # Maintainer: Mikhail Kolesnik, mike at openbunker dot org
    4 # Depends on: libjpeg libpng freetype
    5 
    6 name=php-gd
    7 version=5.4.12
    8 release=1
    9 source=(http://www.php.net/distributions/php-$version.tar.bz2)
   10 
   11 # this version depends on internal libgd, as the
   12 # old way of building it: "--with-gd=shared,/usr"
   13 # does not work anymore
   14 build() {
   15 	cd php-$version
   16 	./configure --disable-all \
   17 				--with-gd=shared \
   18 				--with-png-dir=/usr \
   19 				--with-jpeg-dir=/usr \
   20 				--with-freetype-dir=/usr \
   21 				--enable-gd-native-ttf
   22 	make build-modules
   23 
   24 	install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
   25 	install -m 755 modules/gd.so $PKG/usr/lib/php/extensions
   26 	echo "extension=gd.so" > $PKG/etc/php/conf.d/gd.ini
   27 }

Generated by cgit