Magellan Linux

Contents of /smage/trunk/core/swig/swig-4.0.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13142 - (show annotations) (download)
Fri Jun 28 11:21:41 2019 UTC (4 years, 10 months ago) by niro
File size: 1056 byte(s)
auto added: ver bump to 4.0.0-r1
1 # $Id$
2
3 PNAME="swig"
4 PVER="4.0.0"
5 PBUILD="r1"
6
7 PCAT="dev-lang"
8
9 DESCRIPTION="Simplified Wrapper and Interface Generator."
10 HOMEPAGE="http://www.swig.org/"
11
12 DEPEND=">= dev-lang/python-2.7
13 >= dev-lang/perl-5.30
14 >= dev-libs/libpcre-8.36
15 >= sys-libs/libstdc++-8.3"
16
17 SDEPEND=">= virtual/sed
18 >= dev-libs/libpcre-dev-8.36"
19
20 SRCFILE="${PNAME}-${PVER}.tar.gz"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 sminclude mbuild
24 msetfeature "!check"
25
26 SRC_URI=(
27 sourceforge://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 UP2DATE="updatecmd_sourceforge ${PNAME} gz"
32
33 # note1: build only with python, java, perl, ruby, tcl support
34 # left out: guile, lua, mono, ocaml, php, pike
35 src_compile()
36 {
37 cd ${SRCDIR}
38
39 # swig doesn't like any CFLAGS
40 unset CXXFLAGS
41 unset CFLAGS
42
43 mconfigure \
44 --with-python \
45 --without-java \
46 --without-ruby \
47 --with-perl5=/usr/bin/perl \
48 --without-tcl \
49 --without-guile \
50 --without-php4 \
51 --without-ocaml \
52 --without-pike \
53 --without-csharp \
54 --without-lua \
55 || die
56
57 # we don't have lisp-plt
58 PLT=""
59
60 mmake || die
61 }