Annotation of /branches/R11-stable/extras/swig/swig-2.0.11-r1.smage2
Parent Directory | Revision Log
Revision 20211 -
(hide annotations)
(download)
Tue Nov 26 11:47:36 2013 UTC (10 years, 9 months ago) by niro
File size: 1148 byte(s)
Tue Nov 26 11:47:36 2013 UTC (10 years, 9 months ago) by niro
File size: 1148 byte(s)
-release branches/R11-stable
1 | niro | 20065 | # $Id$ |
2 | |||
3 | PNAME="swig" | ||
4 | PVER="2.0.11" | ||
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 | >= virtual/java | ||
14 | >= dev-lang/perl-5.18.1 | ||
15 | >= dev-lang/tcl-8.6 | ||
16 | >= dev-lang/ruby-2.0 | ||
17 | >= dev-libs/libpcre-8.33 | ||
18 | >= sys-libs/libstdc++-4.8" | ||
19 | |||
20 | SDEPEND=">= virtual/sed" | ||
21 | |||
22 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
24 | |||
25 | sminclude mbuild | ||
26 | msetfeature "!check" | ||
27 | |||
28 | SRC_URI=( | ||
29 | sourceforge://${PNAME}/${SRCFILE} | ||
30 | mirror://${PNAME}/${SRCFILE} | ||
31 | ) | ||
32 | |||
33 | UP2DATE="updatecmd_sourceforge ${PNAME} gz" | ||
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 | } |