# Description: Library for the dynamic creation of images
# URL: https://libgd.github.io/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: xorg-libxpm libjpeg-turbo freetype

name=libgd
version=2.3.3
release=2
source=(https://github.com/libgd/libgd/releases/download/gd-$version/$name-$version.tar.xz
	remove_gd_flip_macros.patch)

build () {
	cd $name-$version
	# macros are used in php
	patch -p1 -R -i $SRC/remove_gd_flip_macros.patch
	./configure --prefix=/usr
	make DESTDIR=$PKG install
}
