2013-06-05 16:11:19 +02:00
|
|
|
# Created by: Eijiro Shibusawa <ej-sib@ice.uec.ac.jp>
|
2010-08-25 08:42:48 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= levmar
|
2013-10-09 05:15:58 +02:00
|
|
|
PORTVERSION= 2.6
|
2015-05-11 13:58:46 +02:00
|
|
|
PORTREVISION= 4
|
2010-08-25 08:42:48 +02:00
|
|
|
CATEGORIES= math
|
2013-10-09 05:15:58 +02:00
|
|
|
MASTER_SITES= http://users.ics.forth.gr/~lourakis/levmar/
|
2010-08-25 08:42:48 +02:00
|
|
|
|
|
|
|
MAINTAINER= phd_kimberlite@yahoo.co.jp
|
2013-06-05 16:11:19 +02:00
|
|
|
COMMENT= GPL-licensed library implementing the Levenberg-Marquardt algorithm
|
2010-08-25 08:42:48 +02:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2011-10-23 11:04:04 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2010-08-25 08:42:48 +02:00
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
2014-09-08 20:59:29 +02:00
|
|
|
USES= fortran tar:tgz uidfix
|
2010-08-25 08:42:48 +02:00
|
|
|
|
2013-10-09 05:15:58 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES PROFILE
|
2015-05-11 13:58:46 +02:00
|
|
|
OPTIONS_SINGLE= BLASLIB
|
|
|
|
OPTIONS_DEFAULT= NETLIB
|
|
|
|
OPTIONS_SINGLE_BLASLIB= ATLAS NETLIB OPENBLAS
|
2013-06-05 16:11:19 +02:00
|
|
|
PROFILE_DESC= Build a profiling library
|
2011-02-22 18:40:44 +01:00
|
|
|
|
2015-05-11 13:58:46 +02:00
|
|
|
ATLAS_USES= blaslapack:atlas
|
|
|
|
NETLIB_USES= blaslapack:netlib
|
|
|
|
OPENBLAS_USES= blaslapack:openblas
|
2010-08-25 08:42:48 +02:00
|
|
|
|
2015-05-11 13:58:46 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2010-08-25 08:42:48 +02:00
|
|
|
|
|
|
|
PORTDOCS= README.txt
|
|
|
|
PORTEXAMPLES= lmdemo.c Makefile.demo
|
|
|
|
PLIST_FILES= include/levmar.h \
|
|
|
|
lib/liblevmar.a \
|
|
|
|
lib/liblevmar.so \
|
|
|
|
lib/liblevmar.so.2
|
|
|
|
|
2013-06-05 16:11:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MPROFILE}
|
2011-02-22 18:40:44 +01:00
|
|
|
.if defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE)
|
2014-07-29 22:55:27 +02:00
|
|
|
IGNORE= you have defined WITH_PROFILE, but have also defined\
|
2011-02-22 18:40:44 +01:00
|
|
|
WITHOUT_PROFILE, NOPROFILE, or NO_PROFILE
|
|
|
|
.elif !exists(/usr/lib/libc_p.a)
|
2014-07-29 22:55:27 +02:00
|
|
|
IGNORE= you have chosen WITH_PROFILE, but have not installed the\
|
2011-02-22 18:40:44 +01:00
|
|
|
base system profiling libraries
|
|
|
|
.endif
|
2010-08-25 08:42:48 +02:00
|
|
|
PLIST_FILES+= lib/liblevmar_p.a
|
2011-02-22 18:40:44 +01:00
|
|
|
.else
|
|
|
|
MAKE_ENV+= NO_PROFILE=
|
2010-08-25 08:42:48 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist
|
|
|
|
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
|
|
|
|
@${CP} ${FILESDIR}/Makefile.demo ${WRKSRC}/
|
|
|
|
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g' \
|
|
|
|
-e 's+%%CFLAGS%%+${CFLAGS} -I${LOCALBASE}/include+g' \
|
2011-02-22 18:40:44 +01:00
|
|
|
-e 's+%%LDFLAGS%%+${LDFLAGS}+g' \
|
2015-05-11 13:58:46 +02:00
|
|
|
-e 's+%%BLAS%%+${BLASLIB}+g' \
|
|
|
|
-e 's+%%LAPACK%%+${LAPACKLIB}+g' \
|
2010-08-25 08:42:48 +02:00
|
|
|
${WRKSRC}/Makefile.demo
|
|
|
|
|
|
|
|
post-install:
|
2013-10-09 05:15:58 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@(cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@(cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR})
|
2010-08-25 08:42:48 +02:00
|
|
|
|
2011-02-22 18:40:44 +01:00
|
|
|
test check: install
|
|
|
|
@( cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} Makefile.demo \
|
|
|
|
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET} )
|
|
|
|
${WRKSRC}/lmdemo
|
|
|
|
|
2010-12-18 01:44:22 +01:00
|
|
|
.include <bsd.port.post.mk>
|