62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2010/07/18 10:30:41 steven Exp $
|
|
|
|
COMMENT= solve large scale eigenvalue problems
|
|
|
|
DISTNAME= arpack96
|
|
PKGNAME= arpack-96
|
|
REVISION= 2
|
|
SHARED_LIBS= arpack 1.0
|
|
CATEGORIES= math
|
|
|
|
HOMEPAGE= http://www.caam.rice.edu/software/ARPACK/
|
|
|
|
# BSD license (not in distfile)
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}SRC/
|
|
DISTFILES= ${DISTNAME}.tar.gz patch.tar.gz ug.ps.gz
|
|
DIST_SUBDIR= arpack
|
|
|
|
MODULES= fortran
|
|
MODFORTRAN_WANTG77= Yes
|
|
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
|
|
|
|
# See bsd.lib.mk:162
|
|
.if ${MACHINE_ARCH:Mmips64*}
|
|
PKG_ARGS+= -Dno_mips64=0
|
|
.else
|
|
PKG_ARGS+= -Dno_mips64=1
|
|
.endif
|
|
|
|
LIB_DEPENDS= lapack.>=1::math/lapack \
|
|
blas.>=1::math/blas
|
|
|
|
WRKDIST= ${WRKDIR}/ARPACK
|
|
WRKSRC= ${WRKDIST}/SRC
|
|
MAKE_FILE= ${FILESDIR}/Makefile
|
|
MAKE_ENV= SHLIB_MAJOR=${LIBarpack_VERSION:R} \
|
|
SHLIB_MINOR=${LIBarpack_VERSION:E} \
|
|
FC=${FC}
|
|
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
|
|
|
|
post-extract:
|
|
@cd ${WRKDIST}/UTIL && mv *.f ${WRKSRC}
|
|
|
|
post-install:
|
|
.for i in BAND COMPLEX NONSYM SIMPLE SVD SYM
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/arpack/$i
|
|
${INSTALL_DATA} ${WRKDIST}/EXAMPLES/$i/* \
|
|
${PREFIX}/share/examples/arpack/$i
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKDIST}/EXAMPLES/README \
|
|
${PREFIX}/share/examples/arpack
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/arpack
|
|
${INSTALL_DATA} ${WRKDIST}/DOCUMENTS/* ${PREFIX}/share/doc/arpack
|
|
${INSTALL_DATA} ${WRKDIR}/ug.ps ${PREFIX}/share/doc/arpack
|
|
${INSTALL_DATA} ${FILESDIR}/LICENSE ${PREFIX}/share/doc/arpack
|
|
|
|
.include <bsd.port.mk>
|