]> pilppa.org Git - familiar-h63xx-build.git/commitdiff
libgpg-error: upgrade to 1.4
authorRene Wagner <rw@handhelds.org>
Sat, 14 Oct 2006 15:58:43 +0000 (17:58 +0200)
committerRene Wagner <rw@handhelds.org>
Sat, 14 Oct 2006 15:58:43 +0000 (17:58 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/libgpg-error/libgpg-error-1.4/pkgconfig.patch [new file with mode: 0644]
org.handhelds.familiar/packages/libgpg-error/libgpg-error_1.4.bb [new file with mode: 0644]

diff --git a/org.handhelds.familiar/packages/libgpg-error/libgpg-error-1.4/pkgconfig.patch b/org.handhelds.familiar/packages/libgpg-error/libgpg-error-1.4/pkgconfig.patch
new file mode 100644 (file)
index 0000000..73ef74d
--- /dev/null
@@ -0,0 +1,43 @@
+--- libgpg-error-1.4/configure.ac      2006-09-14 15:15:15.000000000 +0200
++++ libgpg-error-1.4.new/configure.ac  2006-10-10 00:35:51.000000000 +0200
+@@ -119,6 +119,7 @@
+ AC_SUBST(GPG_ERROR_CONFIG_LIBS)
+ AC_SUBST(GPG_ERROR_CONFIG_CFLAGS)
+ AC_CONFIG_FILES([src/gpg-error-config], [chmod +x src/gpg-error-config])
++AC_CONFIG_FILES([src/gpg-error.pc])
+ # Special defines for certain platforms
+--- libgpg-error-1.4/src/Makefile.am   2006-09-05 20:21:14.000000000 +0200
++++ libgpg-error-1.4.new/src/Makefile.am       2006-10-10 00:37:47.000000000 +0200
+@@ -29,13 +29,16 @@
+ m4datadir = $(datadir)/aclocal
+ m4data_DATA = gpg-error.m4
++pkgconfigdir = $(libdir)/pkgconfig
++pkgconfig_DATA = gpg-error.pc
++
+ EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \
+       mkerrnos.awk errnos.in \
+       mkerrcodes.awk mkerrcodes1.awk mkerrcodes2.awk mkerrcodes.c \
+       mkheader.awk gpg-error.h.in \
+       err-sources.h err-codes.h gpg-error-config.in gpg-error.m4 \
+-      gpg-error.def versioninfo.rc.in
++      gpg-error.def versioninfo.rc.in gpg-error.pc.in
+ BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
+       err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h
+--- libgpg-error-1.4/src/gpg-error.pc.in       1970-01-01 01:00:00.000000000 +0100
++++ libgpg-error-1.4.new/src/gpg-error.pc.in   2006-10-10 00:35:51.000000000 +0200
+@@ -0,0 +1,10 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: gpg-error
++Description: a library that defines common error values for all GnuPG components
++Version: @VERSION@
++Libs: -L{libdir} -lgpg-error
++Cflags: -I${includedir}
diff --git a/org.handhelds.familiar/packages/libgpg-error/libgpg-error_1.4.bb b/org.handhelds.familiar/packages/libgpg-error/libgpg-error_1.4.bb
new file mode 100644 (file)
index 0000000..5483f68
--- /dev/null
@@ -0,0 +1,27 @@
+DESCRIPTION = "GPG-Error library"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "GPL LGPL FDL"
+
+SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-${PV}.tar.gz \
+          file://pkgconfig.patch;patch=1"
+
+# move libgpg-error-config into -dev package
+FILES_${PN} = "${libdir}/lib*.so.*"
+FILES_${PN}-dev += "${bindir}"
+
+inherit autotools binconfig pkgconfig
+
+do_stage() {
+       oe_libinstall -a -so -C src libgpg-error ${STAGING_LIBDIR}
+       install -m 0755 src/gpg-error-config ${STAGING_BINDIR}/
+
+       install -d ${STAGING_INCDIR}/
+       for X in gpg-error.h
+       do
+               install -m 0644 ${S}/src/$X ${STAGING_INCDIR}/$X
+       done
+
+       install -d ${STAGING_DATADIR}/aclocal
+       install -m 0644 src/gpg-error.m4 ${STAGING_DATADIR}/aclocal/
+}