Lines 6-19
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= svmlight |
8 |
PORTNAME= svmlight |
9 |
PORTVERSION= 6.01 |
9 |
PORTVERSION= 6.02 |
10 |
PORTREVISION= 3 |
|
|
11 |
CATEGORIES= science |
10 |
CATEGORIES= science |
12 |
MASTER_SITES= http://kodiak.cs.cornell.edu/svm_light/current/ |
11 |
MASTER_SITES= http://kodiak.cs.cornell.edu/svm_light/v${PORTVERSION}/ |
13 |
DISTNAME= svm_light |
12 |
DISTNAME= svm_light |
14 |
|
13 |
|
15 |
PATCH_SITES= http://search.cpan.org/src/KWILLIAMS/Algorithm-SVMLight-0.08/ |
14 |
PATCH_SITES= http://cpansearch.perl.org/src/KWILLIAMS/Algorithm-SVMLight-0.09/ |
16 |
PATCHFILES= SVMLight.patch |
15 |
PATCHFILES= SVMLight.patch |
|
|
16 |
PATCH_DIST_STRIP=-p1 |
17 |
|
17 |
|
18 |
MAINTAINER= gslin@gslin.org |
18 |
MAINTAINER= gslin@gslin.org |
19 |
COMMENT= An implementation of Support Vector Machines (SVMs) in C |
19 |
COMMENT= An implementation of Support Vector Machines (SVMs) in C |
Lines 26-43
Link Here
|
26 |
USE_GMAKE= yes |
26 |
USE_GMAKE= yes |
27 |
USE_LDCONFIG= yes |
27 |
USE_LDCONFIG= yes |
28 |
|
28 |
|
29 |
pre-patch: |
|
|
30 |
${CP} ${DISTDIR}/${PATCHFILES} ${WRKDIR} |
31 |
${REINPLACE_CMD} -e 's|svm_light/||g' ${WRKDIR}/${PATCHFILES} |
32 |
|
33 |
do-patch: |
34 |
cd ${WRKDIR} && ${PATCH} < ${PATCHFILES} |
35 |
|
36 |
post-build: |
37 |
${CC} ${CFLAGS} -shared -o ${WRKSRC}/libsvmlight.so.1 \ |
38 |
${WRKSRC}/svm_common.o ${WRKSRC}/svm_hideo.o \ |
39 |
${WRKSRC}/svm_learn.o |
40 |
|
41 |
do-install: |
29 |
do-install: |
42 |
${MKDIR} ${PREFIX}/include/svmlight |
30 |
${MKDIR} ${PREFIX}/include/svmlight |
43 |
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/svmlight |
31 |
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/svmlight |
Lines 45-50
Link Here
|
45 |
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin |
33 |
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin |
46 |
.endfor |
34 |
.endfor |
47 |
${INSTALL_DATA} ${WRKSRC}/libsvmlight.* ${PREFIX}/lib |
35 |
${INSTALL_DATA} ${WRKSRC}/libsvmlight.* ${PREFIX}/lib |
|
|
36 |
${MV} ${PREFIX}/lib/libsvmlight.so ${PREFIX}/lib/libsvmlight.so.1 |
48 |
${LN} -s ${PREFIX}/lib/libsvmlight.so.1 ${PREFIX}/lib/libsvmlight.so |
37 |
${LN} -s ${PREFIX}/lib/libsvmlight.so.1 ${PREFIX}/lib/libsvmlight.so |
49 |
# It's license request, do not remove |
38 |
# It's license request, do not remove |
50 |
${MKDIR} ${DOCSDIR} |
39 |
${MKDIR} ${DOCSDIR} |