Files
haikuports/x11-libs/cairo/cairo-1.14.12.recipe
Gerasim Troeglazov fb1ac637d8 cairo: bump version
2018-05-10 22:53:40 +10:00

94 lines
2.5 KiB
Bash

SUMMARY="Multi-platform 2D graphics library"
DESCRIPTION="Cairo is a 2D graphics library with support for multiple output \
devices. Currently supported output targets include the X Window \
System (via both Xlib and XCB), quartz, win32, and image buffers, \
as well as PDF, PostScript, and SVG file output. Experimental backends \
include OpenGL, BeOS, OS/2, and DirectFB."
HOMEPAGE="http://cairographics.org/"
COPYRIGHT="2000, 2002, 2004-2007 Keith Packard
2002-2003 University of Southern California
2004-2010 Red Hat, Inc.
2005-2010 Mozilla Corporation
2006-2009 Adrian Johnson
2007-2009 Chris Wilson
2006-2013 Intel Corporation
2011 Andrea Canciani
2011 Samsung Electronics
2010-2011 Linaro Limited
2009-2010 Eric Anholt
2002-2010 many others"
LICENSE="GNU LGPL v2.1
MPL v1.1"
REVISION="1"
SOURCE_URI="http://cairographics.org/releases/cairo-$portVersion.tar.xz"
CHECKSUM_SHA256="8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16"
PATCHES="cairo-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
cairo$secondaryArchSuffix = $portVersion compat >= 1
lib:libcairo$secondaryArchSuffix = 2.11400.10 compat >= 2
lib:libcairo_script_interpreter$secondaryArchSuffix = 2.11400.10 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libpixman_1$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
cairo${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libcairo$secondaryArchSuffix = 2.11400.10 compat >= 2
devel:libcairo_script_interpreter$secondaryArchSuffix = 2.11400.10 compat >= 2
"
REQUIRES_devel="
cairo$secondaryArchSuffix == $portVersion base
devel:libfontconfig$secondaryArchSuffix
devel:libpixman_1$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libpixman_1$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
export CFLAGS=-D__BSD_VISIBLE
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libcairo*.la
prepareInstalledDevelLibs libcairo libcairo-script-interpreter
fixPkgconfig
packageEntries devel \
$developDir
}