68 lines
1.5 KiB
Makefile
68 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.11 2010/11/19 07:23:10 espie Exp $
|
|
|
|
COMMENT= C interface to the BLAS library
|
|
|
|
VERSION= 1.0
|
|
DISTNAME= cblas
|
|
PKGNAME= ${DISTNAME}-${VERSION}
|
|
REVISION= 0
|
|
SHARED_LIBS= cblas 1.0
|
|
|
|
CATEGORIES= math
|
|
|
|
HOMEPAGE= http://www.netlib.org/blas/
|
|
|
|
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
|
|
|
|
# freely available
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://www.netlib.org/blas/blast-forum/ \
|
|
ftp://netlib.bell-labs.com/netlib/blas/blast-forum/ \
|
|
http://www.netlib.no/netlib/blas/blast-forum/
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= ${DISTNAME}-${VERSION}
|
|
WRKDIST= ${WRKDIR}/CBLAS
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
MODULES= fortran
|
|
MODFORTRAN_COMPILER = g77
|
|
|
|
BUILD_DEPENDS = ${MODFORTRAN_BUILD_DEPENDS}
|
|
LIB_DEPENDS = math/blas
|
|
WANTLIB = blas>=1.0
|
|
|
|
CFLAGS+= -DADD_
|
|
MAKE_FILE= ${FILESDIR}/Makefile
|
|
MAKE_ENV= SHLIB_MAJOR=${LIBcblas_VERSION:R} \
|
|
SHLIB_MINOR=${LIBcblas_VERSION:E} \
|
|
FC=${FC}
|
|
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
|
|
|
|
REGRESS_FLAGS= LOADER=${FC} CFLAGS="${CFLAGS}" INC="-I${WRKSRC}" \
|
|
LIB="-L${WRKSRC} -lcblas -L${LOCALBASE}/lib -lblas"
|
|
|
|
# See bsd.lib.mk:162
|
|
.if ${MACHINE_ARCH:Mmips64*}
|
|
PKG_ARGS+= -Dno_mips64=0
|
|
.else
|
|
PKG_ARGS+= -Dno_mips64=1
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include
|
|
|
|
do-regress:
|
|
@cd ${WRKDIST}/testing && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} all1 ${ALL_REGRESS_FLAGS} && \
|
|
export LD_LIBRARY_PATH="${WRKSRC}" && \
|
|
./xscblat1 && \
|
|
./xdcblat1 && \
|
|
./xccblat1 && \
|
|
./xzcblat1
|
|
|
|
.include <bsd.port.mk>
|