ports/146683: [NEW PORT] math/levmar: A GPL-licensed library implementing the Levenberg-Marquardt algorithm

Eijiro Shibusawa ej-sib at ice.uec.ac.jp
Mon May 17 23:50:09 UTC 2010


>Number:         146683
>Category:       ports
>Synopsis:       [NEW PORT] math/levmar: A GPL-licensed library implementing the Levenberg-Marquardt algorithm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 23:50:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Eijiro Shibusawa
>Release:        FreeBSD 8.0-RELEASE-p2 i386
>Organization:
>Environment:
FreeBSD blizzard.jp 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 16:02:27 UTC
>Description:
levmar is a GPL-licensed library written in C, which implements
the Levenberg-Marquardt (LM) optimization algorithm.
The LM algorithm is considered as one of the most effective
method for solving nonlinear least squares problem.

WWW: http://www.ics.forth.gr/~lourakis/levmar/

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	levmar
#	levmar/distinfo
#	levmar/files
#	levmar/files/Makefile.lib
#	levmar/files/Makefile.demo
#	levmar/pkg-descr
#	levmar/Makefile
#
echo c - levmar
mkdir -p levmar > /dev/null 2>&1
echo x - levmar/distinfo
sed 's/^X//' >levmar/distinfo << 'b8cbb222c801a85b5528d464e488e7b1'
XMD5 (levmar-2.5.tgz) = 7ca14d79eda6e985f8355b719ae47d35
XSHA256 (levmar-2.5.tgz) = b70f6ac3eff30ec29150e217b137312cb84e85529815efea2c12e4eab74b9d75
XSIZE (levmar-2.5.tgz) = 78817
b8cbb222c801a85b5528d464e488e7b1
echo c - levmar/files
mkdir -p levmar/files > /dev/null 2>&1
echo x - levmar/files/Makefile.lib
sed 's/^X//' >levmar/files/Makefile.lib << 'c2e4f10c83e7ace78154abc00df30b8d'
X# makefile for levmar sources
X
XLIBDIR =	$(PREFIX)/lib
X
XSHLIB_MAJOR=	2
XSHLIB_MINOR=	4
XLIB=		levmar
X
XSRCS=		lm.c Axb.c misc.c lmlec.c lmbc.c lmblec.c lmbleic.c
X
Xbeforeinstall:
X	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/levmar.h \
X		${PREFIX}/include
X
X.include <bsd.lib.mk>
c2e4f10c83e7ace78154abc00df30b8d
echo x - levmar/files/Makefile.demo
sed 's/^X//' >levmar/files/Makefile.demo << '30624edabc838891a1b43101d86d6ab4'
XCC	= %%CC%%
XCFLAGS	= %%CFLAGS%%
XLDFLAGS	= %%LDFLAGS%%
XLAPACK	= %%LAPACK%%
XBLAS	= %%BLAS%%
XLIBS	= -llevmar $(LAPACK) $(BLAS) -lm -lgfortran
X
XDEMOBJS=lmdemo.o
XDEMOSRCS=lmdemo.c
X
Xall: lmdemo
X
Xlmdemo: $(DEMOBJS)
X	$(CC) $(LDFLAGS) $(DEMOBJS) -o lmdemo $(LIBS)
X
Xclean:
X	@rm -f $(DEMOBJS)
X
Xcleanall: clean
X	  @rm -f lmdemo
30624edabc838891a1b43101d86d6ab4
echo x - levmar/pkg-descr
sed 's/^X//' >levmar/pkg-descr << '84f674206f8f1dfc8b0abdce6cf9b68a'
Xlevmar is a GPL-licensed library written in C, which implements
Xthe Levenberg-Marquardt (LM) optimization algorithm.
XThe LM algorithm is considered as one of the most effective
Xmethod for solving nonlinear least squares problem.
X
XWWW: http://www.ics.forth.gr/~lourakis/levmar/
84f674206f8f1dfc8b0abdce6cf9b68a
echo x - levmar/Makefile
sed 's/^X//' >levmar/Makefile << 'a4b77ab81a3577896226768670a13594'
X# New ports collection makefile for:    levmar
X# Date created: 18 May 2010
X# Whom:         Eijiro Shibusawa <ej-sib at ice.uec.ac.jp>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	levmar
XPORTVERSION=	2.5
XCATEGORIES=	math
XMASTER_SITES=	http://www.ics.forth.gr/~lourakis/levmar/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	ej-sib at ice.uec.ac.jp
XCOMMENT=	A GPL-licensed library implementing the Levenberg-Marquardt algorithm
X
X.include <bsd.port.pre.mk>
X
XUSE_LDCONFIG=	yes
XUSE_FORTRAN=	yes
X
XUSE_BLAS?=	reference
X
X.if exists(${LOCALBASE}/lib/libatlas_r.so)
XUSE_BLAS=	atlas
X.endif
X
X.if ${USE_BLAS} == reference
XLIB_DEPENDS=	blas.2:${PORTSDIR}/math/blas
XLIB_DEPENDS+=	lapack.4:${PORTSDIR}/math/lapack
XBLAS=		-lblas
XLAPACK=		-llapack
X.elif ${USE_BLAS} == atlas
XLIB_DEPENDS=	atlas:${PORTSDIR}/math/atlas
XBLAS=		-lf77blas -lcblas -latlas
XLAPACK=		-lalapack
X.endif
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
XPORTDOCS=	README.txt LICENSE
XPORTEXAMPLES=	lmdemo.c Makefile.demo
XPLIST_FILES=	include/levmar.h \
X		lib/liblevmar.a \
X		lib/liblevmar_p.a \
X		lib/liblevmar.so \
X		lib/liblevmar.so.2
X
Xpost-extract:
X	@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist
X	@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
X	@${CP} ${FILESDIR}/Makefile.demo ${WRKSRC}/
X	@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g' \
X			  -e 's+%%CFLAGS%%+${CFLAGS} -I${LOCALBASE}/include+g' \
X			  -e 's+%%LDFLAGS%%+${LDFLAGS} -L${LOCALBASE}/lib+g' \
X			  -e 's+%%BLAS%%+${BLAS}+g' \
X			  -e 's+%%LAPACK%%+${LAPACK}+g' \
X				${WRKSRC}/Makefile.demo
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
X.endif
X.if !defined(NOPORTEXAMPLES)
X	${MKDIR} ${EXAMPLESDIR}
X	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
a4b77ab81a3577896226768670a13594
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list