2019-03-23 10:00:27 +00:00
|
|
|
# $NetBSD$
|
2020-07-19 22:06:13 +00:00
|
|
|
# used by wip/blas/Makefile
|
2019-06-30 11:38:04 +00:00
|
|
|
# used by wip/cblas/Makefile
|
|
|
|
# used by wip/lapacke/Makefile
|
|
|
|
# used by wip/lapack/Makefile
|
2019-03-23 10:00:27 +00:00
|
|
|
|
2020-07-19 22:06:13 +00:00
|
|
|
# Common Makefile for packages derived from the Netlib BLAS/LAPACK sources.
|
2020-02-27 16:54:20 +00:00
|
|
|
# Package Makefile sets LAPACK_COMPONENT and LAPACK_COMPONENT_CMAKE_ARGS to
|
|
|
|
# choose the library to install.
|
|
|
|
# LAPACK_COMPONENT can be "lapack", "lapacke", or "cblas"
|
2019-03-23 10:00:27 +00:00
|
|
|
|
2020-02-27 16:54:20 +00:00
|
|
|
DISTNAME= lapack-${NETLIB_BLAS_VERSION}
|
|
|
|
PKGNAME= ${LAPACK_COMPONENT}-${NETLIB_BLAS_VERSION}
|
2019-03-23 10:00:27 +00:00
|
|
|
CATEGORIES= math
|
2020-02-27 16:54:20 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=Reference-LAPACK/}
|
2020-07-19 18:03:00 +00:00
|
|
|
GITHUB_PROJECT= lapack
|
2020-02-27 16:54:20 +00:00
|
|
|
GITHUB_TAG= v${NETLIB_BLAS_VERSION}
|
2019-03-23 10:00:27 +00:00
|
|
|
|
2020-01-27 19:56:27 +00:00
|
|
|
HOMEPAGE= https://www.netlib.org/lapack/
|
2019-03-23 10:00:27 +00:00
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
# All parts are in the same section (now wip, later math).
|
2019-08-16 15:16:44 +00:00
|
|
|
PATCHDIR= ${.CURDIR}/../../wip/lapack/patches
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../wip/lapack/distinfo
|
2019-03-23 10:00:27 +00:00
|
|
|
|
2020-07-19 22:06:13 +00:00
|
|
|
USE_LANGUAGES= c fortran
|
|
|
|
USE_CMAKE= yes
|
2019-03-23 10:00:27 +00:00
|
|
|
|
2020-07-19 22:06:13 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
CONFIGURE_DIRS= build
|
|
|
|
CMAKE_ARG_PATH= ${WRKSRC}
|
2019-03-23 10:00:27 +00:00
|
|
|
|
2019-03-27 14:49:07 +00:00
|
|
|
# Note: We patch the build to install both static and
|
|
|
|
# shared libraries.
|
|
|
|
CMAKE_ARGS= -DBUILD_DEPRECATED=ON \
|
2019-03-23 10:00:27 +00:00
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
2019-03-27 14:49:07 +00:00
|
|
|
-DBUILD_STATIC_LIBS=ON \
|
2020-02-27 16:54:20 +00:00
|
|
|
${LAPACK_COMPONENT_CMAKE_ARGS}
|
|
|
|
|
|
|
|
.include "../../wip/lapack/version.mk"
|
2019-03-23 10:00:27 +00:00
|
|
|
|
|
|
|
post-extract:
|
2020-07-19 22:06:13 +00:00
|
|
|
${RUN} ${MKDIR} ${WRKSRC}/build
|