diff mbox

[v2,1/3] doxygen: new package

Message ID 1428653766-22734-2-git-send-email-bgolaszewski@baylibre.com
State Superseded
Headers show

Commit Message

Bartosz Golaszewski April 10, 2015, 8:16 a.m. UTC
Host package only.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 package/doxygen/doxygen.hash |  2 ++
 package/doxygen/doxygen.mk   | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 package/doxygen/doxygen.hash
 create mode 100644 package/doxygen/doxygen.mk

Comments

Bartosz Golaszewski April 10, 2015, 9:20 a.m. UTC | #1
2015-04-10 10:16 GMT+02:00 Bartosz Golaszewski <bgolaszewski@baylibre.com>:
> Host package only.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> ---
>  package/doxygen/doxygen.hash |  2 ++
>  package/doxygen/doxygen.mk   | 25 +++++++++++++++++++++++++
>  2 files changed, 27 insertions(+)
>  create mode 100644 package/doxygen/doxygen.hash
>  create mode 100644 package/doxygen/doxygen.mk
>
> diff --git a/package/doxygen/doxygen.hash b/package/doxygen/doxygen.hash
> new file mode 100644
> index 0000000..40cfe16
> --- /dev/null
> +++ b/package/doxygen/doxygen.hash
> @@ -0,0 +1,2 @@
> +# Computed locally
> +sha256 d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec  doxygen-1.8.9.1.src.tar.gz
> diff --git a/package/doxygen/doxygen.mk b/package/doxygen/doxygen.mk
> new file mode 100644
> index 0000000..40884d4
> --- /dev/null
> +++ b/package/doxygen/doxygen.mk
> @@ -0,0 +1,25 @@
> +################################################################################
> +#
> +# doxygen
> +#
> +################################################################################
> +
> +DOXYGEN_VERSION = 1.8.9.1
> +DOXYGEN_SOURCE = doxygen-$(DOXYGEN_VERSION).src.tar.gz
> +DOXYGEN_SITE = http://ftp.stack.nl/pub/users/dimitri/
> +DOXYGEN_LICENSE = GPLv2
> +DOXYGEN_LICENSE_FILES = LICENSE
> +
> +define HOST_DOXYGEN_CONFIGURE_CMDS
> +       (cd $(@D); ./configure --shared --prefix=$(HOST_DIR)/usr)
> +endef
> +
> +define DOXYGEN_BUILD_CMDS
> +       ($(MAKE) -C $(@D))
> +endef
> +
> +define HOST_DOXYGEN_INSTALL_CMDS
> +       ($(MAKE) install -C $(@D))
> +endef
> +
> +$(eval $(host-autotools-package))
> --
> 2.1.4
>

Sorry, for that - I eventually forgot to change host-autotools-package
to host-generic-package. Surprisingly it works.

Version 3 coming right up.

Best regards,
Bartosz Golaszewski
Thomas Petazzoni April 10, 2015, 9:23 a.m. UTC | #2
Dear Bartosz Golaszewski,

On Fri, 10 Apr 2015 11:20:52 +0200, Bartosz Golaszewski wrote:

> Sorry, for that - I eventually forgot to change host-autotools-package
> to host-generic-package. Surprisingly it works.

This is not surprising: host-autotools-package allows you to override
<pkg>_CONFIGURE_CMDS, <pkg>_BUILD_CMDS and <pkg>_INSTALL_*_CMDS.

Also, in your v3, remove the parenthesis:

	($(MAKE) -C $(@D))

should be just:

	$(MAKE) -C $(@D)

And add a comment in the .mk file to explain why we're not using
host-autotools-package even if there is a ./configure script being
called.

Thanks!

Thomas
diff mbox

Patch

diff --git a/package/doxygen/doxygen.hash b/package/doxygen/doxygen.hash
new file mode 100644
index 0000000..40cfe16
--- /dev/null
+++ b/package/doxygen/doxygen.hash
@@ -0,0 +1,2 @@ 
+# Computed locally
+sha256 d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec  doxygen-1.8.9.1.src.tar.gz
diff --git a/package/doxygen/doxygen.mk b/package/doxygen/doxygen.mk
new file mode 100644
index 0000000..40884d4
--- /dev/null
+++ b/package/doxygen/doxygen.mk
@@ -0,0 +1,25 @@ 
+################################################################################
+#
+# doxygen
+#
+################################################################################
+
+DOXYGEN_VERSION = 1.8.9.1
+DOXYGEN_SOURCE = doxygen-$(DOXYGEN_VERSION).src.tar.gz
+DOXYGEN_SITE = http://ftp.stack.nl/pub/users/dimitri/
+DOXYGEN_LICENSE = GPLv2
+DOXYGEN_LICENSE_FILES = LICENSE
+
+define HOST_DOXYGEN_CONFIGURE_CMDS
+	(cd $(@D); ./configure --shared --prefix=$(HOST_DIR)/usr)
+endef
+
+define DOXYGEN_BUILD_CMDS
+	($(MAKE) -C $(@D))
+endef
+
+define HOST_DOXYGEN_INSTALL_CMDS
+	($(MAKE) install -C $(@D))
+endef
+
+$(eval $(host-autotools-package))