summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/swig-python/DESCR11
-rw-r--r--devel/swig-python/Makefile16
-rw-r--r--devel/swig-python/PLIST4
-rw-r--r--devel/swig-python/buildlink2.mk24
4 files changed, 55 insertions, 0 deletions
diff --git a/devel/swig-python/DESCR b/devel/swig-python/DESCR
new file mode 100644
index 00000000000..b15a9219d39
--- /dev/null
+++ b/devel/swig-python/DESCR
@@ -0,0 +1,11 @@
+SWIG (Simplified Wrapper and Interface Generator)
+
+SWIG is a compiler that integrates C and C++ with languages including
+Perl, Python, Tcl, Guile, Mzscheme, Java, Ruby, PHP, and Ocaml.
+
+SWIG reads annotated C/C++ header files and creates wrapper code (glue
+code) in order to make the corresponding C/C++ libraries available to
+the listed languages, or to extend C/C++ programs with a scripting
+language.
+
+This package contains SWIG's Python runtime.
diff --git a/devel/swig-python/Makefile b/devel/swig-python/Makefile
new file mode 100644
index 00000000000..8b57d085c32
--- /dev/null
+++ b/devel/swig-python/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/05/25 08:50:07 epg Exp $
+
+PKGNAME= swig-python-${SWIG_VERSION}
+COMMENT= Simplified Wrapper and Interface Generator, Python runtime
+
+.include "../swig-build/Makefile.common"
+
+PYTHON_VERSION_REQD= 22
+
+CONFIGURE_ARGS+= --with-python=${PYTHONBIN}
+
+ALL_TARGET= runtime
+INSTALL_TARGET= install-runtime
+
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/swig-python/PLIST b/devel/swig-python/PLIST
new file mode 100644
index 00000000000..4202863fe68
--- /dev/null
+++ b/devel/swig-python/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/05/25 08:50:07 epg Exp $
+lib/libswigpy.a
+lib/libswigpy.la
+lib/libswigpy.so
diff --git a/devel/swig-python/buildlink2.mk b/devel/swig-python/buildlink2.mk
new file mode 100644
index 00000000000..588d6319a76
--- /dev/null
+++ b/devel/swig-python/buildlink2.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/05/25 08:50:07 epg Exp $
+
+.if !defined(SWIG_PYTHON_BUILDLINK2_MK)
+SWIG_PYTHON_BUILDLINK2_MK= #defined
+
+BUILDLINK_PACKAGES+= swig-python
+BUILDLINK_DEPENDS.swig-python?= swig-python>=${SWIG_VERSION}
+BUILDLINK_PKGSRCDIR.swig-python?= ../../devel/swig-python
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.swig-python=swig-python
+BUILDLINK_PREFIX.swig-python_DEFAULT= ${LOCALBASE}
+
+BUILDLINK_FILES.swig-python+= lib/libswigpy.*
+
+PYTHON_VERSION_REQD= 22
+.include "../../lang/python/pyversion.mk"
+
+.include "../../devel/swig-build/Makefile.version"
+
+BUILDLINK_TARGETS+= swig-python-buildlink
+
+swig-python-buildlink: _BUILDLINK_USE
+
+.endif # SWIG_PYTHON_BUILDLINK2_MK