Ticket #16852: Portfile.4

File Portfile.4, 2.8 KB (added by krunk7@…, 16 years ago)

My Working portfile

Line 
1# vim: set ft=tcl:
2PortSystem        1.0
3name              py25-shogun
4version           0.6.7
5categories        python science math
6maintainers       jameskyle@ucla.edu
7description       The machine learning toolbox's focus is on large scale kernel methods and especially on Support Vector Machines (SVM).
8long_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).
9
10use_parallel_build yes
11use_bzip2         yes
12homepage          http://www.shogun-toolbox.org
13platforms         darwin
14master_sites      http://shogun-toolbox.org/archives/shogun/releases/0.6/sources/
15
16checksums         md5 03d2c5ae44fa7ca8baeb8c3fd2bae010 \
17                  sha1 7657da29d9f9afc0c204b8f2e68c784308185a1e \
18                  rmd160 c00ceceb791d2073413c089e23e361a3d584cc24
19
20distfiles         shogun-${version}${extract.suffix}
21
22configure.args    --disable-svm-light \
23                  --interface=python \
24                  --python=${prefix}/bin/python2.5 \
25                  --libs=${prefix}/lib \
26                  --includes=${prefix}/include \
27                  --cxx=${prefix}/bin/g++-mp-4.3 \
28                  --cc=${prefix}/bin/gcc-mp-4.3 \
29                  --install-path=${prefix} \
30                  --enable-readline \
31                  --destdir=${destroot}
32
33worksrcdir        shogun-${version}/src
34
35# default_variants  +atlas +glpk +lp_solve
36default_variants  +glpk +lp_solve +atlas
37
38depends_lib       port:python25 \
39                  port:py25-numpy \
40                  port:gcc43 \
41                  port:readline \
42                  port:py25-setuptools
43
44
45patch {
46  system "cd ${workpath}/shogun-${version} && patch -p0 < ${filespath}/patch-src"
47  system "cd ${workpath}/shogun-${version} && patch -p0 < ${filespath}/patch-src-lib-lapack.cpp"
48}
49variant cplex description {enable Multiple Kernel Learning CPLEX(tm)} {
50  configure.args-append --enable-cplex
51}
52
53variant python description {build the python interface} {
54}
55
56variant atlas description {use the fast atlas and lapack libraries} {
57  depends_lib-append port:atlas
58}
59
60variant glpk description {enable support for the GNU Linear Programming Kit} {
61  depends_lib-append port:glpk
62}
63
64variant lp_solve description {enable support for the lp_solve library} {
65  depends_lib-append port:lp_solve
66}
67
68post-clean {
69  ui_msg "Make sure that /opt/local/lib is in your DYLD_LIBRARY_PATH or the sg module will not load properly!"
70}