2015-11-04 17:30:47 +01:00
|
|
|
# Description: GD module for PHP
|
2020-06-06 13:00:05 +02:00
|
|
|
# URL: https://www.php.net
|
2015-11-04 17:30:47 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: libgd
|
2015-08-07 11:58:40 +09:00
|
|
|
|
|
|
|
name=php-gd
|
2021-05-03 19:17:01 +02:00
|
|
|
version=7.4.18
|
2015-08-07 11:58:40 +09:00
|
|
|
release=1
|
2020-06-06 13:00:05 +02:00
|
|
|
source=(https://www.php.net/distributions/php-$version.tar.xz)
|
2015-08-07 11:58:40 +09:00
|
|
|
|
|
|
|
build() {
|
2018-03-30 13:21:17 +02:00
|
|
|
cd php-$version
|
2015-08-07 11:58:40 +09:00
|
|
|
|
2020-02-15 13:57:18 +01:00
|
|
|
./configure --disable-all \
|
|
|
|
--enable-gd=shared \
|
|
|
|
--with-external-gd
|
|
|
|
|
2018-03-30 13:21:17 +02:00
|
|
|
make build-modules
|
2015-08-07 11:58:40 +09:00
|
|
|
|
2018-03-30 13:21:17 +02:00
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
|
|
install -m 755 modules/gd.so $PKG/usr/lib/php/extensions/
|
2015-08-07 11:58:40 +09:00
|
|
|
|
2018-03-30 13:21:17 +02:00
|
|
|
printf 'extension=%s\n' gd.so > $PKG/etc/php/conf.d/gd.ini
|
2015-08-07 11:58:40 +09:00
|
|
|
}
|