Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.25 2016/08/26 14:31:46 jca Exp $
  2. COMMENT= library of Fortran 77 linear algebra subroutines
  3. DISTNAME= lapack-3.1.1
  4. REVISION= 5
  5. SHARED_LIBS= lapack 5.0
  6. CATEGORIES= math
  7. HOMEPAGE= http://www.netlib.org/lapack/
  8. # BSD
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= http://www.netlib.org/lapack/ \
  11. http://www.netlib.no/netlib/lapack/
  12. EXTRACT_SUFX= .tgz
  13. LIB_DEPENDS = math/blas
  14. WANTLIB = blas>=1
  15. MODULES= fortran
  16. MODFORTRAN_COMPILER = g77
  17. BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
  18. MAKE_ENV= SHLIB_MAJOR=${LIBlapack_VERSION:R} \
  19. SHLIB_MINOR=${LIBlapack_VERSION:E} \
  20. TIMER=EXT_ETIME \
  21. FC=${FC}
  22. FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
  23. USE_GROFF = Yes
  24. TEST_FLAGS= PLAT= OPTS= FORTRAN=${FC} LOADER=${FC} \
  25. LAPACKLIB=SRC/liblapack.a \
  26. BLASLIB=${LOCALBASE}/lib/libblas.a
  27. MAKE_FILE= ${FILESDIR}/Makefile
  28. WRKSRC= ${WRKDIST}/SRC
  29. # avoid 'unknown manpage type' errors and move manpages to section 3
  30. pre-configure:
  31. cd ${WRKDIST}/manpages/man/manl && \
  32. perl -pi -e 's/(\.TH\s+\w+)\s+1(.*)/\1 3f\2/' *.l && \
  33. for m in *.l ; do if ! egrep -q '^\.TH' $$m ; then \
  34. perl -pi -e "s/(.SH NAME)/.TH \U$${m%\.l} 3f\n\1/" $$m ; fi ; \
  35. mv $$m $${m%\.l}.3f ; done
  36. cp ${WRKDIST}/make.inc.example ${WRKDIST}/make.inc
  37. post-install:
  38. ${INSTALL_MAN} ${WRKDIST}/manpages/man/manl/*.3f ${PREFIX}/man/man3f/
  39. do-test:
  40. cd ${WRKDIST}/TESTING/MATGEN && ${MAKE} ${ALL_TEST_FLAGS}
  41. cd ${WRKDIST}/TESTING && ${MAKE} ${ALL_TEST_FLAGS}
  42. .include <bsd.port.mk>