summaryrefslogtreecommitdiff
path: root/math/superlu_mt
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-09-27 07:31:01 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-09-27 07:31:01 +0000
commitf11bb0d97f2674fc1617be4feeff7e01386978cd (patch)
tree5187d6728a4b69eb6c02873ab0d2131abdeeb5e9 /math/superlu_mt
parentThis distfile disapeared from the net. Use MASTER_SITE_LOCAL to host it. (diff)
make replaced the defined command by our ${ARCH}.
Approved by: portmgr (marcus).
Diffstat (limited to 'math/superlu_mt')
-rw-r--r--math/superlu_mt/Makefile13
-rw-r--r--math/superlu_mt/pkg-plist6
2 files changed, 10 insertions, 9 deletions
diff --git a/math/superlu_mt/Makefile b/math/superlu_mt/Makefile
index 41e7769bc022..c54aea7aab81 100644
--- a/math/superlu_mt/Makefile
+++ b/math/superlu_mt/Makefile
@@ -28,17 +28,18 @@ ALL_TARGET= superlulib
BLAS_LIBS= ${LOCALBASE}/lib/libblas.a
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502126
-BROKEN= "Broken by changes to make(1) on FreeBSD >= 5.x"
-.endif
+ARCH2FIX= CBLAS/Makefile make.alpha make.exemplar TESTING/MATGEN/Makefile \
+ make.origin make.inc make.pthreads SRC/Makefile
post-patch:
@${REINPLACE_CMD} -e 's+%%BLAS_LIBS%%+${BLAS_LIBS}+ ; \
s+%%PTHREAD_CFLAGS%%+${PTHREAD_CFLAGS}+ ; \
s+%%PTHREAD_LIBS%%+${PTHREAD_LIBS}+ ' \
${WRKSRC}/make.inc
+.for fmk in ${ARCH2FIX}
+ @${REINPLACE_CMD} -e 's|^ARCH *.= ar|ARCMD = ar| ; \
+ s|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${fmk}
+.endfor
do-install:
${INSTALL_DATA} ${WRKSRC}/libsuperlu_mt.* ${PREFIX}/lib
@@ -51,4 +52,4 @@ do-install:
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/simax97.ps.gz ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/superlu_mt/pkg-plist b/math/superlu_mt/pkg-plist
index c0c3220730ae..d75d88b0b190 100644
--- a/math/superlu_mt/pkg-plist
+++ b/math/superlu_mt/pkg-plist
@@ -7,6 +7,6 @@ include/superlu_mt/supermatrix.h
include/superlu_mt/util.h
lib/libsuperlu_mt.a
@dirrm include/superlu_mt
-%%PORTDOCS%%share/doc/superlu_mt/simax97.ps.gz
-%%PORTDOCS%%share/doc/superlu_mt/ug.ps.gz
-%%PORTDOCS%%@dirrm share/doc/superlu_mt
+%%PORTDOCS%%%%DOCSDIR%%/simax97.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/ug.ps.gz
+%%PORTDOCS%%@dirrm %%DOCSDIR%%