libgcrypt (all except 1.9) refactor into libgcrypt.inc, inherit pkgconfig, remove...
authorMichael Lauer <mickey@vanille-media.de>
Sat, 1 Mar 2008 16:25:41 +0000 (16:25 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Sat, 1 Mar 2008 16:25:41 +0000 (16:25 +0000)
packages/libgcrypt/libgcrypt.inc [moved from packages/libgcrypt/libgcrypt_1.2.1.bb with 56% similarity]
packages/libgcrypt/libgcrypt_1.2.0.bb [deleted file]
packages/libgcrypt/libgcrypt_1.2.2.bb [deleted file]
packages/libgcrypt/libgcrypt_1.2.3.bb
packages/libgcrypt/libgcrypt_1.4.0.bb

similarity index 56%
rename from packages/libgcrypt/libgcrypt_1.2.1.bb
rename to packages/libgcrypt/libgcrypt.inc
index 3f4942c..2dc2459 100644 (file)
@@ -4,25 +4,18 @@ PRIORITY = "optional"
 LICENSE = "GPL LGPL FDL"
 DEPENDS = "libgpg-error"
 
-# move libgcrypt-config into -dev package
-FILES_${PN} = "${libdir}/lib*.so.*"
-FILES_${PN}-dev += "${bindir}"
-
 SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz"
 
-inherit autotools binconfig
+inherit autotools binconfig pkgconfig
 
 EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities"
 
-do_stage() {
-       oe_libinstall -so -C src libgcrypt ${STAGING_LIBDIR}
-       oe_libinstall -so -C src libgcrypt-pthread ${STAGING_LIBDIR}
-       install -m 0755 src/libgcrypt-config ${STAGING_BINDIR_CROSS}/
-
-       install -d ${STAGING_INCDIR}/
-       for X in gcrypt.h gcrypt-module.h
-       do
-               install -m 0644 src/${X} ${STAGING_INCDIR}/${X}
-       done
+ARM_INSTRUCTION_SET = "arm"
 
+do_stage() {
+       autotools_stage_all
 }
+
+# move libgcrypt-config into -dev package
+FILES_${PN} = "${libdir}/lib*.so.*"
+FILES_${PN}-dev += "${bindir}"
diff --git a/packages/libgcrypt/libgcrypt_1.2.0.bb b/packages/libgcrypt/libgcrypt_1.2.0.bb
deleted file mode 100644 (file)
index be0ad78..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-PR = "r2"
-DESCRIPTION = "A general purpose cryptographic library based on the code from GnuPG"
-SECTION = "libs"
-PRIORITY = "optional"
-LICENSE = "GPL LGPL FDL"
-DEPENDS = "libgpg-error"
-
-# move libgcrypt-config into -dev package
-FILES_${PN} = "${libdir}/lib*.so.*"
-FILES_${PN}-dev += "${bindir}"
-
-SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz"
-
-inherit autotools binconfig
-
-EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities"
-
-do_stage() {
-       oe_libinstall -so -C src libgcrypt ${STAGING_LIBDIR}
-       oe_libinstall -so -C src libgcrypt-pthread ${STAGING_LIBDIR}
-       install -m 0755 src/libgcrypt-config ${STAGING_BINDIR_CROSS}/
-
-       install -d ${STAGING_INCDIR}/
-       for X in gcrypt.h gcrypt-module.h
-       do
-               install -m 0644 src/${X} ${STAGING_INCDIR}/${X}
-       done
-
-}
diff --git a/packages/libgcrypt/libgcrypt_1.2.2.bb b/packages/libgcrypt/libgcrypt_1.2.2.bb
deleted file mode 100644 (file)
index 3f4942c..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-DESCRIPTION = "A general purpose cryptographic library based on the code from GnuPG"
-SECTION = "libs"
-PRIORITY = "optional"
-LICENSE = "GPL LGPL FDL"
-DEPENDS = "libgpg-error"
-
-# move libgcrypt-config into -dev package
-FILES_${PN} = "${libdir}/lib*.so.*"
-FILES_${PN}-dev += "${bindir}"
-
-SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz"
-
-inherit autotools binconfig
-
-EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities"
-
-do_stage() {
-       oe_libinstall -so -C src libgcrypt ${STAGING_LIBDIR}
-       oe_libinstall -so -C src libgcrypt-pthread ${STAGING_LIBDIR}
-       install -m 0755 src/libgcrypt-config ${STAGING_BINDIR_CROSS}/
-
-       install -d ${STAGING_INCDIR}/
-       for X in gcrypt.h gcrypt-module.h
-       do
-               install -m 0644 src/${X} ${STAGING_INCDIR}/${X}
-       done
-
-}
index 74205da..2fe98d6 100644 (file)
@@ -1,22 +1,3 @@
-DESCRIPTION = "A general purpose cryptographic library based on the code from GnuPG"
-SECTION = "libs"
-PRIORITY = "optional"
-LICENSE = "GPL LGPL FDL"
-DEPENDS = "libgpg-error"
-PR = "r1"
+require libgcrypt.inc
 
-# move libgcrypt-config into -dev package
-FILES_${PN} = "${libdir}/lib*.so.*"
-FILES_${PN}-dev += "${bindir}"
-
-SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz"
-
-inherit autotools binconfig
-
-EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities"
-
-ARM_INSTRUCTION_SET = "arm"
-
-do_stage() {
-       autotools_stage_all
-}
+PR = "r2"
index 74205da..2fe98d6 100644 (file)
@@ -1,22 +1,3 @@
-DESCRIPTION = "A general purpose cryptographic library based on the code from GnuPG"
-SECTION = "libs"
-PRIORITY = "optional"
-LICENSE = "GPL LGPL FDL"
-DEPENDS = "libgpg-error"
-PR = "r1"
+require libgcrypt.inc
 
-# move libgcrypt-config into -dev package
-FILES_${PN} = "${libdir}/lib*.so.*"
-FILES_${PN}-dev += "${bindir}"
-
-SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz"
-
-inherit autotools binconfig
-
-EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities"
-
-ARM_INSTRUCTION_SET = "arm"
-
-do_stage() {
-       autotools_stage_all
-}
+PR = "r2"