b2f0761446
based on diff from Martynas Venckus <martynas at altroot.org>
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2007/01/27 07:17:55 steven Exp $
|
|
|
|
COMMENT= "library of Fortran 77 linear algebra subroutines"
|
|
|
|
DISTNAME= lapack-3.1.0
|
|
|
|
SHARED_LIBS= lapack 4.0
|
|
|
|
CATEGORIES= math
|
|
|
|
HOMEPAGE= http://www.netlib.org/lapack/
|
|
|
|
MAINTAINER= Steven Mestdagh <steven@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ftp://ftp.netlib.org/lapack/ \
|
|
ftp://netlib.bell-labs.com/netlib/lapack/ \
|
|
http://www.netlib.no/netlib/lapack/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
LIB_DEPENDS= blas.>=1::math/blas
|
|
|
|
MAKE_ENV= SHLIB_MAJOR=${LIBlapack_VERSION:R} \
|
|
SHLIB_MINOR=${LIBlapack_VERSION:E}
|
|
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
|
|
REGRESS_FLAGS= PLAT= OPTS= FORTRAN=${FC} \
|
|
LAPACKLIB=SRC/liblapack.a \
|
|
BLASLIB=${LOCALBASE}/lib/libblas.a
|
|
|
|
MAKE_FILE= ${FILESDIR}/Makefile
|
|
WRKSRC= ${WRKDIST}/SRC
|
|
|
|
# avoid 'unknown manpage type' errors and move manpages to section 3
|
|
pre-configure:
|
|
cd ${WRKDIST}/manpages/man/manl && \
|
|
perl -pi -e 's/(\.TH\s+\w+)\s+1(.*)/\1 3\2/' *.l && \
|
|
for m in *.l ; do if ! egrep '^\.TH' $$m >/dev/null ; then \
|
|
perl -pi -e "s/(.SH NAME)/.TH \U$${m%\.l} 3\n\1/" $$m ; fi ; \
|
|
mv $$m $${m%\.l}.3 ; done
|
|
cp ${WRKDIST}/make.inc.example ${WRKDIST}/make.inc
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKDIST}/manpages/man/manl/*.3 ${PREFIX}/man/man3/
|
|
|
|
do-regress:
|
|
cd ${WRKDIST}/TESTING/MATGEN && ${MAKE} ${REGRESS_FLAGS}
|
|
cd ${WRKDIST}/TESTING && ${MAKE} ${REGRESS_FLAGS}
|
|
|
|
.include <bsd.port.mk>
|