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

# source: BLFS 11.3
TARBALL=cairo-$PKGVER.tar.xz
MD5SUM=c5a6f255af72a2e5faa8e6a53dd882e2
SRC_URL=https://cairographics.org/snapshots/$TARBALL
BUNDLE=

SLACKREQ='libpng glib fontconfig libX11 mesa libdrm
pixman >= 0.40.0'
SLACKDESC="cairo: cairo $PKGVER (Advanced 2D graphics library)  
cairo:  
cairo: Cairo is a 2D graphics library with support for multiple output 
cairo: devices. Currently supported output targets include the X Window 
cairo: System, win32, image buffers, PostScript, PDF and SVG. Experimental 
cairo: backends include OpenGL, Quartz and XCB file output. Cairo is designed 
cairo: to produce consistent output on all output media while taking advantage 
cairo: of display hardware acceleration when available (e.g., through the X 
cairo: Render Extension). The Cairo API provides operations similar to the 
cairo: drawing operators of PostScript and PDF.  
cairo: http://cairographics.org
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/cairo* &&

	# BLFS 11.3: fix errors with binutils > 2.39
	sed 's/PTR/void */' -i util/cairo-trace/lookup-symbol.c	&&

	# BLFS 11.3: fix pkgconfig file error
	sed -e "/@prefix@/a exec_prefix=@exec_prefix@" \
		-i util/cairo-script/cairo-script-interpreter.pc.in &&

	CONFFLAGS="$CONFFLAGS \
		--disable-static  \
		--enable-tee      \
		--enable-gl       \
		--enable-xlib-xcb \
		--enable-gtk-doc  \
	" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


