neon-0.24.7: add SSL support
authorMustafa Yuecel <yuecelm@ee.ethz.ch>
Fri, 10 Mar 2006 22:17:06 +0000 (22:17 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 10 Mar 2006 22:17:06 +0000 (22:17 +0000)
  - add openssl and time to DEPENDS
  - add lib_package to inherit
  - copy neon-config to staging dir (used by davfs2)

packages/neon/neon_0.24.7.bb

index 2e2ba4d..d53260b 100644 (file)
@@ -1,18 +1,24 @@
-inherit autotools
-
-DEPENDS = "zlib libxml2 expat"
+DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface."
 SECTION = "base"
 LICENSE = "LGPL"
-DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface."
+DEPENDS = "openssl zlib libxml2 expat time"
+
 PR = "r1"
 
 SRC_URI = "http://www.webdav.org/neon/neon-0.24.7.tar.gz \
           file://no-func-checks.patch;patch=1"
 
-EXTRA_OECONF = " --without-ssl --with-libxml2 --with-expat \
-                --enable-shared --enable-static"
+inherit autotools lib_package
+
+EXTRA_OECONF = " --with-ssl --with-libxml2 --with-expat --enable-shared"
 
 do_stage () {
        autotools_stage_includes
        oe_libinstall -C src -so -a libneon ${STAGING_LIBDIR}/
+
+        cat neon-config | sed -e "s,^prefix=.*,prefix=${STAGING_BINDIR}/..," \
+                             -e "s,^exec_prefix=.*,exec_prefix=${STAGING_BINDIR}/..," \
+                             -e "s,^includedir=.*,includedir=${STAGING_INCDIR}," \
+                             -e "s,^libdir=.*,libdir=${STAGING_LIBDIR}," > ${STAGING_BINDIR}/neon-config
+        chmod a+rx ${STAGING_BINDIR}/neon-config
 }