Contents of /branches/magellan-next/core/swig/swig-2.0.4-r2.smage2
Parent Directory | Revision Log
Revision 9156 -
(show annotations)
(download)
Tue Nov 8 09:06:19 2011 UTC (12 years, 10 months ago) by niro
File size: 1177 byte(s)
Tue Nov 8 09:06:19 2011 UTC (12 years, 10 months ago) by niro
File size: 1177 byte(s)
-rebuild
1 | # $Id$ |
2 | |
3 | PNAME="swig" |
4 | PVER="2.0.4" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="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 | >= virtual/java |
14 | >= dev-lang/perl-5.14 |
15 | >= dev-lang/tcl-8.5 |
16 | >= dev-lang/ruby-1.9" |
17 | |
18 | SDEPEND=">= sys-apps/sed-4" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mbuild |
24 | |
25 | SRC_URI=( |
26 | sourceforge://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | ) |
29 | |
30 | # swig uses its name in release version -> not 1.3.36 but swig-1.3.36 |
31 | UP2DATE="updatecmd_sourceforge ${PNAME} | sed 's/${PNAME}-\(.*\)/\1/'" |
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 | --with-java=${JAVA_HOME} \ |
46 | --with-javaincl=${JAVA_HOME}/include \ |
47 | --with-ruby=/usr/bin/ruby \ |
48 | --with-perl5=/usr/bin/perl \ |
49 | --with-tcl \ |
50 | --without-guile \ |
51 | --without-php4 \ |
52 | --without-ocaml \ |
53 | --without-pike \ |
54 | --without-csharp \ |
55 | --without-lua \ |
56 | || die |
57 | |
58 | # we don't have lisp-plt |
59 | PLT="" |
60 | |
61 | mmake || die |
62 | } |