diff options
Diffstat (limited to 'science/liblinear/Makefile')
-rw-r--r-- | science/liblinear/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/science/liblinear/Makefile b/science/liblinear/Makefile new file mode 100644 index 000000000000..cf551fae1aa2 --- /dev/null +++ b/science/liblinear/Makefile @@ -0,0 +1,51 @@ +# New ports collection Makefile for: liblr +# Date created: May 14 2007 +# Whom: Rong-En Fan <rafan@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= liblr +PORTVERSION= 1.00 +CATEGORIES= science math +MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/liblr/ \ + http://www.csie.ntu.edu.tw/~cjlin/liblr/oldfiles/ +DISTNAME= ${PORTNAME}-${PORTVERSION:C/0$//} + +MAINTAINER= rafan@FreeBSD.org +COMMENT= A library for Large Regularized Logistic Regression + +OPTIONS= OCFLAGS "Use optimized CFLAGS" On + +USE_ZIP= yes + +MAKE_ENV= CC="${CC}" CXXC="${CXX}" + +TXT_DOCS= COPYRIGHT README + +.if !defined(NOPORTDOCS) +PORTDOCS= ${TXT_DOCS} +.endif + +PLIST_FILES= bin/lr-train bin/lr-predict + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_OCFLAGS) +# same as LIBIR itself +CFLAGS= -Wall -O3 +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/lr-train ${TARGETDIR}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/lr-predict ${TARGETDIR}/bin/ + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + for f in ${TXT_DOCS}; do \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ + done +.endif + +.include <bsd.port.post.mk> |