blob: 15f08f6c48a72ae41d5352f199881fcf271e5891 (
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
|
# New ports collection Makefile for: libsvm
# Date created: Oct 28 2001
# Whom: Chia-Hsing Yu <me@davidyu.org>
#
# $FreeBSD$
#
PORTNAME= libsvm
PORTVERSION= 2.5
CATEGORIES= science math
MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/libsvm/
MAINTAINER= me@davidyu.org
COMMENT= A library for Support Vector Machines
.if defined(WITH_PYTHON)
USE_PYTHON= yes
ALL_TARGET= all py
MAKE_ARGS+= PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR}
PLIST_SUB+= LIBSVM_PYTHON=""
.else
PLIST_SUB+= LIBSVM_PYTHON="@comment "
.endif
pre-everything::
.if !defined(WITH_PYTHON)
@${ECHO_MSG} "You can install python interface by defining WITH_PYTHON=yes"
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/svm-train ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/svm-predict ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/svm-scale ${PREFIX}/bin/
.if defined(WITH_PYTHON)
${INSTALL_SCRIPT} ${WRKSRC}/python/svm.py ${PYTHON_SITELIBDIR}/
${INSTALL_PROGRAM} ${WRKSRC}/python/svmc.so ${PYTHON_SITELIBDIR}/
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
.endif
.include <bsd.port.mk>
|