Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.16 2015/03/16 18:07:49 naddy Exp $
  2. COMMENT= C interface to the BLAS library
  3. VERSION= 1.0
  4. DISTNAME= cblas
  5. PKGNAME= ${DISTNAME}-${VERSION}
  6. REVISION= 3
  7. SHARED_LIBS= cblas 1.0
  8. CATEGORIES= math
  9. HOMEPAGE= http://www.netlib.org/blas/
  10. # freely available
  11. PERMIT_PACKAGE_CDROM= Yes
  12. MASTER_SITES= http://www.netlib.org/blas/blast-forum/ \
  13. ftp://netlib.bell-labs.com/netlib/blas/blast-forum/ \
  14. http://www.netlib.no/netlib/blas/blast-forum/
  15. EXTRACT_SUFX= .tgz
  16. DIST_SUBDIR= ${DISTNAME}-${VERSION}
  17. WRKDIST= ${WRKDIR}/CBLAS
  18. WRKSRC= ${WRKDIST}/src
  19. MODULES= fortran
  20. MODFORTRAN_COMPILER = g77
  21. BUILD_DEPENDS = ${MODFORTRAN_BUILD_DEPENDS}
  22. LIB_DEPENDS = math/blas
  23. WANTLIB = blas>=1.0
  24. CFLAGS+= -DADD_
  25. MAKE_FILE= ${FILESDIR}/Makefile
  26. MAKE_ENV= SHLIB_MAJOR=${LIBcblas_VERSION:R} \
  27. SHLIB_MINOR=${LIBcblas_VERSION:E} \
  28. FC=${FC}
  29. FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
  30. TEST_FLAGS= LOADER=${FC} CFLAGS="${CFLAGS}" INC="-I${WRKSRC}" \
  31. LIB="-L${WRKSRC} -lcblas -L${LOCALBASE}/lib -lblas"
  32. post-install:
  33. ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include
  34. do-test:
  35. @cd ${WRKDIST}/testing && \
  36. ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} all1 ${ALL_TEST_FLAGS} && \
  37. export LD_LIBRARY_PATH="${WRKSRC}" && \
  38. ./xscblat1 && \
  39. ./xdcblat1 && \
  40. ./xccblat1 && \
  41. ./xzcblat1
  42. .include <bsd.port.mk>