1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

update to 0.95

This commit is contained in:
Brendan Fabeny 2012-02-07 12:41:05 +00:00
parent ce58f7ccf2
commit 7c88a36d53
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290589
3 changed files with 13 additions and 13 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= libocas
PORTVERSION= 0.94
PORTVERSION= 0.95
CATEGORIES= math
MASTER_SITES= http://cmp.felk.cvut.cz/~xfrancv/ocas/ LOCAL/bf
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/.//}
@ -20,11 +20,11 @@ USE_GMAKE= yes
USE_LDCONFIG= yes
USE_ZIP= yes
ALL_TARGET= all linclass
LIBS= -lm ${PTHREAD_LIBS}
MAKE_ENV= MEXDETECTED=no
ALL_TARGET= clean libocas.so.1 svmocas msvmocas linclassif
CLIBS= -lm ${PTHREAD_LIBS}
MAKE_ENV= CLIBS="${CLIBS}" MEXDETECTED=no
PLIST_FILES= bin/linclass bin/msvmocas bin/svmocas lib/libocas.so \
PLIST_FILES= bin/linclassif bin/msvmocas bin/svmocas lib/libocas.so \
lib/libocas.so.1
.include <bsd.port.pre.mk>
@ -41,11 +41,11 @@ post-patch:
@${REINPLACE_CMD} \
-e '\|:=|d' \
-e 's|libocas\.so|&.1|' \
-e '\|$$(CC) $$(CFLAGS) -o|{s|$$(CFLAGS)|& ${LDFLAGS}|;s|$$| ${LIBS}|;}' \
-e '\|$$(CC) $$(CFLAGS) -o|{s|$$(CFLAGS)|& ${LDFLAGS}|;}' \
${WRKSRC}/Makefile
do-install:
.for p in linclass msvmocas svmocas
.for p in linclassif msvmocas svmocas
@${INSTALL_PROGRAM} ${WRKSRC}/${p} ${PREFIX}/bin
.endfor
@${INSTALL_LIB} ${WRKSRC}/libocas.so.1 ${PREFIX}/lib
@ -54,11 +54,11 @@ do-install:
check regression-test test: build
${WRKSRC}/msvmocas -c 10 -v 1 ${WRKSRC}/data/example4_train.light \
${WRKSRC}/data/msvmocas.model
${WRKSRC}/linclass -e -v 1 -o ${WRKSRC}/data/example4_test.pred \
${WRKSRC}/linclassif -e -v 1 -o ${WRKSRC}/data/example4_test.pred \
${WRKSRC}/data/example4_test.light ${WRKSRC}/data/msvmocas.model
${WRKSRC}/svmocas -c 10 -b 1 -v 1 ${WRKSRC}/data/riply_trn.light \
${WRKSRC}/data/svmocas.model
${WRKSRC}/linclass -e -v 1 -o ${WRKSRC}/data/riply_tst.pred \
${WRKSRC}/linclassif -e -v 1 -o ${WRKSRC}/data/riply_tst.pred \
${WRKSRC}/data/riply_tst.light ${WRKSRC}/data/svmocas.model
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (libocas_v094.zip) = 159df397227682a0a268fb3e7869256756938496dd3be708ce4b184190e7f46d
SIZE (libocas_v094.zip) = 3333733
SHA256 (libocas_v095.zip) = 03219afa44489ed0fe5e17c4505b889f9a90741628dc5744291de7463e443564
SIZE (libocas_v095.zip) = 6003649

View File

@ -1,5 +1,5 @@
--- linclass.c.orig 2010-05-05 08:55:55.000000000 -0400
+++ linclass.c 2011-10-06 05:11:23.000000000 -0400
--- linclassif.c.orig 2010-05-05 08:55:55.000000000 -0400
+++ linclassif.c 2011-10-06 05:11:23.000000000 -0400
@@ -62,7 +62,7 @@
uint32_t i, j;
int len;