[Midnightbsd-cvs] mports [20477] trunk/devel: add swig 30
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Oct 5 18:04:46 EDT 2015
Revision: 20477
http://svnweb.midnightbsd.org/mports/?rev=20477
Author: laffer1
Date: 2015-10-05 18:04:46 -0400 (Mon, 05 Oct 2015)
Log Message:
-----------
add swig 30
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/swig30/
trunk/devel/swig30/Makefile
trunk/devel/swig30/distinfo
trunk/devel/swig30/files/
trunk/devel/swig30/files/patch-Lib_swigrun.swg
trunk/devel/swig30/pkg-descr
trunk/devel/swig30/pkg-plist
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2015-10-05 13:13:52 UTC (rev 20476)
+++ trunk/devel/Makefile 2015-10-05 22:04:46 UTC (rev 20477)
@@ -472,6 +472,7 @@
SUBDIR += svnkit
SUBDIR += swig13
SUBDIR += swig20
+SUBDIR += swig30
SUBDIR += sysconftool
SUBDIR += t1lib
SUBDIR += talloc
Added: trunk/devel/swig30/Makefile
===================================================================
--- trunk/devel/swig30/Makefile (rev 0)
+++ trunk/devel/swig30/Makefile 2015-10-05 22:04:46 UTC (rev 20477)
@@ -0,0 +1,54 @@
+# Created by: jkh
+# $MidnightBSD$
+# $FreeBSD: head/devel/swig30/Makefile 394080 2015-08-13 17:31:40Z sunpoet $
+
+PORTNAME= swig
+PORTVERSION= 3.0.7
+CATEGORIES= devel
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+PKGNAMESUFFIX= 30
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Generate wrappers for calling C/C++ code from other languages
+
+LICENSE= gpl3
+
+LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+ALL_TARGET= # empty
+CFLAGS+= -fPIC -DPIC
+CONFIGURE_ARGS= --program-suffix=${PORTVERSION:R} \
+ --with-lua=${LOCALBASE}/bin/${LUA_CMD} \
+ --with-luaincl=${LUA_INCDIR} \
+ --with-lualib=${LUA_LIBDIR}
+GNU_CONFIGURE= yes
+USES= gmake lua
+
+PLIST_SUB= MAJOR_VER=${PORTVERSION:R}
+PORTDATA= *
+PORTDOCS= *
+PORTEXAMPLES= *
+
+OCTAVE_VER_CMD= ${LOCALBASE}/bin/octave-config -v 2>/dev/null || ${TRUE}
+
+post-patch:
+ @${SETENV} OCTAVE_VER=$$(${OCTAVE_VER_CMD}) ${REINPLACE_CMD} \
+ -e 's|$$RUBY |${RUBY} |' \
+ -e 's|^PHP4CONFIG=.*$$|PHP4CONFIG=php-config|' \
+ -e 's|OCTAVEDIR=".*"|OCTAVEDIR="${LOCALBASE}/include/octave-$${OCTAVE_VER}"|' \
+ -e 's|MZSCHEME --mute-banner|MZSCHEME|' \
+ -e '/^MZDYNOBJ/s|`$$|\| tail -n 1`|' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/Lib/lua/luarun.swg
+
+post-configure:
+ ${REINPLACE_CMD} -e 's#null#&|| true#' ${WRKSRC}/Makefile
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache-swig${PORTVERSION:R} ${STAGEDIR}${PREFIX}/bin/swig${PORTVERSION:R}
+ cd ${WRKSRC}/Doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
+ cd ${WRKSRC}/Examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
+
+.include <bsd.port.mk>
Property changes on: trunk/devel/swig30/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/swig30/distinfo
===================================================================
--- trunk/devel/swig30/distinfo (rev 0)
+++ trunk/devel/swig30/distinfo 2015-10-05 22:04:46 UTC (rev 20477)
@@ -0,0 +1,2 @@
+SHA256 (swig-3.0.7.tar.gz) = 06dc8816a225667ce1eee545af3caf87e1bbaa379c32838d4cea53152514348d
+SIZE (swig-3.0.7.tar.gz) = 5923046
Property changes on: trunk/devel/swig30/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/swig30/files/patch-Lib_swigrun.swg
===================================================================
--- trunk/devel/swig30/files/patch-Lib_swigrun.swg (rev 0)
+++ trunk/devel/swig30/files/patch-Lib_swigrun.swg 2015-10-05 22:04:46 UTC (rev 20477)
@@ -0,0 +1,10 @@
+--- Lib/swigrun.swg.orig 2015-01-31 17:51:17 UTC
++++ Lib/swigrun.swg
+@@ -176,6 +176,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int
+ #include <string.h>
+
+ #ifdef __cplusplus
++#include <string>
+ extern "C" {
+ #endif
+
Property changes on: trunk/devel/swig30/files/patch-Lib_swigrun.swg
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/swig30/pkg-descr
===================================================================
--- trunk/devel/swig30/pkg-descr (rev 0)
+++ trunk/devel/swig30/pkg-descr 2015-10-05 22:04:46 UTC (rev 20477)
@@ -0,0 +1,15 @@
+SWIG is a software development tool that connects programs written in C and C++
+with a variety of high-level programming languages. SWIG is used with different
+types of target languages including common scripting languages such as
+Javascript, Perl, PHP, Python, Tcl and Ruby. The list of supported languages
+also includes non-scripting languages such as C#, Common Lisp (CLISP, Allegro
+CL, CFFI, UFFI), D, Go language, Java, Lua, Modula-3, OCAML, Octave and R. Also
+several interpreted and compiled Scheme implementations (Guile, MzScheme/Racket,
+Chicken) are supported. SWIG is most commonly used to create high-level
+interpreted or compiled programming environments, user interfaces, and as a tool
+for testing and prototyping C/C++ software. SWIG is typically used to parse
+C/C++ interfaces and generate the 'glue code' required for the above target
+languages to call into the C/C++ code. SWIG can also export its parse tree in
+the form of XML and Lisp s-expressions.
+
+WWW: http://www.swig.org/
Property changes on: trunk/devel/swig30/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/swig30/pkg-plist
===================================================================
--- trunk/devel/swig30/pkg-plist (rev 0)
+++ trunk/devel/swig30/pkg-plist 2015-10-05 22:04:46 UTC (rev 20477)
@@ -0,0 +1,3 @@
+bin/ccache-swig%%MAJOR_VER%%
+bin/swig%%MAJOR_VER%%
+man/man1/ccache-swig%%MAJOR_VER%%.1.gz
Property changes on: trunk/devel/swig30/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list