aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--math/superlu/Makefile13
-rw-r--r--math/superlu/pkg-plist8
-rw-r--r--math/superlu_mt/Makefile13
-rw-r--r--math/superlu_mt/pkg-plist6
4 files changed, 21 insertions, 19 deletions
diff --git a/math/superlu/Makefile b/math/superlu/Makefile
index c774a1b86712..d8250be65b5f 100644
--- a/math/superlu/Makefile
+++ b/math/superlu/Makefile
@@ -28,11 +28,8 @@ ALL_TARGET= superlulib
BLAS_LIBS= ${LOCALBASE}/lib/libf77blas.a ${LOCALBASE}/lib/libatlas.a
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502126
-BROKEN= "Broken by changes to make(1) on FreeBSD >= 5.x"
-.endif
+ARCH2FIX= SRC/Makefile TESTING/MATGEN/Makefile CBLAS/Makefile make.inc \
+ MAKE_INC/make.alpha MAKE_INC/make.inc
post-patch:
@${REINPLACE_CMD} -e 's+%%BLAS_LIBS%%+${BLAS_LIBS}+' \
@@ -45,6 +42,10 @@ post-patch:
${WRKSRC}/make.inc
@${REINPLACE_CMD} -e 's+%%FFLAGS%%+${FFLAGS}+' \
${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.* ${PREFIX}/lib
@@ -57,4 +58,4 @@ do-install:
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/superlu_ug.ps.gz ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/superlu/pkg-plist b/math/superlu/pkg-plist
index ae9e0c590e34..30f55b70439e 100644
--- a/math/superlu/pkg-plist
+++ b/math/superlu/pkg-plist
@@ -10,7 +10,7 @@ include/superlu/util.h
include/superlu/zsp_defs.h
lib/libsuperlu.a
@dirrm include/superlu
-%%PORTDOCS%%share/doc/superlu/SLU_general.ps.gz
-%%PORTDOCS%%share/doc/superlu/simax95.ps.gz
-%%PORTDOCS%%share/doc/superlu/superlu_ug.ps.gz
-%%PORTDOCS%%@dirrm share/doc/superlu
+%%PORTDOCS%%%%DOCSDIR%%/SLU_general.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/simax95.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/superlu_ug.ps.gz
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
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%%