Contents of /branches/magellan-next/core/swig/swig-2.0.4-r1.smage2
Parent Directory | Revision Log
Revision 7785 -
(show annotations)
(download)
Wed Jun 1 16:56:47 2011 UTC (13 years, 3 months ago) by niro
File size: 1194 byte(s)
Wed Jun 1 16:56:47 2011 UTC (13 years, 3 months ago) by niro
File size: 1194 byte(s)
auto added: ver bump to 2.0.4-r1
1 | # $Id$ |
2 | |
3 | PNAME="swig" |
4 | PVER="2.0.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-lang" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Simplified Wrapper and Interface Generator." |
11 | HOMEPAGE="http://www.swig.org/" |
12 | |
13 | DEPEND=">= dev-lang/python-2.7 |
14 | >= virtual/java |
15 | >= dev-lang/perl-5.14 |
16 | >= dev-lang/tcl-8.5 |
17 | >= dev-lang/ruby-1.9" |
18 | |
19 | SDEPEND=">= sys-apps/sed-4" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | sminclude mbuild |
25 | |
26 | SRC_URI=( |
27 | sourceforge://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | ) |
30 | |
31 | # swig uses its name in release version -> not 1.3.36 but swig-1.3.36 |
32 | UP2DATE="updatecmd_sourceforge ${PNAME} | sed 's/${PNAME}-\(.*\)/\1/'" |
33 | |
34 | # note1: build only with python, java, perl, ruby, tcl support |
35 | # left out: guile, lua, mono, ocaml, php, pike |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | |
40 | # swig doesn't like any CFLAGS |
41 | unset CXXFLAGS |
42 | unset CFLAGS |
43 | |
44 | mconfigure \ |
45 | --with-python \ |
46 | --with-java=${JAVA_HOME} \ |
47 | --with-javaincl=${JAVA_HOME}/include \ |
48 | --with-ruby=/usr/bin/ruby \ |
49 | --with-perl5=/usr/bin/perl \ |
50 | --with-tcl \ |
51 | --without-guile \ |
52 | --without-php4 \ |
53 | --without-ocaml \ |
54 | --without-pike \ |
55 | --without-csharp \ |
56 | --without-lua \ |
57 | || die |
58 | |
59 | # we don't have lisp-plt |
60 | PLT="" |
61 | |
62 | mmake || die |
63 | } |