Contents of /smage/branches/alx07x-stable/core/swig/swig-4.0.2-r1.smage2
Parent Directory | Revision Log
Revision 15134 -
(show annotations)
(download)
Fri Aug 7 07:28:00 2020 UTC (4 years, 1 month ago) by niro
File size: 1056 byte(s)
Fri Aug 7 07:28:00 2020 UTC (4 years, 1 month ago) by niro
File size: 1056 byte(s)
-release branches/alx07x-stable
1 | # $Id$ |
2 | |
3 | PNAME="swig" |
4 | PVER="4.0.2" |
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.32 |
14 | >= dev-libs/libpcre-8.44 |
15 | >= sys-libs/libstdc++-8.4" |
16 | |
17 | SDEPEND=">= virtual/sed |
18 | >= dev-libs/libpcre-dev-8.44" |
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 | } |