libvmime recipe (static library)

Submitted by Nathan Harris on March 2, 2011, 8:13 p.m.


Message ID
State New, archived
Headers show

Commit Message

Nathan Harris March 2, 2011, 8:13 p.m.
I have a "working" recipe for VMime.  So far, I can only get the static 
version of the library to compile and get successfully packaged.  When I 
try to link against this static library with another recipe, the linker 
says "skipping incompatible 
when searching for -lvmime".

Here is the recipe and patch.

Patch hide | download patch | download mbox


DESCRIPTION = "VMime is a free mail library for C++"
DEPENDS = "libgsasl gnutls"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/vmime/${PN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "d5b6de44f7f9ca0e4cefe597d1905605"
SRC_URI[sha256sum] = 

SRC_URI += "file://SConstruct.patch"

# Workaround for vmime which creates .pc inside install
do_install_append () {

for i in `find ${S}/ ${D}/${libdir}/pkgconfig -name "*.pc" -type f` ; do \
             sed -i -e 's:${D}::g' $i

inherit scons pkgconfig


--- libvmime-0.9.1/SConstruct.orig      2011-03-02 13:33:14.871718344 -0500
+++ libvmime-0.9.1/SConstruct   2011-03-02 14:39:23.699720558 -0500
@@ -500,7 +500,7 @@ 
                     + 'This option has no effect if "with_messaging" is 
not activated.\n'
                     + 'Separate protocols with spaces; string must be 
quoted with ".\n'
                     + 'Currently available protocols: pop3, smtp, imap, 
maildir, sendmail.',
-               '"pop3 smtp imap maildir sendmail"'
+               '"pop3 smtp imap maildir"'