Patchwork [1/2,v2] doxygen-native: add recipe

login
register
mail settings
Submitter Zongchun Yu
Date May 23, 2014, 6:08 a.m.
Message ID <1400825337-3955-1-git-send-email-b40527@freescale.com>
Download mbox | patch
Permalink /patch/72621/
State New
Headers show

Comments

Zongchun Yu - May 23, 2014, 6:08 a.m.
From: Zongchun Yu <Zongchun.Yu@freescale.com>

Signed-off-by: Zongchun Yu <Zongchun.Yu@freescale.com>
---
 .../doxygen/doxygen-native_1.8.6.bb                |   23 ++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb
Ross Burton - May 23, 2014, 1:49 p.m.
Whilst this recipe works, I wonder if it would be more useful if it
were cross-compilable and used BBCLASSEXTEND to become native.

Ross

On 23 May 2014 07:08,  <b40527@freescale.com> wrote:
> From: Zongchun Yu <Zongchun.Yu@freescale.com>
>
> Signed-off-by: Zongchun Yu <Zongchun.Yu@freescale.com>
> ---
>  .../doxygen/doxygen-native_1.8.6.bb                |   23 ++++++++++++++++++++
>  1 files changed, 23 insertions(+), 0 deletions(-)
>  create mode 100644 meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb
>
> diff --git a/meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb b/meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb
> new file mode 100644
> index 0000000..eac4c9b
> --- /dev/null
> +++ b/meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION = "Utilities for generating documentation from source code"
> +HOMEPAGE = "http://www.stack.nl/~dimitri/doxygen/index.html"
> +SECTION = "console/utils"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=b380c86cea229fa42b9e543fc491f5eb"
> +DEPENDS = "flex-native bison-native"
> +
> +SRC_URI = "http://ftp.stack.nl/pub/users/dimitri/doxygen-${PV}.src.tar.gz"
> +
> +SRC_URI[md5sum] = "9385dc52f0627875f8fa758e754ec674"
> +SRC_URI[sha256sum] = "6a718625f0c0c1eb3dee78ec1f83409b49e790f4c6c47fd44cd51cb92695535f"
> +
> +inherit native
> +
> +EXTRA_OECONF = "--prefix ${prefix}"
> +
> +do_configure () {
> +    ./configure ${EXTRA_OECONF}
> +}
> +
> +do_install() {
> +    oe_runmake install DESTDIR=${D} MAN1DIR=share/man/man1
> +}
> --
> 1.7.0.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton - May 23, 2014, 4:33 p.m.
On 23 May 2014 14:49, Burton, Ross <ross.burton@intel.com> wrote:
> Whilst this recipe works, I wonder if it would be more useful if it
> were cross-compilable and used BBCLASSEXTEND to become native.

"That can't be too hard" I thought.  "Surely something as common as
doxygen has a reasonable build system" I thought.

When scratching an itch I discovered that Qt had written another build
system (I make that three so far), but this branch appears to be able
to build both target and native doxygen binaries:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/doxy

Apart from the TODO in the recipe that needs to be resolved, it's
entirely untested on both host and target.

Ross
Zongchun Yu - May 27, 2014, 7:38 a.m.
> Whilst this recipe works, I wonder if it would be more useful if it 
> were cross-compilable and used BBCLASSEXTEND to become native.
Yes. I agree. it would be more useful.

Patch

diff --git a/meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb b/meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb
new file mode 100644
index 0000000..eac4c9b
--- /dev/null
+++ b/meta/recipes-devtools/doxygen/doxygen-native_1.8.6.bb
@@ -0,0 +1,23 @@ 
+DESCRIPTION = "Utilities for generating documentation from source code"
+HOMEPAGE = "http://www.stack.nl/~dimitri/doxygen/index.html"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b380c86cea229fa42b9e543fc491f5eb"
+DEPENDS = "flex-native bison-native"
+
+SRC_URI = "http://ftp.stack.nl/pub/users/dimitri/doxygen-${PV}.src.tar.gz"
+
+SRC_URI[md5sum] = "9385dc52f0627875f8fa758e754ec674"
+SRC_URI[sha256sum] = "6a718625f0c0c1eb3dee78ec1f83409b49e790f4c6c47fd44cd51cb92695535f"
+
+inherit native
+
+EXTRA_OECONF = "--prefix ${prefix}"
+
+do_configure () {
+    ./configure ${EXTRA_OECONF}
+}
+
+do_install() {
+    oe_runmake install DESTDIR=${D} MAN1DIR=share/man/man1
+}