2019-03-23 10:00:27 +00:00
|
|
|
# $NetBSD$
|
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
|
|
|
|
|
|
|
# Common Makefile for packages derived from the Netlib LAPACK sources.
|
2019-06-30 11:38:04 +00:00
|
|
|
# You set LAPACK_PART (lowercase) and LAPACK_PART_CMAKE_ARGS to choose
|
2019-03-23 10:00:27 +00:00
|
|
|
# the library to install.
|
|
|
|
|
2020-01-03 20:21:38 +00:00
|
|
|
PORTVERSION= 3.9.0
|
2019-03-23 10:00:27 +00:00
|
|
|
DISTNAME= lapack-${PORTVERSION}
|
2019-03-26 15:44:36 +00:00
|
|
|
PKGNAME= ${LAPACK_PART}-${PORTVERSION}
|
2019-03-23 10:00:27 +00:00
|
|
|
CATEGORIES= math
|
2020-01-03 20:21:38 +00:00
|
|
|
MASTER_SITES= -https://github.com/Reference-LAPACK/lapack/archive/v${PORTVERSION}.tar.gz
|
2019-03-23 10:00:27 +00:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.netlib.org/lapack/
|
|
|
|
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
|
|
|
|
|
|
|
USE_LANGUAGES= c fortran
|
|
|
|
USE_CMAKE= yes
|
|
|
|
|
2019-08-16 15:16:44 +00:00
|
|
|
CONFIGURE_DIRS= build
|
2019-03-23 10:00:27 +00:00
|
|
|
CMAKE_ARG_PATH= ${WRKSRC}
|
|
|
|
|
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 \
|
2019-03-23 10:00:27 +00:00
|
|
|
${LAPACK_PART_CMAKE_ARGS}
|
|
|
|
|
|
|
|
post-extract:
|
2019-08-16 15:16:44 +00:00
|
|
|
${RUN} mkdir -p ${WRKSRC}/build
|
2019-03-23 10:00:27 +00:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|