pkgsrc-wip/lapack/Makefile.common

45 lines
1.1 KiB
Makefile

# $NetBSD$
# used by wip/cblas/Makefile
# used by wip/lapacke/Makefile
# 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.
PORTVERSION= 3.8.0
DISTNAME= lapack-${PORTVERSION}
PKGNAME= ${LAPACK_PART}-${PORTVERSION}
PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_NETLIB:=lapack/}
EXTRACT_SUFX= .tar.gz
MAINTAINER= thomas.orgis@uni-hamburg.de
HOMEPAGE= http://www.netlib.org/lapack/
LICENSE= modified-bsd
# All parts are in the same section (now wip, later math).
PATCHDIR= ${.CURDIR}/../lapack/patches
DISTINFO_FILE= ${.CURDIR}/../lapack/distinfo
USE_LANGUAGES= c fortran
USE_CMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
CONFIGURE_DIRS= ${WRKDIR}/build
CMAKE_ARG_PATH= ${WRKSRC}
# Note: We patch the build to install both static and
# shared libraries.
CMAKE_ARGS= -DBUILD_DEPRECATED=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=ON \
${LAPACK_PART_CMAKE_ARGS}
post-extract:
${RUN} mkdir -p ${WRKDIR}/build
.include "../../mk/bsd.pkg.mk"