swig-4.0.0.recipe revision d356239f
1SUMMARY="Simplified Wrapper and Interface Generator"
2DESCRIPTION="SWIG is a software development tool that connects programs \
3written in C and C++ with a variety of high-level programming languages. SWIG \
4is used with different types of target languages including common scripting \
5languages such as Perl, PHP, Python, Tcl and Ruby. The list of supported \
6languages also includes non-scripting languages such as C#, Common Lisp \
7(CLISP, Allegro CL, CFFI, UFFI), D, Go language, Java including Android, \
8Lua, Modula-3, OCAML, Octave and R. Also several interpreted and compiled \
9Scheme implementations (Guile, MzScheme/Racket, Chicken) are supported. SWIG \
10is most commonly used to create high-level interpreted or compiled \
11programming environments, user interfaces, and as a tool for testing and \
12prototyping C/C++ software. SWIG is typically used to parse C/C++ interfaces \
13and generate the 'glue code' required for the above target languages to call \
14into the C/C++ code. SWIG can also export its parse tree in the form of XML \
15and Lisp s-expressions. SWIG is free software and the code that SWIG \
16generates is compatible with both commercial and non-commercial projects."
17HOMEPAGE="http://www.swig.org/"
18COPYRIGHT="1995-1998 University of Utah and the Regents of the University of California
19		1998-2005 University of Chicago
20		2005-2006 Arizona Board of Regents (University of Arizona)
21		1995-2017 The SWIG Developers"
22LICENSE="SWIG"
23REVISION="1"
24SOURCE_URI="http://sourceforge.net/projects/swig/files/swig/swig-$portVersion/swig-$portVersion.tar.gz"
25CHECKSUM_SHA256="e8a39cd6437e342cdcbd5af27a9bf11b62dc9efec9248065debcb8276fcbb925"
26
27ARCHITECTURES="x86 ?x86_gcc2 x86_64"
28SECONDARY_ARCHITECTURES="x86"
29
30PROVIDES="
31	swig${secondaryArchSuffix} = $portVersion
32	cmd:ccache_swig$secondaryArchSuffix = $portVersion
33	cmd:swig$secondaryArchSuffix = $portVersion compat >= 4
34	"
35REQUIRES="
36	haiku${secondaryArchSuffix}
37	lib:libpcre$secondaryArchSuffix
38	lib:libz$secondaryArchSuffix
39	"
40
41BUILD_REQUIRES="
42	devel:libpcre$secondaryArchSuffix
43	devel:libz$secondaryArchSuffix
44	"
45BUILD_PREREQUIRES="
46	haiku${secondaryArchSuffix}_devel
47	cmd:bison
48	cmd:g++$secondaryArchSuffix
49	cmd:gcc$secondaryArchSuffix
50	cmd:ld$secondaryArchSuffix
51	cmd:libtoolize$secondaryArchSuffix
52	cmd:make
53	"
54
55BUILD()
56{
57	runConfigure ./configure
58	make $jobArgs
59}
60
61INSTALL()
62{
63	make install
64}
65