2013-06-04 21:26:52 +00:00
|
|
|
# Created by: Hung-Yi Chen <gaod@hychen.org>
|
2010-06-22 01:55:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= liblbfgs
|
2011-01-04 02:17:01 +00:00
|
|
|
PORTVERSION= 1.10
|
2014-06-18 16:00:20 +00:00
|
|
|
PORTREVISION= 1
|
2010-06-22 01:55:00 +00:00
|
|
|
CATEGORIES= math
|
2011-01-04 02:17:01 +00:00
|
|
|
MASTER_SITES= http://cloud.github.com/downloads/chokkan/liblbfgs/
|
2010-06-22 01:55:00 +00:00
|
|
|
|
|
|
|
MAINTAINER= gaod@hychen.org
|
2013-06-04 21:26:52 +00:00
|
|
|
COMMENT= Library of Limited-memory Broyden-Fletcher-Goldfarb-Shanno
|
2010-06-22 01:55:00 +00:00
|
|
|
|
2011-01-04 02:17:01 +00:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2014-06-18 16:00:20 +00:00
|
|
|
USES= libtool
|
2010-06-22 01:55:00 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:env
|
2010-06-22 01:55:00 +00:00
|
|
|
|
2013-07-10 06:14:32 +00:00
|
|
|
OPTIONS_DEFINE= OPTIMIZED DOCS
|
2013-06-04 21:26:52 +00:00
|
|
|
OPTIMIZED_DESC= SSE2 optimization routines
|
2010-06-22 01:55:00 +00:00
|
|
|
|
2013-06-04 21:26:52 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2010-06-22 01:55:00 +00:00
|
|
|
|
|
|
|
# Enable/disable compilation optimizations.
|
2013-06-04 21:26:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED}
|
2010-06-22 01:55:00 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-sse2
|
|
|
|
.endif
|
|
|
|
|
2014-06-18 16:00:20 +00:00
|
|
|
PLIST_FILES= lib/liblbfgs-1.10.so lib/liblbfgs.a \
|
|
|
|
lib/liblbfgs.so include/lbfgs.h
|
2010-06-22 01:55:00 +00:00
|
|
|
|
|
|
|
PORTDOCS= README INSTALL COPYING AUTHORS ChangeLog NEWS
|
|
|
|
|
|
|
|
post-patch:
|
2013-07-10 06:14:32 +00:00
|
|
|
.if !${PORT_OPTIONS:MDOCS}
|
2010-06-22 01:55:00 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/install-data-am$$//' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 21:26:52 +00:00
|
|
|
.include <bsd.port.mk>
|