diff options
author | mi <mi@FreeBSD.org> | 2010-06-23 11:51:48 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2010-06-23 11:51:48 +0800 |
commit | 1fc45805f16f0c931fa280b67924103d7e8e0b3a (patch) | |
tree | 3a5e95d538f7839c7877d95ef42d86fbbacfa882 /math | |
parent | 1246b1baa8b57f7cc6849dc4ea5bd639aa36f33c (diff) | |
download | freebsd-ports-gnome-1fc45805f16f0c931fa280b67924103d7e8e0b3a.tar.gz freebsd-ports-gnome-1fc45805f16f0c931fa280b67924103d7e8e0b3a.tar.zst freebsd-ports-gnome-1fc45805f16f0c931fa280b67924103d7e8e0b3a.zip |
Enable parallel builds, when possible. Fix test-target. Minor cosmetic
changes. No changes in resulting package.
Approved by: maintainer
Feature safe: yes
Diffstat (limited to 'math')
-rw-r--r-- | math/lapack/Makefile | 38 | ||||
-rw-r--r-- | math/lapack/files/patch-TESTING+LIN+Makefile | 9 |
2 files changed, 28 insertions, 19 deletions
diff --git a/math/lapack/Makefile b/math/lapack/Makefile index 44b478a3c051..905a8e727067 100644 --- a/math/lapack/Makefile +++ b/math/lapack/Makefile @@ -26,12 +26,13 @@ USE_LDCONFIG= yes .include <bsd.port.pre.mk> -.if ${ARCH} == "sparc64" || ${ARCH} == "amd64" +.if ${ARCH} == "sparc64" FPIC= -fPIC .else FPIC= -fpic .endif +MAKE_JOBS_SAFE= yes MANSRC=${WRKDIR}/lapack-3.2.0 WRKSRC_SHARED=${WRKSRC}_shared FFLAGS_SHARED=${FPIC} @@ -47,32 +48,33 @@ pre-fetch: .include "${FILESDIR}/manpages" post-patch: - @${CP} ${WRKSRC}/INSTALL/make.inc.gfortran ${WRKSRC}/make.inc - @${CP} -r ${WRKSRC} ${WRKSRC_SHARED} - @${CP} -r ${WRKSRC} ${WRKSRC_PROFILE} + @${MV} ${WRKSRC}/INSTALL/make.inc.gfortran ${WRKSRC}/make.inc + ${REINPLACE_CMD} -Ee \ + 's,\( *cd ([^ ;]+) *; *\$$\(MAKE\) *([[:alnum:]]*) *\),${MAKE} -C \1 ${_MAKE_JOBS} \2,' \ + ${WRKSRC}/Makefile + ${REINPLACE_CMD} -Ee \ + 's,cd ([^ ;]+) *; *\$$\(MAKE\) *([[:alnum:]]*) *,${MAKE} -C \1 ${_MAKE_JOBS} \2,' \ + ${WRKSRC}/TESTING/Makefile @${REINPLACE_CMD} -e 's,%%F77%%,${F77},g' \ -e 's,%%FFLAGS%%,${FFLAGS},g' \ - -e 's,%%EXTRAFLAGS%%,,g' \ -e 's,%%BLAS%%,${BLAS},g' \ ${WRKSRC}/make.inc - @${REINPLACE_CMD} -e 's,%%F77%%,${F77},g' \ - -e 's,%%FFLAGS%%,${FFLAGS},g' \ - -e 's,%%EXTRAFLAGS%%,${FFLAGS_SHARED},g' \ - -e 's,%%BLAS%%,${BLAS},g' \ + @${CP} -r ${WRKSRC} ${WRKSRC_SHARED} + @${CP} -r ${WRKSRC} ${WRKSRC_PROFILE} + @${REINPLACE_CMD} -e 's,%%EXTRAFLAGS%%,,g' \ + ${WRKSRC}/make.inc + @${REINPLACE_CMD} -e 's,%%EXTRAFLAGS%%,${FFLAGS_SHARED},g' \ ${WRKSRC_SHARED}/make.inc - @${REINPLACE_CMD} -e 's,%%F77%%,${F77},g' \ - -e 's,%%FFLAGS%%,${FFLAGS},g' \ - -e 's,%%EXTRAFLAGS%%,${FFLAGS_PROFILE},g' \ - -e 's,%%BLAS%%,${BLAS},g' \ + @${REINPLACE_CMD} -e 's,%%EXTRAFLAGS%%,${FFLAGS_PROFILE},g' \ ${WRKSRC_PROFILE}/make.inc do-build: @${ECHO_CMD} "Building static lapack library" - cd ${WRKSRC} ; ${MAKE} ${.MAKEFLAGS} ARCH=ar + ${MAKE} -C ${WRKSRC} ${.MAKEFLAGS} ${_MAKE_JOBS} ARCH=ar @${ECHO_CMD} "Building shared lapack library" - cd ${WRKSRC_SHARED} ; ${MAKE} ${.MAKEFLAGS} ARCH=ar + ${MAKE} -C ${WRKSRC_SHARED} ${.MAKEFLAGS} ${_MAKE_JOBS} ARCH=ar @${ECHO_CMD} "Building profile lapack library" - cd ${WRKSRC_PROFILE} ; ${MAKE} ${.MAKEFLAGS} ARCH=ar + ${MAKE} -C ${WRKSRC_PROFILE} ${.MAKEFLAGS} ${_MAKE_JOBS} ARCH=ar post-build: ${CP} ${WRKSRC}/lapack_FREEBSD.a ${WRKSRC}/liblapack.a @@ -98,8 +100,8 @@ do-install: ${INSTALL_MAN} ${MANSRC}/manpages/man/manl/[m-s]*.l ${PREFIX}/man/manl ${INSTALL_MAN} ${MANSRC}/manpages/man/manl/[t-z]*.l ${PREFIX}/man/manl -regression-test: build +regression-test check test: build @${ECHO_CMD} "Testing static lapack library" - cd ${WRKSRC}/TESTING ; ${MAKE} ${.MAKEFLAGS} ARCH=ar + ${MAKE} -C ${WRKSRC}/TESTING ${.MAKEFLAGS} ARCH=ar .include <bsd.port.post.mk> diff --git a/math/lapack/files/patch-TESTING+LIN+Makefile b/math/lapack/files/patch-TESTING+LIN+Makefile index 0c120f91837e..e311ad5268de 100644 --- a/math/lapack/files/patch-TESTING+LIN+Makefile +++ b/math/lapack/files/patch-TESTING+LIN+Makefile @@ -1,4 +1,4 @@ ---- TESTING/LIN/Makefile.orig 2009-02-11 02:23:05.000000000 +0900 +--- TESTING/LIN/Makefile 2009-02-11 02:23:05.000000000 +0900 +++ TESTING/LIN/Makefile 2009-05-20 06:11:11.000000000 +0900 @@ -71,13 +71,13 @@ strt02.o strt03.o strt05.o strt06.o \ @@ -68,3 +68,10 @@ DSLINTST = dchkab.o \ ddrvab.o ddrvac.o derrab.o derrac.o dget08.o \ +@@ -246,5 +246,5 @@ + + ../xlintstd : $(ALINTST) $(DLINTST) $(DZLNTST) +- $(LOADER) $(LOADOPTS) $^ \ ++ $(LOADER) $(LOADOPTS) ${.ALLSRC} \ + ../../$(TMGLIB) ../../$(LAPACKLIB) $(XBLASLIB) $(BLASLIB) -o xlintstd && mv xlintstd $@ + |