Contents of /trunk/core/swig/swig-2.0.4-r3.smage2
Parent Directory | Revision Log
Revision 10539 -
(show annotations)
(download)
Tue Jan 24 22:47:55 2012 UTC (12 years, 8 months ago) by niro
File size: 1218 byte(s)
Tue Jan 24 22:47:55 2012 UTC (12 years, 8 months ago) by niro
File size: 1218 byte(s)
-disabled src_check atm -fixme
1 | # $Id$ |
2 | |
3 | PNAME="swig" |
4 | PVER="2.0.4" |
5 | PBUILD="r3" |
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 | >= virtual/java |
14 | >= dev-lang/perl-5.14 |
15 | >= dev-lang/tcl-8.5 |
16 | >= dev-lang/ruby-1.9 |
17 | >= dev-libs/libpcre-8.21" |
18 | |
19 | SDEPEND=">= sys-apps/sed-4" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | sminclude mbuild |
25 | msetfeature "!check" |
26 | |
27 | SRC_URI=( |
28 | sourceforge://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | ) |
31 | |
32 | # swig uses its name in release version -> not 1.3.36 but swig-1.3.36 |
33 | UP2DATE="updatecmd_sourceforge ${PNAME} | sed 's/${PNAME}-\(.*\)/\1/'" |
34 | |
35 | # note1: build only with python, java, perl, ruby, tcl support |
36 | # left out: guile, lua, mono, ocaml, php, pike |
37 | src_compile() |
38 | { |
39 | cd ${SRCDIR} |
40 | |
41 | # swig doesn't like any CFLAGS |
42 | unset CXXFLAGS |
43 | unset CFLAGS |
44 | |
45 | mconfigure \ |
46 | --with-python \ |
47 | --with-java=${JAVA_HOME} \ |
48 | --with-javaincl=${JAVA_HOME}/include \ |
49 | --with-ruby=/usr/bin/ruby \ |
50 | --with-perl5=/usr/bin/perl \ |
51 | --with-tcl \ |
52 | --without-guile \ |
53 | --without-php4 \ |
54 | --without-ocaml \ |
55 | --without-pike \ |
56 | --without-csharp \ |
57 | --without-lua \ |
58 | || die |
59 | |
60 | # we don't have lisp-plt |
61 | PLT="" |
62 | |
63 | mmake || die |
64 | } |