aboutsummaryrefslogtreecommitdiffstats
path: root/science/svmlight/Makefile
blob: 4889daa4ffdc3abd277f393580317c8472025178 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for: svmlight
# Date created:     2006-07-18
# Whom:     Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#

PORTNAME=   svmlight
PORTVERSION=    6.01
PORTREVISION=   3
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

CFLAGS+=    -fPIC
MAKE_ARGS=  CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LFLAGS="${CFLAGS}"
NO_WRKSUBDIR=   yes
USE_GMAKE=  yes
USE_LDCONFIG=   yes

post-build:
    ${CC} ${CFLAGS} -shared -o ${WRKSRC}/libsvmlight.so.1 \
        ${WRKSRC}/svm_common.o ${WRKSRC}/svm_hideo.o \
        ${WRKSRC}/svm_learn.o

do-install:
    ${MKDIR} ${PREFIX}/include/svmlight
    ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/svmlight
.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>