Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/xdebug: new package
@ 2019-09-23 10:17 Nicolas Carrier
  2019-09-23 13:27 ` Arnout Vandecappelle
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Carrier @ 2019-09-23 10:17 UTC (permalink / raw)
  To: buildroot

Extension for PHP to assist with debugging and development.

Signed-off-by: Nicolas Carrier <nicolas.carrier@orolia.com>
---
 package/Config.in          |  1 +
 package/xdebug/Config.in   |  7 +++++++
 package/xdebug/xdebug.hash |  3 +++
 package/xdebug/xdebug.mk   | 25 +++++++++++++++++++++++++
 4 files changed, 36 insertions(+)
 create mode 100644 package/xdebug/Config.in
 create mode 100644 package/xdebug/xdebug.hash
 create mode 100644 package/xdebug/xdebug.mk

diff --git a/package/Config.in b/package/Config.in
index 2fc11065f6..95115ec469 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -141,6 +141,7 @@ menu "Debugging, profiling and benchmark"
 	source "package/valgrind/Config.in"
 	source "package/vmtouch/Config.in"
 	source "package/whetstone/Config.in"
+	source "package/xdebug/Config.in"
 endmenu
 
 menu "Development tools"
diff --git a/package/xdebug/Config.in b/package/xdebug/Config.in
new file mode 100644
index 0000000000..c0abb71896
--- /dev/null
+++ b/package/xdebug/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_XDEBUG
+	bool "xdebug"
+	select BR2_PACKAGE_PHP
+
+	help
+	  Extension for PHP to assist with debugging and development.
+	  Web page: http://xdebug.org
diff --git a/package/xdebug/xdebug.hash b/package/xdebug/xdebug.hash
new file mode 100644
index 0000000000..a477a41d80
--- /dev/null
+++ b/package/xdebug/xdebug.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 86df1c16f31a11ed242adbaba7f13290af23ac57e1095a02faceb41ea833f729  xdebug-2.7.0.tar.gz
+sha256 ef479ee1a3da3f933e0d046ca8cd0c14601f29b2c0c41cc60c9388546a4e0272  LICENSE
diff --git a/package/xdebug/xdebug.mk b/package/xdebug/xdebug.mk
new file mode 100644
index 0000000000..8c156c4297
--- /dev/null
+++ b/package/xdebug/xdebug.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# xdebug
+#
+################################################################################
+
+XDEBUG_VERSION = 2.7.0
+XDEBUG_SITE = $(call github,xdebug,xdebug,$(XDEBUG_VERSION))
+XDEBUG_INSTALL_STAGING = YES
+XDEBUG_LICENSE = xdebug-license
+XDEBUG_LICENSE_FILES = LICENSE
+XDEBUG_DEPENDENCIES = php host-autoconf
+XDEBUG_CONF_OPTS = --enable-xdebug --with-php-config=$(STAGING_DIR)/usr/bin/php-config\
+	--with-xdebug=$(STAGING_DIR)/usr
+
+define XDEBUG_PHPIZE
+	(cd $(@D); \
+		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
+		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
+		$(STAGING_DIR)/usr/bin/phpize)
+endef
+
+XDEBUG_PRE_CONFIGURE_HOOKS += XDEBUG_PHPIZE
+
+$(eval $(autotools-package))
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-09-23 15:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-23 10:17 [Buildroot] [PATCH 1/1] package/xdebug: new package Nicolas Carrier
2019-09-23 13:27 ` Arnout Vandecappelle
2019-09-23 13:59   ` Thomas Petazzoni
2019-09-23 15:03     ` Nicolas Carrier
2019-09-23 15:01   ` Nicolas Carrier
2019-09-23 15:05     ` Arnout Vandecappelle
2019-09-23 15:24       ` Nicolas Carrier
2019-09-23 15:03   ` Nicolas Carrier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox