Magellan Linux

Annotation of /trunk/extras/swig/swig-3.0.12-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29462 - (hide annotations) (download)
Fri Jun 16 09:51:54 2017 UTC (6 years, 11 months ago) by niro
File size: 1158 byte(s)
-move several depends to sdepends
1 niro 29462 # $Id$
2    
3     PNAME="swig"
4     PVER="3.0.12"
5     PBUILD="r2"
6    
7     PCAT="dev-lang"
8    
9     DESCRIPTION="Simplified Wrapper and Interface Generator."
10     HOMEPAGE="http://www.swig.org/"
11    
12     DEPEND=">= dev-libs/libpcre-8.36
13     >= sys-libs/libstdc++-6.3"
14    
15     SDEPEND=">= dev-lang/python-2.7
16     >= virtual/java
17     >= dev-lang/perl-5.24.1
18     >= dev-lang/tcl-8.6
19     >= dev-lang/ruby-2.0"
20    
21     SDEPEND=">= virtual/sed"
22    
23     SRCFILE="${PNAME}-${PVER}.tar.gz"
24     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25    
26     sminclude mbuild
27     msetfeature "!check"
28    
29     SRC_URI=(
30     sourceforge://${PNAME}/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     )
33    
34     UP2DATE="updatecmd_sourceforge ${PNAME} gz"
35    
36     # note1: build only with python, java, perl, ruby, tcl support
37     # left out: guile, lua, mono, ocaml, php, pike
38     src_compile()
39     {
40     cd ${SRCDIR}
41    
42     # swig doesn't like any CFLAGS
43     unset CXXFLAGS
44     unset CFLAGS
45    
46     mconfigure \
47     --with-python \
48     --with-java=${JAVA_HOME} \
49     --with-javaincl=${JAVA_HOME}/include \
50     --with-ruby=/usr/bin/ruby \
51     --with-perl5=/usr/bin/perl \
52     --with-tcl \
53     --without-guile \
54     --without-php4 \
55     --without-ocaml \
56     --without-pike \
57     --without-csharp \
58     --without-lua \
59     || die
60    
61     # we don't have lisp-plt
62     PLT=""
63    
64     mmake || die
65     }