### this file is sourced not run
PKGVER=0.2.0
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5
TARBALL=gegl-$PKGVER.tar.bz2
MD5SUM=32b00002f1f1e316115c4ed922e1dec8 
SRC_URL=http://download.gimp.org/pub/gegl/0.2/$TARBALL
BUNDLE=

SLACKREQ='libbabl libexiv2 graphviz-qt5 librsvg libpng libjpeg-turbo \
gdk-pixbuf cairo pango libjasper
libspiro = 2007.10.29-x86_64-1'
SLACKDESC="libgegl: libgegl $PKGVER (Generic Graphics Library)  
libgegl:  
libgegl: This package provides the GEneric Graphics Library, which is a graph 
libgegl: based image processing format.  
libgegl: 
libgegl: 
libgegl: 
libgegl: 
libgegl: 
libgegl: 
libgegl: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# ffmpeg 5.x way ahead of libgegl-0.2
	CONFFLAGS="$CONFFLAGS --disable-docs --without-avformat"

	# this patch kills the program but it doesn't get used anyway
	cd /tmp/gegl* &&
	sed -i -e '/try/d; /catch/d' tools/exp_combine.cpp &&
	
	pkg_build_autoconf &&
	install -d -m755 /usr/share/gtk-doc/html/gegl &&
	install -v -m644 docs/*.{css,html} /usr/share/gtk-doc/html/gegl &&
	install -d -v -m755 /usr/share/gtk-doc/html/gegl/images &&
	install -v -m644 docs/images/* /usr/share/gtk-doc/html/gegl/images &&
	pkg_build_slackdesc &&

	rm -rf /var/cache/fontconfig /var/db/fontconfig
}


