From: Ladislav Michl <[email protected]>

This partially reverts commit 441d22b5ed7a4a7a87f952150222004ef989f8d6.

Signed-off-by: Ladislav Michl <[email protected]>
---
 CHANGES:
 - v2: None

 rules/host-swig.in   | 23 ++++++++++++++++
 rules/host-swig.make | 63 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)
 create mode 100644 rules/host-swig.in
 create mode 100644 rules/host-swig.make

diff --git a/rules/host-swig.in b/rules/host-swig.in
new file mode 100644
index 000000000..56a23fcce
--- /dev/null
+++ b/rules/host-swig.in
@@ -0,0 +1,23 @@
+## SECTION=hosttools_noprompt
+
+config HOST_SWIG
+       tristate
+       default y if ALLYES
+       select HOST_ZLIB
+       select HOST_LIBPCRE
+       select HOST_PYTHON      if HOST_SWIG_PYTHON_SUPPORT
+       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
new file mode 100644
index 000000000..0bdfe858f
--- /dev/null
+++ b/rules/host-swig.make
@@ -0,0 +1,63 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Marc Kleine-Budde <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SWIG) += host-swig
+
+#
+# Paths and names
+#
+HOST_SWIG_VERSION      := 4.0.1
+HOST_SWIG_MD5          := 54cc40b3804816f7d38ab510b6f13b04
+HOST_SWIG              := swig-$(HOST_SWIG_VERSION)
+HOST_SWIG_SUFFIX       := tar.gz
+HOST_SWIG_URL          := $(call ptx/mirror, SF, 
swig/$(HOST_SWIG).$(HOST_SWIG_SUFFIX))
+HOST_SWIG_SOURCE       := $(SRCDIR)/$(HOST_SWIG).$(HOST_SWIG_SUFFIX)
+HOST_SWIG_DIR          := $(HOST_BUILDDIR)/$(HOST_SWIG)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_SWIG_CONF_TOOL := autoconf
+HOST_SWIG_DEVPKG := NO
+
+# no := due to CROSS_PYTHON
+HOST_SWIG_CONF_OPT = \
+       $(HOST_AUTOCONF_SYSROOT) \
+       --without-boost \
+       --without-x \
+       --without-tcl \
+       $(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 \
+       $(call ptx/ifdef, PTXCONF_HOST_SWIG_JAVA_SUPPORT, 
--with-java=$(PTXCONF_SETUP_JAVA_SDK), --without-java) \
+       --without-gcj \
+       --without-android \
+       --without-guile \
+       --without-mzscheme \
+       --without-ruby \
+       --without-php \
+       --without-ocaml \
+       --without-pike \
+       --without-chicken \
+       --without-csharp \
+       --without-lua \
+       --without-allegrocl \
+       --without-clisp \
+       --without-r \
+       --without-go \
+       --without-d
+
+# vim: syntax=make
-- 
2.47.3


Reply via email to