From patchwork Sun Mar 11 12:01:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Backported libgdiplus 2.10 from meta-mono Date: Sun, 11 Mar 2012 12:01:17 -0000 From: Alex Lennon X-Patchwork-Id: 23011 Message-Id: <1331467277-7665-1-git-send-email-ajlennon@dynamicdevices.co.uk> To: openembedded-devel@lists.openembedded.org Cc: Alex J Lennon From: Alex J Lennon Signed-off-by: Alex J Lennon --- recipes/libgdiplus/files/cairo/configure.in.diff | 31 ++++++++++++++++++++++ recipes/libgdiplus/libgdiplus_2.10.bb | 28 +++++++++++++++++++ 2 files changed, 59 insertions(+), 0 deletions(-) create mode 100644 recipes/libgdiplus/files/cairo/configure.in.diff create mode 100644 recipes/libgdiplus/libgdiplus_2.10.bb diff --git a/recipes/libgdiplus/files/cairo/configure.in.diff b/recipes/libgdiplus/files/cairo/configure.in.diff new file mode 100644 index 0000000..3465bf4 --- /dev/null +++ b/recipes/libgdiplus/files/cairo/configure.in.diff @@ -0,0 +1,31 @@ +--- libgdiplus-2.10.orig/cairo/configure.in 2012-01-23 15:09:19.198498003 -0500 ++++ libgdiplus-2.10/cairo/configure.in 2012-01-23 15:08:24.922498003 -0500 +@@ -26,23 +26,23 @@ + # libtool shared library version + + # Increment if the interface has additions, changes, removals. +-LT_CURRENT=19 ++m4_define(lt_current, 19) + + # Increment any time the source changes; set to + # 0 if you increment CURRENT +-LT_REVISION=5 ++m4_define(lt_revision, 5) + + # Increment if any interfaces have been added; set to 0 + # if any interfaces have been removed. removal has + # precedence over adding, so set to 0 if both happened. +-LT_AGE=17 ++m4_define(lt_age, 17) + + dnl =========================================================================== + +-VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE" ++VERSION_INFO="lt_current:lt_revision:lt_age" + AC_SUBST(VERSION_INFO) + +-LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE` ++LT_CURRENT_MINUS_AGE=`expr lt_current - lt_age` + AC_SUBST(LT_CURRENT_MINUS_AGE) + + CAIRO_VERSION_MAJOR=cairo_version_major() diff --git a/recipes/libgdiplus/libgdiplus_2.10.bb b/recipes/libgdiplus/libgdiplus_2.10.bb new file mode 100644 index 0000000..c24f551 --- /dev/null +++ b/recipes/libgdiplus/libgdiplus_2.10.bb @@ -0,0 +1,28 @@ +SUMMARY = "An Open Source implementation of the GDI+ API" +DESCRIPTION = "This is part of the Mono project - http://mono-project.com" +HOMEPAGE = "http://mono-project.com" +BUGTRACKER = "http://bugzilla.xamarin.com/" +SECTION = "libs" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=fe7364dfce9f3689eb6995e7cdd56879" + +SRC_URI = "http://download.mono-project.com/sources/libgdiplus/libgdiplus-${PV}.tar.bz2 \ + file://cairo/configure.in.diff" + +inherit autotools pkgconfig + +DEPENDS =+ "cairo freetype fontconfig libxft libpng" + +PR = "r0" + +SRC_URI[md5sum] = "451966e8f637e3a1f02d1d30f900255d" +SRC_URI[sha256sum] = "2d9e0397ef5583ed855eaafcdac8cabbe1d58463ed1e4b545be6dde5b63712a4" + + +FILES_${PN} += "${libdir}/libgdiplus.so" +INSANE_SKIP_${PN} += "dev-so" + +do_install_append() { + # fix pkgconfig .pc file + sed -i -e s#I${STAGING_DIR_HOST}#I#g ${D}${libdir}/pkgconfig/*.pc +}