[oe] recipe for libgdiplus

Konrad Mattheis mattheis at ukma.de
Wed Dec 16 18:33:40 UTC 2009


Hi,

I already found the missing entry. I added:

EXTRA_OECONF = " --with-glib=${STAGING_LIBDIR}/.. \"

or do you prefer a different way?

now it is working. I attached the complete bb-file and the
needed patch.

I will try in the next week to make a patch that could applied
to the main line. Before it is ready I have to add some RDEPENDS.


Do you have any comments on my file. Things, that is not okay,..?

bye
Konrad

Attachment:

//////////////////////////////////////////////////
// libgdiplus-svn.bb
DESCRIPTION = "libgdiplus for WinForms in Mono"
LICENSE = "GPL"
SECTION = "devel/mono"

DEPENDS = "virtual/libx11 pixman libsm libpng libtiff fontconfig libxrender glib-2.0"

PRIORITY = "optional"

SRCREV = "140293"
PV = "2.4.2.3+svnr${SRCREV}"

PR = "r6"

SRC_URI = "\
 svn://anonsvn.mono-project.com/source/trunk/;module=libgdiplus;proto=svn;rev=${SRCREV};name=libgdiplus \
 file://patches/configure_fix_cairo.patch;patch=1 \
"

S = "${WORKDIR}/libgdiplus"

# PACKAGE_ARCH = "${MACHINE}"

TARGET_LDFLAGS = ""

inherit autotools pkgconfig


EXTRA_OECONF = " --with-glib=${STAGING_LIBDIR}/.. \"

do_compile () {
    oe_runmake clean
    oe_runmake all
}

/////////////////////////////////////////////////////
// configure_fix_cairo.patch

diff -crB libgdiplus/cairo/boilerplate/Makefile.am libgdiplus/cairo_patch/boilerplate/Makefile.am
*** libgdiplus/cairo/boilerplate/Makefile.am	2009-12-12 20:18:53.000000000 +0100
--- libgdiplus/cairo_patch/boilerplate/Makefile.am	2009-12-13 11:17:24.000000000 +0100
***************
*** 13,19 ****
  libcairoboilerplate_la_LIBADD = $(top_builddir)/src/libcairo.la $(CAIRO_LDADD)
  
  if CAIRO_HAS_BEOS_SURFACE
- libcairoboilerplate_la_SOURCES += cairo-boilerplate-beos.cpp
  libcairoboilerplate_la_SOURCES += cairo-boilerplate-beos-private.h
  # BeOS system headers trigger this warning
  libcairoboilerplate_la_CXXFLAGS = -Wno-multichar
--- 13,18 ----
diff -crB libgdiplus/cairo/configure.in libgdiplus/cairo_patch/configure.in
*** libgdiplus/cairo/configure.in	2009-12-12 20:18:57.000000000 +0100
--- libgdiplus/cairo_patch/configure.in	2009-12-13 11:20:25.000000000 +0100
***************
*** 27,41 ****
--- 27,44 ----
  
  # Increment if the interface has additions, changes, removals.
  LT_CURRENT=19
+ AC_SUBST(LT_CURRENT)
  
  # Increment any time the source changes; set to
  # 0 if you increment CURRENT
  LT_REVISION=5
+ AC_SUBST(LT_REVISION)
  
  # 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
+ AC_SUBST(LT_AGE)
  
  dnl ===========================================================================
  
***************
*** 461,467 ****
  
  # Uncomment the if, since with it in place compilation breaks on OpenSuSE 11.1b4
  #if test "x$use_beos" = "xyes"; then
!   AC_PROG_CXX
  #fi
  
  dnl ===========================================================================
--- 464,470 ----
  
  # Uncomment the if, since with it in place compilation breaks on OpenSuSE 11.1b4
  #if test "x$use_beos" = "xyes"; then
! #  AC_PROG_CXX
  #fi
  
  dnl ===========================================================================
Nur in cairo_patch: patch.

-----Ursprüngliche Nachricht-----
Von: openembedded-devel-bounces at lists.openembedded.org [mailto:openembedded-devel-bounces at lists.openembedded.org] Im Auftrag von GNUtoo
Gesendet: Mittwoch, 16. Dezember 2009 18:18
An: openembedded-devel at lists.openembedded.org
Betreff: Re: [oe] recipe for libgdiplus

On Sat, 2009-12-12 at 22:55 +0100, Konrad Mattheis wrote:
> Hi,
> 
> try to build a recipe for libgdiplus. This is a library which you need
> if you want to get Winforms with mono working.
> 
> A lot of stuff is already working but it always stops because it 
> don't find the "glib.h"
> 
> In this headerfiles basic types of the glib are described.
> see:
> http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html
> 
> I already wrote in my recipe:
> 
> DEPENDS = "... glib-2.0 ..." but I don't solve the problem.
> 
> Any ideas??
> 
> bye
> Konrad
could you post your recipe somewhere, and give more infos on the
failure?
by the way is glib already bitbaken?
can you specify the include dir path for glib(if it uses the autotools
in ./configure)?
The file you are talking about should be somewhere like
${STAGING_INCDIR}/glib-2.0/glib.h
so it's directory should be:
${STAGING_INCDIR}/glib-2.0

Denis.



_______________________________________________
Openembedded-devel mailing list
Openembedded-devel at lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list