lapack, lapacke, blas, cblas: Clean up Makefiles and share version.mk
This commit is contained in:
parent
0ecb689c81
commit
5f780d66a2
|
@ -7,8 +7,7 @@
|
|||
# until everyone uses mk/blas.buildlink3.mk (and people removed
|
||||
# math/blas from their pkgsrc-related scripts).
|
||||
|
||||
PKGNAME= blas-3.9.0
|
||||
PKGREVISION= 1
|
||||
PKGNAME= blas-${NETLIB_BLAS_VERSION}
|
||||
CATEGORIES= math
|
||||
|
||||
MAINTAINER= thomas.orgis@uni-hamburg.de
|
||||
|
@ -20,6 +19,7 @@ USE_LIBTOOL= yes
|
|||
|
||||
META_PACKAGE= yes
|
||||
|
||||
.include "../../wip/lapack/version.mk"
|
||||
.include "../../wip/lapack/buildlink3.mk"
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD$
|
||||
|
||||
COMMENT= C interface to a BLAS library
|
||||
LAPACK_PART= cblas
|
||||
LAPACK_PART_CMAKE_ARGS= \
|
||||
COMMENT= C interface to a BLAS library
|
||||
LAPACK_COMPONENT= cblas
|
||||
LAPACK_COMPONENT_CMAKE_ARGS= \
|
||||
-DUSE_OPTIMIZED_BLAS=ON \
|
||||
-DBLAS_LIBRARIES=${BLAS_LIBS:Q} \
|
||||
-DUSE_OPTIMIZED_LAPACK=ON \
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
MAINTAINER= thomas.orgis@uni-hamburg.de
|
||||
COMMENT= Linear Algebra PACKage (Netlib reference code)
|
||||
|
||||
LAPACK_PART= lapack
|
||||
LAPACK_PART_CMAKE_ARGS= \
|
||||
LAPACK_COMPONENT= lapack
|
||||
LAPACK_COMPONENT_CMAKE_ARGS= \
|
||||
-DUSE_OPTIMIZED_BLAS=OFF \
|
||||
-DUSE_OPTIMIZED_LAPACK=OFF \
|
||||
-DCBLAS=OFF -DLAPACKE=OFF
|
||||
|
|
|
@ -4,14 +4,15 @@
|
|||
# used by wip/lapack/Makefile
|
||||
|
||||
# Common Makefile for packages derived from the Netlib LAPACK sources.
|
||||
# You set LAPACK_PART (lowercase) and LAPACK_PART_CMAKE_ARGS to choose
|
||||
# the library to install.
|
||||
# Package Makefile sets LAPACK_COMPONENT and LAPACK_COMPONENT_CMAKE_ARGS to
|
||||
# choose the library to install.
|
||||
# LAPACK_COMPONENT can be "lapack", "lapacke", or "cblas"
|
||||
|
||||
PORTVERSION= 3.9.0
|
||||
DISTNAME= lapack-${PORTVERSION}
|
||||
PKGNAME= ${LAPACK_PART}-${PORTVERSION}
|
||||
DISTNAME= lapack-${NETLIB_BLAS_VERSION}
|
||||
PKGNAME= ${LAPACK_COMPONENT}-${NETLIB_BLAS_VERSION}
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= -https://github.com/Reference-LAPACK/lapack/archive/v${PORTVERSION}.tar.gz
|
||||
MASTER_SITES= ${MASTER_SITE_GITHUB:=Reference-LAPACK/}
|
||||
GITHUB_TAG= v${NETLIB_BLAS_VERSION}
|
||||
|
||||
HOMEPAGE= https://www.netlib.org/lapack/
|
||||
LICENSE= modified-bsd
|
||||
|
@ -23,6 +24,7 @@ DISTINFO_FILE= ${.CURDIR}/../../wip/lapack/distinfo
|
|||
USE_LANGUAGES= c fortran
|
||||
USE_CMAKE= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||
CONFIGURE_DIRS= build
|
||||
CMAKE_ARG_PATH= ${WRKSRC}
|
||||
|
||||
|
@ -31,7 +33,9 @@ CMAKE_ARG_PATH= ${WRKSRC}
|
|||
CMAKE_ARGS= -DBUILD_DEPRECATED=ON \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_STATIC_LIBS=ON \
|
||||
${LAPACK_PART_CMAKE_ARGS}
|
||||
${LAPACK_COMPONENT_CMAKE_ARGS}
|
||||
|
||||
.include "../../wip/lapack/version.mk"
|
||||
|
||||
post-extract:
|
||||
${RUN} mkdir -p ${WRKSRC}/build
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# $NetBSD$
|
||||
|
||||
NETLIB_BLAS_VERSION= 3.9.0
|
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD$
|
||||
|
||||
COMMENT= C interface to a LAPACK library
|
||||
LAPACK_PART= lapacke
|
||||
LAPACK_PART_CMAKE_ARGS= \
|
||||
COMMENT= C interface to a LAPACK library
|
||||
LAPACK_COMPONENT= lapacke
|
||||
LAPACK_COMPONENT_CMAKE_ARGS= \
|
||||
-DUSE_OPTIMIZED_BLAS=ON \
|
||||
-DBLAS_LIBRARIES=${BLAS_LIBS:Q} \
|
||||
-DUSE_OPTIMIZED_LAPACK=ON \
|
||||
|
|
Loading…
Reference in New Issue