diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-08-01 15:07:54 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-08-01 15:07:54 +0000 |
commit | 5eebe8264da25d2f038890713fa8236fd86857c4 (patch) | |
tree | 54ecb44408dc42cdeef7d4f6626aacda0c252e43 /science/svmlight/Makefile | |
parent | 975fb1d60ebabdcfbf218b77f5936de81aa532fb (diff) | |
download | ports-5eebe8264da25d2f038890713fa8236fd86857c4.tar.gz ports-5eebe8264da25d2f038890713fa8236fd86857c4.zip |
Notes
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> |