# Description: An Open Source Implementation of the GDI+ API
# URL: http://www.mono-project.com/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libtiff cairo giflib glib libexif
 
name=libgdiplus
version=3.12
release=1
source=(http://download.mono-project.com/sources/${name}/${name}-${version}.tar.gz
	libgdiplus0-giflib5.patch)

build() {
	cd $name-${version}
	patch -Np1 -i ../libgdiplus0-giflib5.patch
    sed -i -e 's/-L\${libjpeg_prefix}\/lib -ljpeg/-ljpeg/' configure
	./configure --prefix=/usr --with-cairo=system
  	make
	make DESTDIR=$PKG install
}
