mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
cairo: add recipe for version 1.14.8.
This commit is contained in:
93
x11-libs/cairo/cairo-1.14.8.recipe
Normal file
93
x11-libs/cairo/cairo-1.14.8.recipe
Normal file
@@ -0,0 +1,93 @@
|
||||
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="d1f2d98ae9a4111564f6de4e013d639cf77155baf2556582295a0f00a9bc5e20"
|
||||
PATCHES="cairo-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
cairo$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libcairo$secondaryArchSuffix = 2.11400.8 compat >= 2
|
||||
lib:libcairo_script_interpreter$secondaryArchSuffix = 2.11400.8 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.8 compat >= 2
|
||||
devel:libcairo_script_interpreter$secondaryArchSuffix = 2.11400.8 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
|
||||
}
|
||||
92
x11-libs/cairo/patches/cairo-1.14.8.patchset
Normal file
92
x11-libs/cairo/patches/cairo-1.14.8.patchset
Normal file
@@ -0,0 +1,92 @@
|
||||
From 888e4094afccd2016aa72828b7d49263ee80d8db Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Fri, 3 Oct 2014 18:33:08 +0000
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 2ce1959..c04c05c 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -287,6 +287,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)"
|
||||
;;
|
||||
--
|
||||
2.10.2
|
||||
|
||||
|
||||
From e3e4f468cc12266d121a2ddb99808a090b15e157 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@gmail.com>
|
||||
Date: Mon, 6 Oct 2014 18:07:36 +0200
|
||||
Subject: Add missing include fenv.h.
|
||||
|
||||
|
||||
diff --git a/test/cairo-test.c b/test/cairo-test.c
|
||||
index a351b01..474f34c 100644
|
||||
--- a/test/cairo-test.c
|
||||
+++ b/test/cairo-test.c
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
+#include <fenv.h>
|
||||
#include <string.h>
|
||||
#if HAVE_FCFINI
|
||||
#include <fontconfig/fontconfig.h>
|
||||
--
|
||||
2.10.2
|
||||
|
||||
|
||||
From 66cf163733ee56380b0525b918b7969849ed0229 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Fri, 21 Nov 2014 22:11:40 +0000
|
||||
Subject: link tests against libnetwork.
|
||||
|
||||
|
||||
diff --git a/perf/Makefile.am b/perf/Makefile.am
|
||||
index 40b35bc..ee150d9 100644
|
||||
--- a/perf/Makefile.am
|
||||
+++ b/perf/Makefile.am
|
||||
@@ -11,7 +11,7 @@ AM_CPPFLAGS = \
|
||||
-I$(top_builddir)/src \
|
||||
$(CAIRO_CFLAGS)
|
||||
|
||||
-AM_LDFLAGS = $(CAIRO_LDFLAGS)
|
||||
+AM_LDFLAGS = $(CAIRO_LDFLAGS) -lnetwork
|
||||
|
||||
SUBDIRS = micro
|
||||
|
||||
diff --git a/test/Makefile.am b/test/Makefile.am
|
||||
index b2fcd27..cf7e4ad 100644
|
||||
--- a/test/Makefile.am
|
||||
+++ b/test/Makefile.am
|
||||
@@ -94,7 +94,7 @@ cairo_test_suite_LDADD = \
|
||||
$(top_builddir)/test/pdiff/libpdiff.la \
|
||||
$(top_builddir)/boilerplate/libcairoboilerplate.la \
|
||||
$(top_builddir)/src/libcairo.la \
|
||||
- $(CAIRO_LDADD)
|
||||
+ $(CAIRO_LDADD) -lnetwork
|
||||
cairo_test_suite_DEPENDENCIES = \
|
||||
$(top_builddir)/test/pdiff/libpdiff.la \
|
||||
$(top_builddir)/boilerplate/libcairoboilerplate.la \
|
||||
@@ -210,7 +210,7 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/src \
|
||||
$(CAIRO_CFLAGS)
|
||||
-AM_LDFLAGS = $(CAIRO_LDFLAGS)
|
||||
+AM_LDFLAGS = $(CAIRO_LDFLAGS) -lnetwork
|
||||
|
||||
$(top_builddir)/boilerplate/libcairoboilerplate.la: $(top_builddir)/src/libcairo.la
|
||||
cd $(top_builddir)/boilerplate && $(MAKE) $(AM_MAKEFLAGS) libcairoboilerplate.la
|
||||
--
|
||||
2.10.2
|
||||
|
||||
Reference in New Issue
Block a user