svn commit: r376723 - head/databases/grass
Thierry Thomas
thierry at FreeBSD.org
Sat Jan 10 19:45:02 UTC 2015
Author: thierry
Date: Sat Jan 10 19:45:01 2015
New Revision: 376723
URL: https://svnweb.freebsd.org/changeset/ports/376723
QAT: https://qat.redports.org/buildarchive/r376723/
Log:
Uses blaslapack.mk.
Modified:
head/databases/grass/Makefile
Modified: head/databases/grass/Makefile
==============================================================================
--- head/databases/grass/Makefile Sat Jan 10 19:03:28 2015 (r376722)
+++ head/databases/grass/Makefile Sat Jan 10 19:45:01 2015 (r376723)
@@ -80,9 +80,8 @@ OPTIONS_DEFAULT= PGSQL
OPTIONS_SUB= yes
ATLAS_DESC= Use ATLAS for BLAS and LAPACK
-ALTAS_LIB_DEPENDS= libalapack.so:${PORTSDIR}/math/atlas
-ATLAS_LIB_DEPENDS_OFF= libblas.so:${PORTSDIR}/math/blas \
- liblapack.so:${PORTSDIR}/math/lapack
+ATLAS_USES= blaslapack:atlas
+ATLAS_USES_OFF= blaslapack
FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
FFMPEG_CONFIGURE_ON= --with-ffmpeg \
--with-ffmpeg-includes="${LOCALBASE}/include/libavcodec \
@@ -106,25 +105,16 @@ SQLITE_CONFIGURE_ON= --with-sqlite
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MATLAS}
-BLASLIB= f77blas
-LAPACKLIB= alapack
-.else
-BLASLIB= blas
-LAPACKLIB= lapack
-.endif
-
.if !defined (GRASS_INST_DIR)
GRASS_INST_DIR= ${PORTNAME}-${PORTVERSION}
.endif
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|-lblas|-l${BLASLIB}| ; \
- s|echo blas|echo ${BLASLIB}| ; \
- s|-llapack|-l${LAPACKLIB}| ; \
- s|echo lapack|echo ${LAPACKLIB}|' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e \
+pre-configure:
+ ${REINPLACE_CMD} -e \
+ 's|-lblas|${BLASLIB}| ; \
+ s|-llapack|${LAPACKLIB}| ; \
+ s|g2c|f2c|' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e \
's|make -C|$$(MAKE) -C| ; \
/^BINDIR/s|=.*|= $${DESTDIR}$${UNIX_BIN}| ; \
/test /s| $${INST_DIR}| $${DESTDIR}$${INST_DIR}|g ; \
@@ -132,10 +122,10 @@ post-patch:
/chmod /s| $${INST_DIR}| $${DESTDIR}$${INST_DIR}|g ; \
/tar /s| $${INST_DIR}| $${DESTDIR}$${INST_DIR}|g ; \
s|> $${INST_DIR}|> $${DESTDIR}$${INST_DIR}|' ${WRKSRC}/Makefile
- @${REINPLACE_CMD} -e \
+ ${REINPLACE_CMD} -e \
's|^CC=.*|CC?=cc| ; \
s|^CFLAGS=.*|CFLAGS+=-fno-common|' ${WRKSRC}/gem/Makefile
- @${REINPLACE_CMD} -e \
+ ${REINPLACE_CMD} -e \
's|= python|= ${PYTHON_CMD:T}|' ${WRKSRC}/include/Make/Platform.make.in
post-install:
More information about the svn-ports-all
mailing list