Magellan Linux

Annotation of /branches/R11-stable/extras/swig/swig-2.0.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17310 - (hide annotations) (download)
Fri Jun 7 11:51:18 2013 UTC (11 years ago) by niro
Original Path: trunk/extras/swig/swig-2.0.10-r1.smage2
File size: 1146 byte(s)
auto added: ver bump to 2.0.10-r1
1 niro 17310 # $Id$
2    
3     PNAME="swig"
4     PVER="2.0.10"
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
15     >= dev-lang/tcl-8.6
16     >= dev-lang/ruby-2.0
17     >= dev-libs/libpcre-8.33
18     >= sys-libs/libstdc++-4.7"
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     }