aboutsummaryrefslogtreecommitdiffstats
path: root/science/liblinear/Makefile
blob: 5319784b353c0674c8b1b8b8e89e15852199911b (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
# Created by: Rong-En Fan <rafan@FreeBSD.org>
# $FreeBSD$

PORTNAME=   liblinear
PORTVERSION=    1.80
CATEGORIES= science math
MASTER_SITES=   http://www.csie.ntu.edu.tw/~cjlin/liblinear/ \
        http://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles/
DISTNAME=   ${PORTNAME}-${PORTVERSION:C/0$//}

MAINTAINER= rafan@FreeBSD.org
COMMENT=    A library for Large Linear Classification

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/COPYRIGHT

OPTIONS_DEFINE= OPTIMIZED_CFLAGS
OPTIONS_DEFAULT=    OPTIMIZED_CFLAGS

USE_ZIP=    yes

TXT_DOCS=   COPYRIGHT README

PLIST_FILES=    bin/train bin/predict

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MDOCS}
PORTDOCS=   ${TXT_DOCS}
.endif

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
# same as LIBLINEAR itself
CFLAGS=     -Wall -O3
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/train ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/predict ${PREFIX}/bin

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    for f in ${TXT_DOCS}; do \
      ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
    done
.endif

.include <bsd.port.post.mk>