Ticket #16852: Portfile.5

File Portfile.5, 2.8 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

patch phase changes (added patchfiles, removed override)

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem        1.0
5
6name              py25-shogun
7version           0.6.7
8categories        python science math
9maintainers       jameskyle@ucla.edu
10description       The machine learning toolbox's focus is on large scale kernel methods and especially on Support Vector Machines (SVM).
11long_description  ${description} It provides a generic SVM object interfacing to several different SVM implementations, among them the state of the art OCAS, LibSVM , SVMLight,  SVMLin  and GPDT . Each of the SVMs can be combined with a variety of kernels. The toolbox not only provides efficient implementations of the most common kernels, like the Linear, Polynomial, Gaussian and Sigmoid Kernel but also comes with a number of recent string kernels as e.g. the Locality Improved , Fischer , TOP , Spectrum , Weighted Degree Kernel (with shifts).
12
13use_parallel_build yes
14use_bzip2         yes
15homepage          http://www.shogun-toolbox.org
16platforms         darwin
17master_sites      http://shogun-toolbox.org/archives/shogun/releases/0.6/sources/
18
19checksums         md5 03d2c5ae44fa7ca8baeb8c3fd2bae010 \
20                  sha1 7657da29d9f9afc0c204b8f2e68c784308185a1e \
21                  rmd160 c00ceceb791d2073413c089e23e361a3d584cc24
22
23distfiles         shogun-${version}${extract.suffix}
24
25configure.args    --disable-svm-light \
26                  --interface=python \
27                  --python=${prefix}/bin/python2.5 \
28                  --libs=${prefix}/lib \
29                  --includes=${prefix}/include \
30                  --cxx=${prefix}/bin/g++-mp-4.3 \
31                  --cc=${prefix}/bin/gcc-mp-4.3 \
32                  --install-path=${prefix} \
33                  --enable-readline \
34                  --destdir=${destroot}
35
36worksrcdir        shogun-${version}/src
37
38# default_variants  +atlas +glpk +lp_solve
39default_variants  +glpk +lp_solve +atlas
40
41depends_lib       port:python25 \
42                  port:py25-numpy \
43                  port:gcc43 \
44                  port:readline \
45                  port:py25-setuptools
46
47
48patchfiles         \
49  patch-src-configure.diff \
50  patch-src-lib-lapack.cpp.diff
51
52variant cplex description {enable Multiple Kernel Learning CPLEX(tm)} {
53  configure.args-append --enable-cplex
54}
55
56variant python description {build the python interface} {
57}
58
59variant atlas description {use the fast atlas and lapack libraries} {
60  depends_lib-append port:atlas
61}
62
63variant glpk description {enable support for the GNU Linear Programming Kit} {
64  depends_lib-append port:glpk
65}
66
67variant lp_solve description {enable support for the lp_solve library} {
68  depends_lib-append port:lp_solve
69}
70
71post-clean {
72  ui_msg "Make sure that /opt/local/lib is in your DYLD_LIBRARY_PATH or the sg module will not load properly!"
73}