Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 00:01:23 +0600 (YEKST)
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/102115: [NEW PORT] devel/ocaml-lacaml: OCaml interface to BLAS and LAPACK libraries
Message-ID:  <20060815180123.1A7FD12027@fonon.realnet>
Resent-Message-ID: <200608152020.k7FKKMJC063969@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102115
>Category:       ports
>Synopsis:       [NEW PORT] devel/ocaml-lacaml: OCaml interface to BLAS and LAPACK libraries
>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:   Tue Aug 15 20:20:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug  2 21:44:37 MSD
>Description:
This OCaml-library interfaces the BLAS-library (Basic Linear Algebra
Subroutines) and LAPACK-library (Linear Algebra routines), which are
written in FORTRAN.

This allows people to write high-performance numerical code for
applications that need linear algebra.

Author:	Markus Mottl <markus.mottl@gmail.com>
WWW:	http://www.ocaml.info/home/ocaml_sources.html

>How-To-Repeat:
>Fix:

--- ocaml-lacaml-3.0.18.shar begins here ---
# 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:
#
#	ocaml-lacaml
#	ocaml-lacaml/pkg-descr
#	ocaml-lacaml/Makefile
#	ocaml-lacaml/distinfo
#
echo c - ocaml-lacaml
mkdir -p ocaml-lacaml > /dev/null 2>&1
echo x - ocaml-lacaml/pkg-descr
sed 's/^X//' >ocaml-lacaml/pkg-descr << 'END-of-ocaml-lacaml/pkg-descr'
XThis OCaml-library interfaces the BLAS-library (Basic Linear Algebra
XSubroutines) and LAPACK-library (Linear Algebra routines), which are
Xwritten in FORTRAN.
X
XThis allows people to write high-performance numerical code for
Xapplications that need linear algebra.
X
XAuthor:	Markus Mottl <markus.mottl@gmail.com>
XWWW:	http://www.ocaml.info/home/ocaml_sources.html
END-of-ocaml-lacaml/pkg-descr
echo x - ocaml-lacaml/Makefile
sed 's/^X//' >ocaml-lacaml/Makefile << 'END-of-ocaml-lacaml/Makefile'
X# New ports collection makefile for:	lacaml
X# Date created:		2006-08-15
X# Whom:			Stanislav Sedov <ssedov@mbsd.msk.ru>
X#
X# $MBSDlabs$
X# $FreeBSD$
X#
X
XPORTNAME=	lacaml
XPORTVERSION=	3.0.18
XCATEGORIES=	devel
XMASTER_SITES=	http://www.ocaml.info/ocaml_sources/
XPKGNAMEPREFIX=	ocaml-
X
XMAINTAINER=	ssedov@mbsd.msk.ru
XCOMMENT=	OCaml interface to BLAS and LAPACK libraries
X
XLIB_DEPENDS=	blas.1:${PORTSDIR}/math/blas \
X		lapack.3:${PORTSDIR}/math/lapack
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_OCAML=	yes
XUSE_OCAML_FINDLIB=yes
XUSE_OCAML_LDCONFIG=yes
XUSE_OCAML_WASH=	yes
X
XCFLAGS+=	-fPIC
XMAKE_ENV+=	OCAMLMKLIB_FLAGS="-L${LOCALBASE}/lib"
X
XDOCS=		README TODO
XDOCSDIR=	${TARGETDIR}/share/doc/ocaml/${PORTNAME}
XEXAMPLESDIR=	${TARGETDIR}/share/examples/ocaml/${PORTNAME}
X
X# XXX: exists untill it will be committed to bsd.port.mk
XCOPYTREE_SHARE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
X		2>&1) && \
X		${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
X		${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
X		${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
X
Xpost-extract:
X#
X# CFLAGS safety
X#
X	@${REINPLACE_CMD} -E \
X		-e 's,^(CFLAGS[[:space:]]*:=[[:space:]]*).*,\1${CFLAGS},' \
X		${WRKSRC}/lib/Makefile
X
X# For nonstandard prefixes
X.if !exists(${OCAMLFIND_DESTDIR})
X	${MKDIR} ${OCAMLFIND_DESTDIR}
X.endif
X.if !exists(${OCAMLFIND_LDCONF})
X	${TOUCH} ${OCAMLFIND_LDCONF}
X.endif
X
Xpost-install:
X	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
X		${SED} "s,^${TARGETDIR}/,," >> ${TMPPLIST}
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
X	@${MKDIR} ${EXAMPLESDIR}
X	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
X	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
X		${SED} 's,^${TARGETDIR}/,,' >> ${TMPPLIST}
X	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
X		${SED} 's,^${TARGETDIR}/,@dirrm ,' >> ${TMPPLIST}
X	@${FIND} ${DOCSDIR}/ ! -type d | \
X		${SED} 's,^${TARGETDIR}/,,' >> ${TMPPLIST}
X	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
X		${SED} 's,^${TARGETDIR}/,@dirrm ,' >> ${TMPPLIST}
X# XXX: temporary workaround for non-standard PREFIX
X	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
X		>> ${TMPPLIST}
X	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
X		>> ${TMPPLIST}
X.endif
X
X.include <bsd.port.post.mk>
END-of-ocaml-lacaml/Makefile
echo x - ocaml-lacaml/distinfo
sed 's/^X//' >ocaml-lacaml/distinfo << 'END-of-ocaml-lacaml/distinfo'
XMD5 (lacaml-3.0.18.tar.bz2) = 1965430e39a430b36d8beec1eb9dae93
XSHA256 (lacaml-3.0.18.tar.bz2) = 240f0025f7732c460d55274487d56c3a018589baf06bf8e9a69d4d3e3b0b4dbd
XSIZE (lacaml-3.0.18.tar.bz2) = 68886
END-of-ocaml-lacaml/distinfo
exit
--- ocaml-lacaml-3.0.18.shar ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060815180123.1A7FD12027>