diff options
author | maho <maho@FreeBSD.org> | 2004-10-19 10:26:05 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2004-10-19 10:26:05 +0800 |
commit | c5042935d7976460cc4cbefa4398ebd4f541954b (patch) | |
tree | c81cc0a7e785c45618182e446f880e78beddc81f /math/scalapack/Makefile | |
parent | 5fc68f3b48a4d0b3acc3c7106aa02987ab6bd5d5 (diff) | |
download | freebsd-ports-gnome-c5042935d7976460cc4cbefa4398ebd4f541954b.tar.gz freebsd-ports-gnome-c5042935d7976460cc4cbefa4398ebd4f541954b.tar.zst freebsd-ports-gnome-c5042935d7976460cc4cbefa4398ebd4f541954b.zip |
1) fix build after changes to make(1) on FreeBSD >= 5.x.
2) clean up (pkg-message)
PR: 72265
Submitted by: thierry
Diffstat (limited to 'math/scalapack/Makefile')
-rw-r--r-- | math/scalapack/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/math/scalapack/Makefile b/math/scalapack/Makefile index 1a1cea41ad95..af509c033aa2 100644 --- a/math/scalapack/Makefile +++ b/math/scalapack/Makefile @@ -32,10 +32,20 @@ LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \ F77?= f77 USE_REINPLACE= yes +ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \ + REDIST/SRC SRC TOOLS TOOLS/LAPACK + +DATADIR= ${PREFIX}/share/${PORTNAME:U} +EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:U} +PKGMESSAGE= ${WRKDIR}/pkg-message + .include "files/manpages" post-patch: - ${REINPLACE_CMD} -e 's,@WRKSRC@,${WRKSRC},g ; s,@PREFIX@,${PREFIX},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g' ${WRKSRC}/SLmake.inc + ${REINPLACE_CMD} -e 's,@WRKSRC@,${WRKSRC},g ; s,@PREFIX@,${PREFIX},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s,^ARCH *.= ar,ARCMD = ar,' ${WRKSRC}/SLmake.inc +.for mkf in ${ARCH2FIX} + ${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${mkf}/Makefile +.endfor do-build: (cd ${WRKSRC}; make ; make exe) @@ -72,6 +82,8 @@ do-install: .endif post-install: - @${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE} + @${SED} -e 's,/usr/local,${PREFIX},g' ${FILESDIR}/pkg-message.in \ + > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> |