diff options
Diffstat (limited to 'science/svmlight/Makefile')
-rw-r--r-- | science/svmlight/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/science/svmlight/Makefile b/science/svmlight/Makefile new file mode 100644 index 000000000000..b1a05e96c795 --- /dev/null +++ b/science/svmlight/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: svmlight +# Date created: 2006-07-18 +# Whom: Gea-Suan Lin <gslin@gslin.org> +# +# $FreeBSD$ +# + +PORTNAME= svmlight +PORTVERSION= 6.01 +CATEGORIES= science +MASTER_SITES= http://kodiak.cs.cornell.edu/svm_light/current/ +DISTNAME= svm_light + +PATCH_SITES= http://search.cpan.org/src/KWILLIAMS/Algorithm-SVMLight-0.05/ +PATCHFILES= SVMLight.patch + +MAINTAINER= gslin@gslin.org +COMMENT= An implementation of Support Vector Machines (SVMs) in C + +RESTRICTED= only for education and research + +INSTALLS_SHLIB= yes +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LFLAGS="${CFLAGS}" +USE_GMAKE= yes +WRKSRC= ${WRKDIR} + +post-build: + ${CC} ${CFLAGS} -shared -o ${WRKSRC}/libsvmlight.so.1 ${WRKSRC}/libsvmlight.a + +do-install: +.for file in svm_classify svm_learn + ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor + ${INSTALL_DATA} ${WRKSRC}/libsvmlight.* ${PREFIX}/lib + ${LN} -s ${PREFIX}/lib/libsvmlight.so.1 ${PREFIX}/lib/libsvmlight.so +# It's license request, do not remove + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR} + +post-install: + @${CAT} ${WRKSRC}/LICENSE.txt + +.include <bsd.port.mk> |