mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Kalle Ladefoged Pedersen <klp@kamstrup.com>
To: ptxdist@pengutronix.de
Cc: Kalle Ladefoged Pedersen <klp@kamstrup.com>
Subject: [ptxdist] [PATCH] Enable support for the phar extension in PHP5.
Date: Mon, 30 Nov 2015 15:09:21 +0100	[thread overview]
Message-ID: <1448892561-20400-1-git-send-email-klp@kamstrup.com> (raw)

Signed-off-by: Kalle Ladefoged Pedersen <klp@kamstrup.com>
Reviewed-by: Bruno Thomsen <bth@kamstrup.com>
---
 rules/php5.in   | 10 ++++++++++
 rules/php5.make |  7 ++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/rules/php5.in b/rules/php5.in
index d2f7baa..b88ad1b 100644
--- a/rules/php5.in
+++ b/rules/php5.in
@@ -289,6 +289,16 @@ config PHP5_EXT_PEAR
 	help
 	  pear
 
+config PHP5_EXT_PHAR
+	bool
+	prompt "phar"
+	help
+	  The phar extension provides a way to put entire PHP applications
+	  into a single file called "phar" (PHP Archive) for easy
+	  distribution and installation. The phar extension also provides
+	  a file-format abstraction method for creating and manipulating
+	  tar and zip files through the PharData class.
+
 endmenu
 
 endif
diff --git a/rules/php5.make b/rules/php5.make
index 98fc788..f98d37e 100644
--- a/rules/php5.make
+++ b/rules/php5.make
@@ -48,7 +48,6 @@ PHP5_CONF_ENV := \
 #
 PHP5_AUTOCONF := \
 	$(CROSS_AUTOCONF_USR) \
-	--disable-phar \
 	--with-config-file-path=/etc/php5 \
 	--enable-opcache=no \
 	--without-iconv
@@ -270,6 +269,12 @@ else
 PHP5_AUTOCONF += --without-pear
 endif
 
+ifdef PTXCONF_PHP5_EXT_PHAR
+PHP5_AUTOCONF += --enable-phar
+else
+PHP5_AUTOCONF += --disable-phar
+endif
+
 # ----------------------------------------------------------------------------
 # Target-Install
 # ----------------------------------------------------------------------------
-- 
2.1.4


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2015-11-30 14:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30 14:09 Kalle Ladefoged Pedersen [this message]
2015-11-30 17:20 ` Ladislav Michl
2015-12-17 10:45   ` Michael Olbrich
2015-12-17 11:10     ` Michael Olbrich
2016-01-14  8:03       ` Kalle Ladefoged Pedersen
2016-01-18  9:26         ` Michael Olbrich
2016-01-19 12:08           ` Pallavi Kadadi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1448892561-20400-1-git-send-email-klp@kamstrup.com \
    --to=klp@kamstrup.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox