From b63f9a572dcb3f7b87c19946c6e919c8326a20c9 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sat, 4 Oct 2014 07:57:24 +0000 Subject: [PATCH] cairo: added a recipe for version 1.12.16 * no beos backend --- x11-libs/cairo/cairo-1.12.16.recipe | 102 ++++++++++++++++++ x11-libs/cairo/patches/cairo-1.12.16.patchset | 25 +++++ 2 files changed, 127 insertions(+) create mode 100644 x11-libs/cairo/cairo-1.12.16.recipe create mode 100644 x11-libs/cairo/patches/cairo-1.12.16.patchset diff --git a/x11-libs/cairo/cairo-1.12.16.recipe b/x11-libs/cairo/cairo-1.12.16.recipe new file mode 100644 index 000000000..48ea246ab --- /dev/null +++ b/x11-libs/cairo/cairo-1.12.16.recipe @@ -0,0 +1,102 @@ +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 +" +SRC_URI="http://cairographics.org/releases/cairo-$portVersion.tar.xz" +CHECKSUM_SHA256="2505959eb3f1de3e1841023b61585bfd35684b9733c7b6a3643f4f4cbde6d846" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PATCHES="cairo-$portVersion.patchset" + +PROVIDES=" + cairo$secondaryArchSuffix = $portVersion compat >= 1 + lib:libcairo$secondaryArchSuffix = 2.11200.16 compat >= 2 + lib:libcairo_script_interpreter$secondaryArchSuffix = 2.11200.16 compat >= 2 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libfontconfig$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libpixman_1$secondaryArchSuffix + lib:libpng15$secondaryArchSuffix + lib:libz$secondaryArchSuffix + # required by fontconfig + lib:libbz2$secondaryArchSuffix + lib:libxml2$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libfontconfig$secondaryArchSuffix + devel:libfreetype$secondaryArchSuffix + devel:libpixman_1$secondaryArchSuffix + devel:libpng15$secondaryArchSuffix + devel:libz$secondaryArchSuffix + # required by fontconfig + devel:libbz2$secondaryArchSuffix + devel:libxml2$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 + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libcairo libcairo-script-interpreter + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + cairo${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:libcairo$secondaryArchSuffix = 2.11200.16 compat >= 2 + devel:libcairo_script_interpreter$secondaryArchSuffix = 2.11200.16 compat >= 2 + " +REQUIRES_devel=" + cairo$secondaryArchSuffix == $portVersion base + " diff --git a/x11-libs/cairo/patches/cairo-1.12.16.patchset b/x11-libs/cairo/patches/cairo-1.12.16.patchset new file mode 100644 index 000000000..b078b2c21 --- /dev/null +++ b/x11-libs/cairo/patches/cairo-1.12.16.patchset @@ -0,0 +1,25 @@ +From 9a75978898bef649948b723701332b975b52a202 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Fri, 3 Oct 2014 18:33:08 +0000 +Subject: Haiku patch + + +diff --git a/configure.ac b/configure.ac +index fd54ad1..5146be6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -285,6 +285,11 @@ CAIRO_ENABLE_SURFACE_BACKEND(beos, BeOS/Zeta, no, [ + AC_CHECK_LIB(be,main,beos_LIBS="$beos_LIBS -lbe") + AC_CHECK_LIB(zeta,main,beos_LIBS="$beos_LIBS -lzeta") + ;; ++ *-*-haiku) ++ beos_LIBS="" ++ AC_CHECK_LIB(be,main,beos_LIBS="$beos_LIBS -lbe") ++ AC_CHECK_LIB(network,main,beos_LIBS="$beos_LIBS -lnetwork") ++ ;; + *) + use_beos="no (requires a BeOS platform)" + ;; +-- +1.8.3.4 +