summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorepg <epg@pkgsrc.org>2003-05-25 08:52:37 +0000
committerepg <epg@pkgsrc.org>2003-05-25 08:52:37 +0000
commit0f09b848d928c5df2bf6808164e5cded32f5189c (patch)
tree118393ff607f2e8fc841ed9763a69b62f84ba0f1 /devel
parent3659bd85cf8bab3e947023d8509e2bccc063a8a9 (diff)
downloadpkgsrc-0f09b848d928c5df2bf6808164e5cded32f5189c.tar.gz
import swig-build-1.3.17
This package contains only the swig program itself and the base definitions; it is useless alone. You only need this package if you are building software that uses SWIG. You will also need a swig-LANG package, where LANG is the language you are working with (e.g. swig-perl, swig-python, etc.). Still todo: import other swig runtimes, move existing swig package to swig11 and update dependencies, and add the new swig packages to devel/Makefile.
Diffstat (limited to 'devel')
-rw-r--r--devel/swig-build/DESCR15
-rw-r--r--devel/swig-build/Makefile18
-rw-r--r--devel/swig-build/Makefile.common37
-rw-r--r--devel/swig-build/Makefile.version3
-rw-r--r--devel/swig-build/PLIST128
-rw-r--r--devel/swig-build/buildlink2.mk22
-rw-r--r--devel/swig-build/distinfo6
-rw-r--r--devel/swig-build/patches/patch-aa177
-rw-r--r--devel/swig-build/patches/patch-ab13
9 files changed, 419 insertions, 0 deletions
diff --git a/devel/swig-build/DESCR b/devel/swig-build/DESCR
new file mode 100644
index 00000000000..e0b6b553b93
--- /dev/null
+++ b/devel/swig-build/DESCR
@@ -0,0 +1,15 @@
+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 only the swig program itself and the base
+definitions; it is useless alone. You only need this package if you
+are building software that uses SWIG. You will also need a swig-LANG
+package, where LANG is the language you are working with
+(e.g. swig-perl, swig-python, etc.).
diff --git a/devel/swig-build/Makefile b/devel/swig-build/Makefile
new file mode 100644
index 00000000000..f8b0289234e
--- /dev/null
+++ b/devel/swig-build/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+
+PKGNAME= swig-build-${SWIG_VERSION}
+COMMENT= Simplified Wrapper and Interface Generator, base build files
+
+.include "Makefile.common"
+
+CONFIGURE_ARGS+= --without-guile
+CONFIGURE_ARGS+= --without-java
+CONFIGURE_ARGS+= --without-ocaml
+CONFIGURE_ARGS+= --without-perl5
+CONFIGURE_ARGS+= --without-php4
+CONFIGURE_ARGS+= --without-pike
+CONFIGURE_ARGS+= --without-python
+CONFIGURE_ARGS+= --without-ruby
+CONFIGURE_ARGS+= --without-tcl
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/swig-build/Makefile.common b/devel/swig-build/Makefile.common
new file mode 100644
index 00000000000..c3e922293cb
--- /dev/null
+++ b/devel/swig-build/Makefile.common
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+
+DISTNAME= swig-${SWIG_VERSION}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swig/}
+
+MAINTAINER= epg@pretzelnet.org
+HOMEPAGE= http://www.swig.org/
+
+.include "../../devel/swig-build/Makefile.version"
+
+DISTINFO_FILE= ${.CURDIR}/../swig-build/distinfo
+COMMON_FILESDIR= ${.CURDIR}/../swig-build/files
+PATCHDIR= ${.CURDIR}/../swig-build/patches
+
+ALL_TARGET= swig
+WRKSRC= ${WRKDIR}/SWIG-${SWIG_VERSION}
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+USE_LIBTOOL= YES
+LIBTOOL_OVERRIDE= ${WRKSRC}/Tools/libtool
+
+CONFIGURE_ARGS+= --without-guile
+CONFIGURE_ARGS+= --without-java
+CONFIGURE_ARGS+= --without-ocaml
+CONFIGURE_ARGS+= --without-perl5
+CONFIGURE_ARGS+= --without-python
+CONFIGURE_ARGS+= --without-php4
+CONFIGURE_ARGS+= --without-pike
+CONFIGURE_ARGS+= --without-ruby
+CONFIGURE_ARGS+= --without-tcl
+
+pre-configure:
+ cd ${WRKSRC} && ${AUTOCONF}
+
+.include "../../mk/autoconf.mk"
diff --git a/devel/swig-build/Makefile.version b/devel/swig-build/Makefile.version
new file mode 100644
index 00000000000..6cacb755af8
--- /dev/null
+++ b/devel/swig-build/Makefile.version
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.version,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+
+SWIG_VERSION=1.3.17
diff --git a/devel/swig-build/PLIST b/devel/swig-build/PLIST
new file mode 100644
index 00000000000..fb09f392256
--- /dev/null
+++ b/devel/swig-build/PLIST
@@ -0,0 +1,128 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+bin/swig
+lib/swig1.3/_std_deque.i
+lib/swig1.3/carrays.i
+lib/swig1.3/cdata.i
+lib/swig1.3/cmalloc.i
+lib/swig1.3/common.swg
+lib/swig1.3/constraints.i
+lib/swig1.3/cpointer.i
+lib/swig1.3/cstring.i
+lib/swig1.3/exception.i
+lib/swig1.3/guile/cplusplus.i
+lib/swig1.3/guile/guile.i
+lib/swig1.3/guile/guile.swg
+lib/swig1.3/guile/guiledec.swg
+lib/swig1.3/guile/guilemain.i
+lib/swig1.3/guile/interpreter.i
+lib/swig1.3/guile/list-vector.i
+lib/swig1.3/guile/pointer-in-out.i
+lib/swig1.3/guile/ports.i
+lib/swig1.3/guile/std_common.i
+lib/swig1.3/guile/std_string.i
+lib/swig1.3/guile/std_vector.i
+lib/swig1.3/guile/stl.i
+lib/swig1.3/guile/typemaps.i
+lib/swig1.3/java/arrays_java.i
+lib/swig1.3/java/java.swg
+lib/swig1.3/java/javahead.swg
+lib/swig1.3/java/std_string.i
+lib/swig1.3/java/std_vector.i
+lib/swig1.3/java/stl.i
+lib/swig1.3/java/typemaps.i
+lib/swig1.3/java/various.i
+lib/swig1.3/math.i
+lib/swig1.3/mzscheme/mzscheme.i
+lib/swig1.3/mzscheme/mzscheme.swg
+lib/swig1.3/mzscheme/mzschemedec.swg
+lib/swig1.3/mzscheme/std_common.i
+lib/swig1.3/mzscheme/std_string.i
+lib/swig1.3/mzscheme/std_vector.i
+lib/swig1.3/mzscheme/stl.i
+lib/swig1.3/mzscheme/typemaps.i
+lib/swig1.3/ocaml/carray.i
+lib/swig1.3/ocaml/cstring.i
+lib/swig1.3/ocaml/libswigocaml.h
+lib/swig1.3/ocaml/libswigocaml.swg
+lib/swig1.3/ocaml/mlheading.swg
+lib/swig1.3/ocaml/mliheading.swg
+lib/swig1.3/ocaml/ocaml.i
+lib/swig1.3/ocaml/ocaml.swg
+lib/swig1.3/ocaml/ocamldec.swg
+lib/swig1.3/ocaml/std_common.i
+lib/swig1.3/ocaml/std_complex.i
+lib/swig1.3/ocaml/std_deque.i
+lib/swig1.3/ocaml/std_list.i
+lib/swig1.3/ocaml/std_string.i
+lib/swig1.3/ocaml/std_vector.i
+lib/swig1.3/ocaml/stl.i
+lib/swig1.3/ocaml/typecheck.i
+lib/swig1.3/ocaml/typemaps.i
+lib/swig1.3/perl5/Makefile.pl
+lib/swig1.3/perl5/perl5.swg
+lib/swig1.3/perl5/perlmain.i
+lib/swig1.3/perl5/perlrun.swg
+lib/swig1.3/perl5/std_string.i
+lib/swig1.3/perl5/std_vector.i
+lib/swig1.3/perl5/stl.i
+lib/swig1.3/perl5/typemaps.i
+lib/swig1.3/php4/php4.swg
+lib/swig1.3/php4/php4run.swg
+lib/swig1.3/php4/std_string.i
+lib/swig1.3/php4/std_vector.i
+lib/swig1.3/php4/stl.i
+lib/swig1.3/php4/typemaps.i
+lib/swig1.3/php4/utils.i
+lib/swig1.3/pike/pike.swg
+lib/swig1.3/pike/pikerun.swg
+lib/swig1.3/pointer.i
+lib/swig1.3/python/cstring.i
+lib/swig1.3/python/defarg.swg
+lib/swig1.3/python/embed.i
+lib/swig1.3/python/embed15.i
+lib/swig1.3/python/fragments.i
+lib/swig1.3/python/pyrun.swg
+lib/swig1.3/python/python.swg
+lib/swig1.3/python/std_common.i
+lib/swig1.3/python/std_complex.i
+lib/swig1.3/python/std_deque.i
+lib/swig1.3/python/std_list.i
+lib/swig1.3/python/std_string.i
+lib/swig1.3/python/std_vector.i
+lib/swig1.3/python/stl.i
+lib/swig1.3/python/typemaps.i
+lib/swig1.3/ruby/Makefile.swig
+lib/swig1.3/ruby/embed.i
+lib/swig1.3/ruby/extconf.rb
+lib/swig1.3/ruby/fragments.i
+lib/swig1.3/ruby/ruby.swg
+lib/swig1.3/ruby/rubydec.swg
+lib/swig1.3/ruby/rubydef.swg
+lib/swig1.3/ruby/rubyhead.swg
+lib/swig1.3/ruby/std_common.i
+lib/swig1.3/ruby/std_string.i
+lib/swig1.3/ruby/std_vector.i
+lib/swig1.3/ruby/stl.i
+lib/swig1.3/ruby/typemaps.i
+lib/swig1.3/std_deque.i
+lib/swig1.3/swig.swg
+lib/swig1.3/tcl/cstring.i
+lib/swig1.3/tcl/std_string.i
+lib/swig1.3/tcl/std_vector.i
+lib/swig1.3/tcl/stl.i
+lib/swig1.3/tcl/swigtcl8.swg
+lib/swig1.3/tcl/tcl8.swg
+lib/swig1.3/tcl/tclsh.i
+lib/swig1.3/tcl/typemaps.i
+lib/swig1.3/tcl/wish.i
+@dirrm lib/swig1.3/tcl
+@dirrm lib/swig1.3/ruby
+@dirrm lib/swig1.3/python
+@dirrm lib/swig1.3/pike
+@dirrm lib/swig1.3/php4
+@dirrm lib/swig1.3/perl5
+@dirrm lib/swig1.3/ocaml
+@dirrm lib/swig1.3/mzscheme
+@dirrm lib/swig1.3/java
+@dirrm lib/swig1.3/guile
+@dirrm lib/swig1.3
diff --git a/devel/swig-build/buildlink2.mk b/devel/swig-build/buildlink2.mk
new file mode 100644
index 00000000000..6468baccb5c
--- /dev/null
+++ b/devel/swig-build/buildlink2.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+
+.if !defined(SWIG_BUILD_BUILDLINK2_MK)
+SWIG_BUILD_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= swig-build
+BUILDLINK_DEPENDS.swig-build?= swig-build>=${SWIG_VERSION}
+BUILDLINK_PKGSRCDIR.swig-build?= ../../devel/swig-build
+
+# This package contains no run-time components.
+BUILDLINK_DEPMETHOD.swig-build?= build
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.swig-build=swig-build
+BUILDLINK_PREFIX.swig-build_DEFAULT= ${LOCALBASE}
+
+.include "../../devel/swig-build/Makefile.version"
+
+BUILDLINK_TARGETS+= swig-build-buildlink
+
+swig-build-buildlink: _BUILDLINK_USE
+
+.endif # SWIG_BUILD_BUILDLINK2_MK
diff --git a/devel/swig-build/distinfo b/devel/swig-build/distinfo
new file mode 100644
index 00000000000..614354340eb
--- /dev/null
+++ b/devel/swig-build/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+
+SHA1 (swig-1.3.17.tar.gz) = 2252de9949410a6a0586bcdc85671a0060f3ed31
+Size (swig-1.3.17.tar.gz) = 1559991 bytes
+SHA1 (patch-aa) = 2718553f5aa9f0af8fa5756ce3c3b82c13045312
+SHA1 (patch-ab) = 7ba7ffed43bb3bc7e50d1aa79beb7cd5c844c97c
diff --git a/devel/swig-build/patches/patch-aa b/devel/swig-build/patches/patch-aa
new file mode 100644
index 00000000000..ab70f931a15
--- /dev/null
+++ b/devel/swig-build/patches/patch-aa
@@ -0,0 +1,177 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+
+--- configure.in.orig Fri Nov 22 14:34:16 2002
++++ configure.in
+@@ -344,6 +344,8 @@ AC_ARG_WITH(tclincl,[ --with-tclincl=pa
+ AC_ARG_WITH(tcllib,[ --with-tcllib=path Set location of Tcl library directory],[
+ TCLLIB="-L$withval"], [TCLLIB=])
+
++if test "x${with_tcl}" != 'xno'; then
++
+ AC_MSG_CHECKING([for Tcl configuration])
+ # First check to see if --with-tclconfig was specified.
+ if test x"${with_tclconfig}" != x ; then
+@@ -430,6 +432,8 @@ CYGWIN*) TCLDYNAMICLINKING="$TCLLIB";;
+ *)TCLDYNAMICLINKING="";;
+ esac
+
++fi # test "x${with_tcl}" != 'xno'
++
+ AC_SUBST(TCLINCLUDE)
+ AC_SUBST(TCLLIB)
+ AC_SUBST(TCLDYNAMICLINKING)
+@@ -469,6 +473,8 @@ AC_ARG_WITH(python,[ --with-python=path
+
+ # First figure out the name of the Python executable
+
++if test "x${PYBIN}" != 'xno'; then
++
+ if test -z "$PYBIN"; then
+ AC_CHECK_PROGS(PYTHON, $prefix/bin/python python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python)
+ else
+@@ -538,6 +544,7 @@ CYGWIN*) PYTHONDYNAMICLINKING="-L$PYLIB
+ *)PYTHONDYNAMICLINKING="";;
+ esac
+
++fi # test "x${PYBIN}" != 'xno'
+
+ AC_SUBST(PYINCLUDE)
+ AC_SUBST(PYLIB)
+@@ -554,6 +561,8 @@ AC_ARG_WITH(perl5,[ --with-perl5=path
+
+ # First figure out what the name of Perl5 is
+
++if test "x${PERLBIN}" != 'xno'; then
++
+ if test -z "$PERLBIN"; then
+ AC_CHECK_PROGS(PERL, perl perl5.6.1 perl5.6.0 perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl)
+ else
+@@ -601,6 +610,8 @@ CYGWIN*) PERL5DYNAMICLINKING="-L$PERL5EX
+ *)PERL5DYNAMICLINKING="";;
+ esac
+
++fi # test "x${PERLBIN}" != 'xno'
++
+ AC_SUBST(PERL5EXT)
+ AC_SUBST(PERL5DYNAMICLINKING)
+ AC_SUBST(PERL5LIB)
+@@ -617,6 +628,8 @@ AC_SUBST(PERL5LIB)
+ AC_ARG_WITH(java, [ --with-java=path Set location of Java],[JAVABIN="$withval"], [JAVABIN=])
+ AC_ARG_WITH(javac, [ --with-javac=path Set location of Javac],[JAVACBIN="$withval"], [JAVACBIN=])
+
++if test "x${JAVABIN}" != 'xno'; then
++
+ if test -z "$JAVABIN" ; then
+ AC_CHECK_PROGS(JAVA, java kaffe guavac)
+ else
+@@ -679,6 +692,7 @@ CYGWIN*) JAVALIBRARYPREFIX="";;
+ *)JAVALIBRARYPREFIX="lib";;
+ esac
+
++fi # test "x${JAVABIN}" != 'xno'
+
+ AC_SUBST(JAVA)
+ AC_SUBST(JAVAC)
+@@ -695,15 +709,17 @@ AC_SUBST(ROOT_DIR)ROOT_DIR=`pwd`
+ GUILEINCLUDE=
+ GUILELIB=
+ GUILELINK=
++GUILEPACKAGE=
++
++AC_ARG_WITH(guile,[ --with-guile=path Set location of Guile],[
++ GUILEPACKAGE="$withval"], [GUILEPACKAGE=])
++
++if test "x${GUILEPACKAGE}" != 'xno'; then
+
+ AC_PATH_PROG(GUILE_CONFIG, guile-config)
+
+ if test -n "$GUILE_CONFIG" ; then
+
+- GUILEPACKAGE=
+-
+- AC_ARG_WITH(guile,[ --with-guile=path Set location of Guile],[
+- GUILEPACKAGE="$withval"], [GUILEPACKAGE=])
+ AC_ARG_WITH(guilencl,[ --with-guileincl=path Set location of Guile include directory],[
+ GUILEINCLUDE="$withval"], [GUILEINCLUDE=])
+ AC_ARG_WITH(guilelib,[ --with-guilelib=path Set location of Guile library directory],[
+@@ -754,6 +770,8 @@ if test -n "$GUILE_CONFIG" ; then
+
+ fi # have GUILE_CONFIG
+
++fi # test "x${GUILEPACKAGE}" != 'xno'
++
+ AC_SUBST(GUILEINCLUDE)
+ AC_SUBST(GUILELIB)
+ AC_SUBST(GUILELINK)
+@@ -772,6 +790,8 @@ RUBYBIN=
+
+ AC_ARG_WITH(ruby,[ --with-ruby=path Set location of Ruby executable],[ RUBYBIN="$withval"], [RUBYBIN=])
+
++if test "x${RUBYBIN}" != 'xno'; then
++
+ # First figure out what the name of Ruby is
+
+ if test -z "$RUBYBIN"; then
+@@ -847,6 +867,7 @@ CYGWIN*) RUBYDYNAMICLINKING="-L$RUBYLIB
+ *) RUBYDYNAMICLINKING="";;
+ esac
+
++fi # test "x${RUBYBIN}" != 'xno'
+
+ AC_SUBST(RUBYINCLUDE)
+ AC_SUBST(RUBYLIB)
+@@ -862,6 +883,8 @@ PHP4BIN=
+
+ AC_ARG_WITH(php4,[ --with-php4=path Set location of PHP4 executable],[ PHP4BIN="$withval"], [PHP4BIN=])
+
++if test "x${PHP4BIN}" != 'xno'; then
++
+ if test -z "$PHP4BIN"; then
+ AC_CHECK_PROGS(PHP4, php, php4)
+ else
+@@ -884,6 +907,8 @@ if test -z "$PHP4INC"; then
+ AC_MSG_RESULT(not found)
+ fi
+
++fi # test "x${PHP4BIN}" != 'xno'
++
+ AC_SUBST(PHP4INC)
+
+ # kludges to ease naming conventions conformance.
+@@ -899,6 +924,8 @@ AC_SUBST(PHP4INC)
+ AC_ARG_WITH(ocaml,[ --with-ocaml=path Set location of ocaml executable],[ OCAMLBIN="$withval"], [OCAMLBIN=])
+ AC_ARG_WITH(ocamlc,[ --with-ocamlc=path Set location of ocamlc executable],[ OCAMLC="$withval"], [OCAMLC=])
+
++if test "x${OCAMLBIN}" != 'xno'; then
++
+ AC_MSG_CHECKING(for Ocaml compiler)
+ if test -z "$OCAMLC"; then
+ AC_CHECK_PROGS(OCAMLC, ocamlc, ocamlc)
+@@ -926,6 +953,8 @@ if test -z "$OCAMLINC"; then
+ AC_MSG_RESULT(not found)
+ fi
+
++fi # test "x${OCAMLBIN}" != 'xno'
++
+ export OCAMLINC
+ export OCAMLBIN
+ export OCAMLC
+@@ -941,6 +970,9 @@ AC_SUBST(OCAMLC)
+ # Identify the name of the Pike executable
+ PIKEBIN=
+ AC_ARG_WITH(pike,[ --with-pike=path Set location of Pike executable],[ PIKEBIN="$withval"], [PIKEBIN=])
++
++if test "x${PIKEBIN}" != 'xno'; then
++
+ if test -z "$PIKEBIN"; then
+ AC_CHECK_PROGS(PIKE, pike)
+ else
+@@ -966,6 +998,8 @@ fi
+ else
+ AC_MSG_RESULT($PIKEINCLUDE)
+ fi
++
++fi # test "x${PIKEBIN}" != 'xno'; then
+
+ AC_SUBST(PIKEINCLUDE)
+ AC_SUBST(PIKECCDLFLAGS)
diff --git a/devel/swig-build/patches/patch-ab b/devel/swig-build/patches/patch-ab
new file mode 100644
index 00000000000..2731e64da4e
--- /dev/null
+++ b/devel/swig-build/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/05/25 08:52:37 epg Exp $
+
+--- Makefile.in.orig Thu Jan 30 16:51:34 2003
++++ Makefile.in
+@@ -289,7 +289,7 @@ install-lib:
+ do \
+ dst=$(DESTDIR)$(SWIG_LIB)/$$lang; \
+ $(MKINSTDIRS) $$dst; \
+- ( cd $(srcdir)/Lib/$$lang; \
++ ( set +e; cd $(srcdir)/Lib/$$lang; \
+ doti="`ls *.i 2>/dev/null`"; \
+ dotswg="`ls *.swg 2>/dev/null`"; \
+ if [ -f extra-install.list ]; then \