[79386] trunk/dports/math

ryandesign at macports.org ryandesign at macports.org
Sun Jun 12 02:15:13 PDT 2011


Revision: 79386
          http://trac.macports.org/changeset/79386
Author:   ryandesign at macports.org
Date:     2011-06-12 02:15:10 -0700 (Sun, 12 Jun 2011)
Log Message:
-----------
liblinear: new port, version 1.8; see #29778

Added Paths:
-----------
    trunk/dports/math/liblinear/
    trunk/dports/math/liblinear/Portfile
    trunk/dports/math/liblinear/files/
    trunk/dports/math/liblinear/files/patch-Makefile.diff

Added: trunk/dports/math/liblinear/Portfile
===================================================================
--- trunk/dports/math/liblinear/Portfile	                        (rev 0)
+++ trunk/dports/math/liblinear/Portfile	2011-06-12 09:15:10 UTC (rev 79386)
@@ -0,0 +1,55 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+
+name                liblinear
+version             1.8
+
+categories          math
+maintainers         nomaintainer
+license             BSD
+platforms           darwin
+
+description         A simple package for solving large-scale regularized linear classification.
+
+long_description    LIBLINEAR is a simple package for solving large-scale regularized \
+                    linear classification. It currently supports L2-regularized logistic \
+                    regression/L2-loss support vector classification/L1-loss support vector \
+                    classification, and L1-regularized L2-loss support vector classification/ \
+                    logistic regression.
+
+homepage            http://www.csie.ntu.edu.tw/~cjlin/liblinear/
+master_sites        ${homepage}
+
+checksums           sha1    26f4a47ed1546996eaac21f5282e1cc42b59a623 \
+                    rmd160  7f97f336709c1418550bc60013b9daf99a507c07
+
+patchfiles          patch-Makefile.diff
+
+use_configure       no
+
+# /usr/bin/ranlib: archive member: liblinear.a(blas.a) fat file for cputype (16777223) cpusubtype (3) is not an object file (bad magic number)
+universal_variant   no
+
+set libver          ${version}.0
+build.target        all
+build.args          CC="${configure.cc} ${configure.cc_archflags}" \
+                    CXX="${configure.cxx} ${configure.cxx_archflags}" \
+                    PREFIX=${prefix} \
+                    VERSION=${libver}
+
+destroot {
+    xinstall -m 755 -W ${worksrcpath} train predict ${destroot}${prefix}/bin
+    xinstall -m 644 -W ${worksrcpath} liblinear.a liblinear.${libver}.dylib ${destroot}${prefix}/lib
+    xinstall -m 644 -W ${worksrcpath} linear.h tron.h ${destroot}${prefix}/include
+
+    ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib
+
+    set docs ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 755 -d ${docs}
+    xinstall -m 644 -W ${worksrcpath} COPYRIGHT README heart_scale ${docs}
+}
+
+livecheck.type          regex
+livecheck.regex         {Version *([0-9.]+) *}


Property changes on: trunk/dports/math/liblinear/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/math/liblinear/files/patch-Makefile.diff
===================================================================
--- trunk/dports/math/liblinear/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/math/liblinear/files/patch-Makefile.diff	2011-06-12 09:15:10 UTC (rev 79386)
@@ -0,0 +1,28 @@
+--- Makefile.orig	2010-06-14 18:04:03.000000000 +0900
++++ Makefile	2011-06-10 23:22:40.000000000 +0900
+@@ -5,7 +5,7 @@
+ SHVER = 1
+ #LIBS = -lblas
+ 
+-all: train predict
++all: train predict liblinear.a liblinear.dylib
+ 
+ lib: linear.o tron.o blas/blas.a
+ 	$(CXX) -shared -dynamiclib linear.o tron.o blas/blas.a -o liblinear.so.$(SHVER)
+@@ -25,7 +25,16 @@
+ blas/blas.a:
+ 	cd blas; make OPTFLAGS='$(CFLAGS)' CC='$(CC)';
+ 
++liblinear.a: linear.o tron.o blas/blas.a
++	ar rc liblinear.a linear.o tron.o blas/blas.a
++	ranlib liblinear.a
++liblinear.dylib: linear.o tron.o blas/blas.a
++	$(CXX) $(CFLAGS) -dynamiclib -install_name $(PREFIX)/lib/liblinear.dylib \
++                         -current_version $(VERSION) \
++                         -compatibility_version $(VERSION) \
++                         -o liblinear.$(VERSION).dylib linear.o tron.o blas/blas.a
+ clean:
+ 	cd blas;	make clean
+ 	cd matlab;	make clean
+ 	rm -f *~ tron.o linear.o train predict liblinear.so.$(SHVER)
++	rm -f *.a *.dylib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110612/21f34a3d/attachment.html>


More information about the macports-changes mailing list