mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>,
	Niklas Reisser <Niklas.Reisser@de.bosch.com>
Subject: [ptxdist] [PATCH 2/4] host-swig: version bump 2.0.9 -> 3.0.8
Date: Wed, 28 Aug 2019 15:58:09 +0200	[thread overview]
Message-ID: <20190828135811.5680-2-rhi@pengutronix.de> (raw)
In-Reply-To: <20190828135811.5680-1-rhi@pengutronix.de>

Update version and make support for Java, Python 2 and Python 3 code
generation selectable so that it doesn't pull in too many dependencies,
but target packages can still select it if needed.

Based on a patch by Niklas Reisser.

Cc: Niklas Reisser <Niklas.Reisser@de.bosch.com>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/host-swig.in   | 15 +++++++++++++++
 rules/host-swig.make | 10 +++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/rules/host-swig.in b/rules/host-swig.in
index 24075d429e50..d0f1a1457e3a 100644
--- a/rules/host-swig.in
+++ b/rules/host-swig.in
@@ -6,3 +6,18 @@ config HOST_SWIG
 	select HOST_ZLIB
 	select HOST_LIBPCRE
 	select HOST_PYTHON
+	select HOST_PYTHON3	if HOST_SWIG_PYTHON3_SUPPORT
+	select HOST_SYSTEM_JDK	if HOST_SWIG_JAVA_SUPPORT
+
+if HOST_SWIG
+
+config HOST_SWIG_JAVA_SUPPORT
+	bool
+
+config HOST_SWIG_PYTHON_SUPPORT
+	bool
+
+config HOST_SWIG_PYTHON3_SUPPORT
+	bool
+
+endif
diff --git a/rules/host-swig.make b/rules/host-swig.make
index d15496999cab..7dc685e9e622 100644
--- a/rules/host-swig.make
+++ b/rules/host-swig.make
@@ -14,8 +14,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_SWIG) += host-swig
 #
 # Paths and names
 #
-HOST_SWIG_VERSION	:= 2.0.9
-HOST_SWIG_MD5		:= 54d534b14a70badc226129159412ea85
+HOST_SWIG_VERSION	:= 3.0.8
+HOST_SWIG_MD5		:= c96a1d5ecb13d38604d7e92148c73c97
 HOST_SWIG		:= swig-$(HOST_SWIG_VERSION)
 HOST_SWIG_SUFFIX	:= tar.gz
 HOST_SWIG_URL		:= $(call ptx/mirror, SF, swig/$(HOST_SWIG).$(HOST_SWIG_SUFFIX))
@@ -38,11 +38,11 @@ HOST_SWIG_CONF_OPT = \
 	--without-boost \
 	--without-x \
 	--without-tcl \
-	--with-python=$(CROSS_PYTHON) \
-	--without-python3 \
+	$(call ptx/ifdef, PTXCONF_HOST_SWIG_PYTHON_SUPPORT, --with-python=$(CROSS_PYTHON), --without-python) \
+	$(call ptx/ifdef, PTXCONF_HOST_SWIG_PYTHON3_SUPPORT, --with-python=$(CROSS_PYTHON3), --without-python3) \
 	--without-perl5 \
 	--without-octave \
-	--without-java \
+	$(call ptx/ifdef, PTXCONF_HOST_SWIG_JAVA_SUPPORT, --with-java=$(PTXCONF_SETUP_JAVA_SDK), --without-java) \
 	--without-gcj \
 	--without-android \
 	--without-guile \
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-08-28 13:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-28 13:58 [ptxdist] [PATCH 1/4] sqlitecpp: new package Roland Hieber
2019-08-28 13:58 ` Roland Hieber [this message]
2019-09-01 20:31   ` [ptxdist] [PATCH v2 2/4] host-swig: version bump 2.0.9 -> 3.0.8 Roland Hieber
2019-08-28 13:58 ` [ptxdist] [PATCH 3/4] host-python-setuptools: version bump 17.0 -> 41.2.0 Roland Hieber
2019-08-28 13:58 ` [ptxdist] [PATCH 4/4] python-pyro: new package Roland Hieber

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=20190828135811.5680-2-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=Niklas.Reisser@de.bosch.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