0
0
Fork 0
haikuports/dev-lang/swig/swig-4.0.2.recipe

73 lines
2.4 KiB
Bash
Raw Permalink Normal View History

2017-01-14 17:47:17 +00:00
SUMMARY="Simplified Wrapper and Interface Generator"
DESCRIPTION="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 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 including Android, \
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. SWIG is free software and the code that SWIG \
generates is compatible with both commercial and non-commercial projects."
2018-08-03 06:14:59 +00:00
HOMEPAGE="http://www.swig.org/"
2017-01-14 17:47:17 +00:00
COPYRIGHT="1995-1998 University of Utah and the Regents of the University of California
1998-2005 University of Chicago
2005-2006 Arizona Board of Regents (University of Arizona)
2020-07-26 14:37:53 +00:00
1995-2020 The SWIG Developers"
2018-08-03 06:14:59 +00:00
LICENSE="SWIG"
REVISION="2"
2017-01-14 17:47:17 +00:00
SOURCE_URI="http://sourceforge.net/projects/swig/files/swig/swig-$portVersion/swig-$portVersion.tar.gz"
2020-07-26 14:37:53 +00:00
CHECKSUM_SHA256="d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc"
2018-08-03 06:14:59 +00:00
ARCHITECTURES="all !x86_gcc2"
2017-01-14 17:47:17 +00:00
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
2020-07-26 14:37:53 +00:00
swig$secondaryArchSuffix = $portVersion
cmd:ccache_swig = $portVersion
cmd:swig = $portVersion compat >= 4
2017-01-14 17:47:17 +00:00
"
REQUIRES="
2020-07-26 14:37:53 +00:00
haiku$secondaryArchSuffix
2017-01-14 17:47:17 +00:00
lib:libpcre$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
2020-07-26 14:37:53 +00:00
haiku${secondaryArchSuffix}_devel
2017-01-14 17:47:17 +00:00
devel:libpcre$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
2018-08-08 14:18:18 +00:00
cmd:bison
2017-01-14 17:47:17 +00:00
cmd:g++$secondaryArchSuffix
2018-08-08 14:18:18 +00:00
cmd:gcc$secondaryArchSuffix
2017-01-14 17:47:17 +00:00
cmd:ld$secondaryArchSuffix
2018-08-08 14:18:18 +00:00
cmd:libtoolize$secondaryArchSuffix
cmd:make
2017-01-14 17:47:17 +00:00
"
BUILD()
{
2020-07-26 14:37:53 +00:00
export LDFLAGS="-lnetwork"
runConfigure --omit-dirs binDir ./configure \
--bindir=$prefix/bin
2017-01-14 17:47:17 +00:00
make $jobArgs
}
INSTALL()
{
make install
}
2020-07-26 14:37:53 +00:00
TEST()
{
make check
}