aboutsummaryrefslogtreecommitdiffstats
path: root/math/liblbfgs/Makefile
blob: f7c5aa25dce082836cf58262f8fa6c469ffd5731 (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
# New ports collection makefile for:    liblbfgs
# Date created:     2010-06-08
# Whom:         Hung-Yi Chen <gaod@hychen.org>
#
# $FreeBSD$
#

PORTNAME=   liblbfgs
PORTVERSION=    1.10
CATEGORIES= math
MASTER_SITES=   http://cloud.github.com/downloads/chokkan/liblbfgs/

MAINTAINER= gaod@hychen.org
COMMENT=    A library of Limited-memory Broyden-Fletcher-Goldfarb-Shanno

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/COPYING

GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  autoconf:env

OPTIONS=    OPTIMIZED "Enable SSE2 optimization routines" Off

.include <bsd.port.pre.mk>

.if (${OSVERSION} < 700000)
IGNORE= does not install properly on 6.x
.endif

# Enable/disable compilation optimizations.
.if defined(WITH_OPTIMIZED)
CONFIGURE_ARGS+=    --enable-sse2
.endif

PLIST_FILES=    lib/liblbfgs-1.10.so.0.0 lib/liblbfgs.a lib//liblbfgs.la \
        lib/liblbfgs.so.0.0 include/lbfgs.h

PORTDOCS=   README INSTALL COPYING AUTHORS ChangeLog NEWS

post-patch:
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e 's/install-data-am$$//' ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.post.mk>